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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 "text/html", | 219 "text/html", |
220 "text/xml", | 220 "text/xml", |
221 "text/xsl", | 221 "text/xsl", |
222 "text/plain", | 222 "text/plain", |
223 // Many users complained about css files served for | 223 // Many users complained about css files served for |
224 // download instead of displaying in the browser: | 224 // download instead of displaying in the browser: |
225 // http://code.google.com/p/chromium/issues/detail?id=7192 | 225 // http://code.google.com/p/chromium/issues/detail?id=7192 |
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/", | 230 "text/", |
230 "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 |
231 "application/xml", | 232 "application/xml", |
232 "application/xhtml+xml", | 233 "application/xhtml+xml", |
233 "application/rss+xml", | 234 "application/rss+xml", |
234 "application/atom+xml", | 235 "application/atom+xml", |
235 "multipart/x-mixed-replace" | 236 "multipart/x-mixed-replace" |
236 }; | 237 }; |
237 | 238 |
238 // Mozilla 1.8 and WinIE 7 both accept text/javascript and text/ecmascript. | 239 // Mozilla 1.8 and WinIE 7 both accept text/javascript and text/ecmascript. |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 bool AreSupportedMediaCodecs(const std::vector<std::string>& codecs) { | 438 bool AreSupportedMediaCodecs(const std::vector<std::string>& codecs) { |
438 return GetMimeUtil()->AreSupportedMediaCodecs(codecs); | 439 return GetMimeUtil()->AreSupportedMediaCodecs(codecs); |
439 } | 440 } |
440 | 441 |
441 void ParseCodecString(const std::string& codecs, | 442 void ParseCodecString(const std::string& codecs, |
442 std::vector<std::string>* codecs_out) { | 443 std::vector<std::string>* codecs_out) { |
443 GetMimeUtil()->ParseCodecString(codecs, codecs_out); | 444 GetMimeUtil()->ParseCodecString(codecs, codecs_out); |
444 } | 445 } |
445 | 446 |
446 } // namespace net | 447 } // namespace net |
OLD | NEW |