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

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

Issue 150047: Say we support mime-type audio/mpeg and video/mpeg... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 #include <string> 5 #include <string>
6 6
7 #include "net/base/mime_util.h" 7 #include "net/base/mime_util.h"
8 #include "net/base/platform_mime_util.h" 8 #include "net/base/platform_mime_util.h"
9 9
10 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 "video/mp4", 181 "video/mp4",
182 "video/x-m4v", 182 "video/x-m4v",
183 183
184 // MP3. 184 // MP3.
185 // TODO(hclam): may add "audio/mpeg" and "audio/x-mp3". 185 // TODO(hclam): may add "audio/mpeg" and "audio/x-mp3".
186 "audio/mp3", 186 "audio/mp3",
187 187
188 // AAC. 188 // AAC.
189 "audio/aac", 189 "audio/aac",
190 "audio/x-aac" 190 "audio/x-aac"
191
192 // Generic MPEG mime-types.
193 "audio/mpeg",
194 "video/mpeg"
191 }; 195 };
192 196
193 // Note: does not include javascript types list (see supported_javascript_types) 197 // Note: does not include javascript types list (see supported_javascript_types)
194 static const char* const supported_non_image_types[] = { 198 static const char* const supported_non_image_types[] = {
195 "text/html", 199 "text/html",
196 "text/xml", 200 "text/xml",
197 "text/xsl", 201 "text/xsl",
198 "text/plain", 202 "text/plain",
199 // Many users complained about css files served for 203 // Many users complained about css files served for
200 // download instead of displaying in the browser: 204 // download instead of displaying in the browser:
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 bool IsSupportedMimeType(const std::string& mime_type) { 379 bool IsSupportedMimeType(const std::string& mime_type) {
376 return GetMimeUtil()->IsSupportedMimeType(mime_type); 380 return GetMimeUtil()->IsSupportedMimeType(mime_type);
377 } 381 }
378 382
379 bool MatchesMimeType(const std::string &mime_type_pattern, 383 bool MatchesMimeType(const std::string &mime_type_pattern,
380 const std::string &mime_type) { 384 const std::string &mime_type) {
381 return GetMimeUtil()->MatchesMimeType(mime_type_pattern, mime_type); 385 return GetMimeUtil()->MatchesMimeType(mime_type_pattern, mime_type);
382 } 386 }
383 387
384 } // namespace net 388 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698