| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <iterator> | 6 #include <iterator> |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "net/base/mime_util.h" | 10 #include "net/base/mime_util.h" |
| 11 #include "net/base/platform_mime_util.h" | 11 #include "net/base/platform_mime_util.h" |
| 12 | 12 |
| 13 #include "base/hash_tables.h" | 13 #include "base/hash_tables.h" |
| 14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/string_split.h" | |
| 17 #include "base/string_util.h" | 16 #include "base/string_util.h" |
| 17 #include "base/strings/string_split.h" |
| 18 #include "base/utf_string_conversions.h" | 18 #include "base/utf_string_conversions.h" |
| 19 | 19 |
| 20 using std::string; | 20 using std::string; |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 struct MediaType { | 24 struct MediaType { |
| 25 const char name[12]; | 25 const char name[12]; |
| 26 const char matcher[13]; | 26 const char matcher[13]; |
| 27 }; | 27 }; |
| (...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 979 return CERTIFICATE_MIME_TYPE_UNKNOWN; | 979 return CERTIFICATE_MIME_TYPE_UNKNOWN; |
| 980 } | 980 } |
| 981 | 981 |
| 982 bool IsSupportedCertificateMimeType(const std::string& mime_type) { | 982 bool IsSupportedCertificateMimeType(const std::string& mime_type) { |
| 983 CertificateMimeType file_type = | 983 CertificateMimeType file_type = |
| 984 GetCertificateMimeTypeForMimeType(mime_type); | 984 GetCertificateMimeTypeForMimeType(mime_type); |
| 985 return file_type != CERTIFICATE_MIME_TYPE_UNKNOWN; | 985 return file_type != CERTIFICATE_MIME_TYPE_UNKNOWN; |
| 986 } | 986 } |
| 987 | 987 |
| 988 } // namespace net | 988 } // namespace net |
| OLD | NEW |