Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: net/base/mime_util.h

Issue 9969061: Changed TestShellWebMimeRegistryImpl to blacklist rather than whitelist containers and codecs. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved blacklist lists to mime_util. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/base/mime_util.cc » ('j') | net/base/mime_util.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 std::vector<std::string> GetProprietaryMediaTypes();
scherkus (not reviewing) 2012/04/10 21:22:17 can we pass in a std::vector<std::string> pointer
ddorwin 2012/04/11 19:14:20 Done.
118 NET_EXPORT std::vector<std::string> GetProprietaryMediaCodecs();
119
113 } // namespace net 120 } // namespace net
114 121
115 #endif // NET_BASE_MIME_UTIL_H__ 122 #endif // NET_BASE_MIME_UTIL_H__
OLDNEW
« no previous file with comments | « no previous file | net/base/mime_util.cc » ('j') | net/base/mime_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698