| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 { "text/css", "css" }, | 70 { "text/css", "css" }, |
| 71 { "text/xml", "xml" }, | 71 { "text/xml", "xml" }, |
| 72 { "image/gif", "gif" }, | 72 { "image/gif", "gif" }, |
| 73 { "image/jpeg", "jpeg,jpg" }, | 73 { "image/jpeg", "jpeg,jpg" }, |
| 74 { "image/png", "png" }, | 74 { "image/png", "png" }, |
| 75 { "video/mp4", "mp4,m4v" }, | 75 { "video/mp4", "mp4,m4v" }, |
| 76 { "audio/x-m4a", "m4a" }, | 76 { "audio/x-m4a", "m4a" }, |
| 77 { "audio/mp3", "mp3" }, | 77 { "audio/mp3", "mp3" }, |
| 78 { "video/ogg", "ogv,ogm" }, | 78 { "video/ogg", "ogv,ogm" }, |
| 79 { "audio/ogg", "ogg,oga" }, | 79 { "audio/ogg", "ogg,oga" }, |
| 80 { "application/xhtml+xml", "xhtml,xht" } | 80 { "application/xhtml+xml", "xhtml,xht" }, |
| 81 { "application/x-chrome-extension", "crx" } |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 static const MimeInfo secondary_mappings[] = { | 84 static const MimeInfo secondary_mappings[] = { |
| 84 { "application/octet-stream", "exe,com,bin" }, | 85 { "application/octet-stream", "exe,com,bin" }, |
| 85 { "application/gzip", "gz" }, | 86 { "application/gzip", "gz" }, |
| 86 { "application/pdf", "pdf" }, | 87 { "application/pdf", "pdf" }, |
| 87 { "application/postscript", "ps,eps,ai" }, | 88 { "application/postscript", "ps,eps,ai" }, |
| 88 { "application/x-javascript", "js" }, | 89 { "application/x-javascript", "js" }, |
| 89 { "image/bmp", "bmp" }, | 90 { "image/bmp", "bmp" }, |
| 90 { "image/x-icon", "ico" }, | 91 { "image/x-icon", "ico" }, |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 bool AreSupportedMediaCodecs(const std::vector<std::string>& codecs) { | 437 bool AreSupportedMediaCodecs(const std::vector<std::string>& codecs) { |
| 437 return GetMimeUtil()->AreSupportedMediaCodecs(codecs); | 438 return GetMimeUtil()->AreSupportedMediaCodecs(codecs); |
| 438 } | 439 } |
| 439 | 440 |
| 440 void ParseCodecString(const std::string& codecs, | 441 void ParseCodecString(const std::string& codecs, |
| 441 std::vector<std::string>* codecs_out) { | 442 std::vector<std::string>* codecs_out) { |
| 442 GetMimeUtil()->ParseCodecString(codecs, codecs_out); | 443 GetMimeUtil()->ParseCodecString(codecs, codecs_out); |
| 443 } | 444 } |
| 444 | 445 |
| 445 } // namespace net | 446 } // namespace net |
| OLD | NEW |