OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <map> | 5 #include <map> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "net/base/mime_util.h" | 8 #include "net/base/mime_util.h" |
9 #include "net/base/platform_mime_util.h" | 9 #include "net/base/platform_mime_util.h" |
10 | 10 |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
251 "audio/mp3", | 251 "audio/mp3", |
252 "audio/x-mp3", | 252 "audio/x-mp3", |
253 "audio/mpeg", | 253 "audio/mpeg", |
254 #endif | 254 #endif |
255 }; | 255 }; |
256 | 256 |
257 // List of supported codecs when passed in with <source type="...">. | 257 // List of supported codecs when passed in with <source type="...">. |
258 // | 258 // |
259 // Refer to http://wiki.whatwg.org/wiki/Video_type_parameters#Browser_Support | 259 // Refer to http://wiki.whatwg.org/wiki/Video_type_parameters#Browser_Support |
260 // for more information. | 260 // for more information. |
261 // | |
262 // The codecs for WAV are integers as defined in Appendix A of RFC2361: | |
263 // http://tools.ietf.org/html/rfc2361 | |
Ami GONE FROM CHROMIUM
2011/08/16 20:01:12
http://tools.ietf.org/html/rfc2361#appendix-A ?
| |
261 static const char* const supported_media_codecs[] = { | 264 static const char* const supported_media_codecs[] = { |
262 #if defined(GOOGLE_CHROME_BUILD) || defined(USE_PROPRIETARY_CODECS) | 265 #if defined(GOOGLE_CHROME_BUILD) || defined(USE_PROPRIETARY_CODECS) |
263 "avc1", | 266 "avc1", |
264 "mp4a", | 267 "mp4a", |
265 #endif | 268 #endif |
266 #if defined(ENABLE_MEDIA_CODEC_THEORA) | 269 #if defined(ENABLE_MEDIA_CODEC_THEORA) |
267 "theora", | 270 "theora", |
268 #endif | 271 #endif |
269 "vorbis", | 272 "vorbis", |
270 "vp8", | 273 "vp8", |
271 "1" // PCM for WAV. | 274 "1", // WAVE_FORMAT_PCM. |
Ami GONE FROM CHROMIUM
2011/08/16 20:01:12
drop trailing comma
| |
272 }; | 275 }; |
273 | 276 |
274 // Note: does not include javascript types list (see supported_javascript_types) | 277 // Note: does not include javascript types list (see supported_javascript_types) |
275 static const char* const supported_non_image_types[] = { | 278 static const char* const supported_non_image_types[] = { |
276 "text/cache-manifest", | 279 "text/cache-manifest", |
277 "text/html", | 280 "text/html", |
278 "text/xml", | 281 "text/xml", |
279 "text/xsl", | 282 "text/xsl", |
280 "text/plain", | 283 "text/plain", |
281 // Many users complained about css files served for | 284 // Many users complained about css files served for |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
738 | 741 |
739 GetExtensionsFromHardCodedMappings(secondary_mappings, | 742 GetExtensionsFromHardCodedMappings(secondary_mappings, |
740 arraysize(secondary_mappings), | 743 arraysize(secondary_mappings), |
741 mime_type, | 744 mime_type, |
742 &unique_extensions); | 745 &unique_extensions); |
743 | 746 |
744 HashSetToVector(&unique_extensions, extensions); | 747 HashSetToVector(&unique_extensions, extensions); |
745 } | 748 } |
746 | 749 |
747 } // namespace net | 750 } // namespace net |
OLD | NEW |