diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-25 00:25:53 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-25 00:25:53 +0000 |
commit | 217c12c787df5389c346aa7ebcd6a21efd539685 (patch) | |
tree | f70049a070c5235b6286c7dd5a0c4e74f22e71dc /net | |
parent | 3df2aafb359c4ffae0f16b2ce1d7fc37ed376f88 (diff) | |
download | chromium_src-217c12c787df5389c346aa7ebcd6a21efd539685.zip chromium_src-217c12c787df5389c346aa7ebcd6a21efd539685.tar.gz chromium_src-217c12c787df5389c346aa7ebcd6a21efd539685.tar.bz2 |
Updated media MIME type handling for Chrome and Chromium.
This might break some layout tests, but that's ok -- we'll disable them for now.
BUG=16636,16779
TEST=none
Review URL: http://codereview.chromium.org/160125
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21596 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/base/mime_util.cc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/net/base/mime_util.cc b/net/base/mime_util.cc index 4cbb94d..fb81009 100644 --- a/net/base/mime_util.cc +++ b/net/base/mime_util.cc @@ -69,11 +69,9 @@ static const MimeInfo primary_mappings[] = { { "image/gif", "gif" }, { "image/jpeg", "jpeg,jpg" }, { "image/png", "png" }, -#if defined(GOOGLE_CHROME_BUILD) { "video/mp4", "mp4,m4v" }, { "audio/x-m4a", "m4a" }, { "audio/mp3", "mp3" }, -#endif { "video/ogg", "ogv,ogm" }, { "audio/ogg", "ogg,oga" }, { "application/xhtml+xml", "xhtml,xht" } @@ -180,13 +178,12 @@ static const char* const supported_image_types[] = { // A list of media types: http://en.wikipedia.org/wiki/Internet_media_type // A comprehensive mime type list: http://plugindoc.mozdev.org/winmime.php - static const char* const supported_media_types[] = { // Ogg. "video/ogg", "audio/ogg", - // TODO(fbarchard): Remove these for Chromium when layout tests dont use mp4 +#if defined(GOOGLE_CHROME_BUILD) // MPEG-4. "video/mp4", "video/x-m4v", @@ -196,11 +193,7 @@ static const char* const supported_media_types[] = { // MP3. "audio/mp3", "audio/x-mp3", - - // Generic MPEG mime-types. - // TODO(fbarchard): Remove these when layout tests stop using mpg. - "audio/mpeg", - "video/mpeg" +#endif }; // Note: does not include javascript types list (see supported_javascript_types) |