OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/mime_util/mime_util.h" | 5 #include "components/mime_util/mime_util.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
8 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| 11 #include "base/macros.h" |
9 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
10 #include "build/build_config.h" | 13 #include "build/build_config.h" |
11 | 14 |
12 #if !defined(OS_IOS) | 15 #if !defined(OS_IOS) |
13 // iOS doesn't use and must not depend on //media | 16 // iOS doesn't use and must not depend on //media |
14 #include "media/base/mime_util.h" | 17 #include "media/base/mime_util.h" |
15 #endif | 18 #endif |
16 | 19 |
17 namespace mime_util { | 20 namespace mime_util { |
18 | 21 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 if (base::EqualsCaseInsensitiveASCII( | 228 if (base::EqualsCaseInsensitiveASCII( |
226 mime_type, kSupportedCertificateTypes[i].mime_type)) { | 229 mime_type, kSupportedCertificateTypes[i].mime_type)) { |
227 return kSupportedCertificateTypes[i].cert_type; | 230 return kSupportedCertificateTypes[i].cert_type; |
228 } | 231 } |
229 } | 232 } |
230 | 233 |
231 return net::CERTIFICATE_MIME_TYPE_UNKNOWN; | 234 return net::CERTIFICATE_MIME_TYPE_UNKNOWN; |
232 } | 235 } |
233 | 236 |
234 } // namespace mime_util | 237 } // namespace mime_util |
OLD | NEW |