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

Unified Diff: net/base/mime_util.cc

Issue 3474015: add audio/wav mimetype (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/mime_util.cc
===================================================================
--- net/base/mime_util.cc (revision 60756)
+++ net/base/mime_util.cc (working copy)
@@ -90,6 +90,7 @@
{ "audio/ogg", "ogg,oga" },
{ "video/webm", "webm" },
{ "audio/webm", "webm" },
+ { "audio/wav", "wav" },
{ "application/xhtml+xml", "xhtml,xht" },
{ "application/x-chrome-extension", "crx" }
};
@@ -207,6 +208,7 @@
"application/ogg",
"video/webm",
"audio/webm",
+ "audio/wav",
#if defined(GOOGLE_CHROME_BUILD) || defined(USE_PROPRIETARY_CODECS)
// MPEG-4.
@@ -233,7 +235,8 @@
#endif
"theora",
"vorbis",
- "vp8"
+ "vp8",
+ "1" // PCM for WAV.
};
// Note: does not include javascript types list (see supported_javascript_types)
@@ -304,7 +307,8 @@
static const MediaFormatStrict format_codec_mappings[] = {
{ "video/webm", "vorbis,vp8,vp8.0" },
- { "audio/webm", "vorbis" }
+ { "audio/webm", "vorbis" },
+ { "audio/wav", "1" }
};
void MimeUtil::InitializeMimeTypeMaps() {
« 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