OGG and OGV added to supported media types for omnibox, href and command line.

Review URL: http://codereview.chromium.org/149228

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20008 0039d316-1c4b-4281-b951-d872f2087c98
parent d7d445a8
...@@ -66,6 +66,11 @@ static const MimeInfo primary_mappings[] = { ...@@ -66,6 +66,11 @@ static const MimeInfo primary_mappings[] = {
{ "image/gif", "gif" }, { "image/gif", "gif" },
{ "image/jpeg", "jpeg,jpg" }, { "image/jpeg", "jpeg,jpg" },
{ "image/png", "png" }, { "image/png", "png" },
{ "video/mp4", "mp4,m4v" },
{ "audio/x-m4a", "m4a" },
{ "audio/mp3", "mp3" },
{ "video/ogg", "ogv,ogm" },
{ "audio/ogg", "ogg,oga" },
{ "application/xhtml+xml", "xhtml,xht" } { "application/xhtml+xml", "xhtml,xht" }
}; };
...@@ -168,30 +173,23 @@ static const char* const supported_image_types[] = { ...@@ -168,30 +173,23 @@ static const char* const supported_image_types[] = {
"image/x-xbitmap" // xbm "image/x-xbitmap" // xbm
}; };
// TODO(hclam): Integrate this list with |secondary_mappings| above. // 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[] = { static const char* const supported_media_types[] = {
// Ogg. // Ogg.
"audio/ogg",
"video/ogg", "video/ogg",
"audio/ogg",
// MPEG-4. // MPEG-4.
"application/mp4",
"audio/mp4",
"audio/x-m4a",
"video/mp4", "video/mp4",
"video/x-m4v", "video/x-m4v",
"audio/mp4",
"audio/x-m4a",
// MP3. // MP3.
// TODO(hclam): may add "audio/mpeg" and "audio/x-mp3".
"audio/mp3", "audio/mp3",
"audio/x-mp3",
// AAC.
"audio/aac",
"audio/x-aac"
// Generic MPEG mime-types.
"audio/mpeg",
"video/mpeg"
}; };
// Note: does not include javascript types list (see supported_javascript_types) // Note: does not include javascript types list (see supported_javascript_types)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment