OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_BASE_MIME_UTIL_H__ | 5 #ifndef NET_BASE_MIME_UTIL_H__ |
6 #define NET_BASE_MIME_UTIL_H__ | 6 #define NET_BASE_MIME_UTIL_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 // Get the extensions associated with the given mime type. | 104 // Get the extensions associated with the given mime type. |
105 // There could be multiple extensions for a given mime type, like "html,htm" | 105 // There could be multiple extensions for a given mime type, like "html,htm" |
106 // for "text/html". | 106 // for "text/html". |
107 // Note that we do not erase the existing elements in the the provided vector. | 107 // Note that we do not erase the existing elements in the the provided vector. |
108 // Instead, we append the result to it. | 108 // Instead, we append the result to it. |
109 NET_EXPORT void GetExtensionsForMimeType( | 109 NET_EXPORT void GetExtensionsForMimeType( |
110 const std::string& mime_type, | 110 const std::string& mime_type, |
111 std::vector<FilePath::StringType>* extensions); | 111 std::vector<FilePath::StringType>* extensions); |
112 | 112 |
| 113 // Test only methods that return lists of proprietary media types and codecs |
| 114 // that are not supported by all variations of Chromium. |
| 115 // These types and codecs must be blacklisted to ensure consistent layout test |
| 116 // results across all Chromium variations. |
| 117 NET_EXPORT void GetProprietaryMediaTypes(std::vector<std::string>* types); |
| 118 NET_EXPORT void GetProprietaryMediaCodecs(std::vector<std::string>* codecs); |
| 119 |
113 } // namespace net | 120 } // namespace net |
114 | 121 |
115 #endif // NET_BASE_MIME_UTIL_H__ | 122 #endif // NET_BASE_MIME_UTIL_H__ |
OLD | NEW |