platform_mime_util_fuchsia.cc 1009 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "net/base/platform_mime_util.h"
  5. #include <string>
  6. #include "build/build_config.h"
  7. namespace net {
  8. bool PlatformMimeUtil::GetPlatformMimeTypeFromExtension(
  9. const base::FilePath::StringType& extension,
  10. std::string* result) const {
  11. // TODO(fuchsia): Integrate with MIME DB when Fuchsia provides an API.
  12. return false;
  13. }
  14. bool PlatformMimeUtil::GetPlatformPreferredExtensionForMimeType(
  15. const std::string& mime_type,
  16. base::FilePath::StringType* extension) const {
  17. // TODO(fuchsia): Integrate with MIME DB when Fuchsia provides an API.
  18. return false;
  19. }
  20. void PlatformMimeUtil::GetPlatformExtensionsForMimeType(
  21. const std::string& mime_type,
  22. std::unordered_set<base::FilePath::StringType>* extensions) const {
  23. // TODO(fuchsia): Integrate with MIME DB when Fuchsia provides an API.
  24. }
  25. } // namespace net