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[] = {
{ "image/gif", "gif" },
{ "image/jpeg", "jpeg,jpg" },
{ "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" }
};
......@@ -168,30 +173,23 @@ static const char* const supported_image_types[] = {
"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[] = {
// Ogg.
"audio/ogg",
"video/ogg",
"audio/ogg",
// MPEG-4.
"application/mp4",
"audio/mp4",
"audio/x-m4a",
"video/mp4",
"video/x-m4v",
"audio/mp4",
"audio/x-m4a",
// MP3.
// TODO(hclam): may add "audio/mpeg" and "audio/x-mp3".
"audio/mp3",
// AAC.
"audio/aac",
"audio/x-aac"
// Generic MPEG mime-types.
"audio/mpeg",
"video/mpeg"
"audio/x-mp3",
};
// 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