OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 <string> |
| 8 |
| 9 #include "base/logging.h" |
| 10 #include "build/build_config.h" |
| 11 |
| 12 namespace net { |
| 13 |
| 14 bool PlatformMimeUtil::GetPlatformMimeTypeFromExtension( |
| 15 const base::FilePath::StringType& ext, std::string* result) const { |
| 16 NOTIMPLEMENTED(); |
| 17 return false; |
| 18 } |
| 19 |
| 20 bool PlatformMimeUtil::GetPreferredExtensionForMimeType( |
| 21 const std::string& mime_type, base::FilePath::StringType* ext) const { |
| 22 return false; |
| 23 } |
| 24 |
| 25 void PlatformMimeUtil::GetPlatformExtensionsForMimeType( |
| 26 const std::string& mime_type, |
| 27 base::hash_set<base::FilePath::StringType>* extensions) const { |
| 28 base::FilePath::StringType ext; |
| 29 if (GetPreferredExtensionForMimeType(mime_type, &ext)) |
| 30 extensions->insert(ext); |
| 31 } |
| 32 |
| 33 } // namespace net |
OLD | NEW |