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