1 // Copyright (c) 2010 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 5 #include "net/base/platform_mime_util.h" 6 7 #include "android/jni/mime_utils.h" 8 9 using namespace android; 10 11 namespace net { 12 GetPlatformMimeTypeFromExtension(const FilePath::StringType & ext,std::string * result) const13bool PlatformMimeUtil::GetPlatformMimeTypeFromExtension( 14 const FilePath::StringType& ext, std::string* result) const { 15 return MimeUtils::GuessMimeTypeFromExtension(ext, result); 16 } 17 GetPreferredExtensionForMimeType(const std::string & mime_type,FilePath::StringType * ext) const18bool PlatformMimeUtil::GetPreferredExtensionForMimeType( 19 const std::string& mime_type, FilePath::StringType* ext) const { 20 return MimeUtils::GuessExtensionFromMimeType(mime_type, ext); 21 } 22 23 } // namespace net 24