OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "net/base/mime_util.h" | 7 #include "net/base/mime_util.h" |
8 #include "net/base/platform_mime_util.h" | 8 #include "net/base/platform_mime_util.h" |
9 | 9 |
10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 // So, by including "text/css" into this list we choose Firefox | 226 // So, by including "text/css" into this list we choose Firefox |
227 // behavior - css files will be displayed: | 227 // behavior - css files will be displayed: |
228 "text/css", | 228 "text/css", |
229 "text/vnd.chromium.ftp-dir", | 229 "text/vnd.chromium.ftp-dir", |
230 "text/", | 230 "text/", |
231 "image/svg+xml", // SVG is text-based XML, even though it has an image/ type | 231 "image/svg+xml", // SVG is text-based XML, even though it has an image/ type |
232 "application/xml", | 232 "application/xml", |
233 "application/xhtml+xml", | 233 "application/xhtml+xml", |
234 "application/rss+xml", | 234 "application/rss+xml", |
235 "application/atom+xml", | 235 "application/atom+xml", |
| 236 "application/x-x509-user-cert", |
236 "multipart/x-mixed-replace" | 237 "multipart/x-mixed-replace" |
237 }; | 238 }; |
238 | 239 |
239 // Mozilla 1.8 and WinIE 7 both accept text/javascript and text/ecmascript. | 240 // Mozilla 1.8 and WinIE 7 both accept text/javascript and text/ecmascript. |
240 // Mozilla 1.8 accepts application/javascript, application/ecmascript, and | 241 // Mozilla 1.8 accepts application/javascript, application/ecmascript, and |
241 // application/x-javascript, but WinIE 7 doesn't. | 242 // application/x-javascript, but WinIE 7 doesn't. |
242 // WinIE 7 accepts text/javascript1.1 - text/javascript1.3, text/jscript, and | 243 // WinIE 7 accepts text/javascript1.1 - text/javascript1.3, text/jscript, and |
243 // text/livescript, but Mozilla 1.8 doesn't. | 244 // text/livescript, but Mozilla 1.8 doesn't. |
244 // Mozilla 1.8 allows leading and trailing whitespace, but WinIE 7 doesn't. | 245 // Mozilla 1.8 allows leading and trailing whitespace, but WinIE 7 doesn't. |
245 // Mozilla 1.8 and WinIE 7 both accept the empty string, but neither accept a | 246 // Mozilla 1.8 and WinIE 7 both accept the empty string, but neither accept a |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 bool AreSupportedMediaCodecs(const std::vector<std::string>& codecs) { | 439 bool AreSupportedMediaCodecs(const std::vector<std::string>& codecs) { |
439 return GetMimeUtil()->AreSupportedMediaCodecs(codecs); | 440 return GetMimeUtil()->AreSupportedMediaCodecs(codecs); |
440 } | 441 } |
441 | 442 |
442 void ParseCodecString(const std::string& codecs, | 443 void ParseCodecString(const std::string& codecs, |
443 std::vector<std::string>* codecs_out) { | 444 std::vector<std::string>* codecs_out) { |
444 GetMimeUtil()->ParseCodecString(codecs, codecs_out); | 445 GetMimeUtil()->ParseCodecString(codecs, codecs_out); |
445 } | 446 } |
446 | 447 |
447 } // namespace net | 448 } // namespace net |
OLD | NEW |