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> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "net/base/mime_util.h" |
14 | 15 |
15 #if !defined(OS_IOS) | 16 #if !defined(OS_IOS) |
16 // iOS doesn't use and must not depend on //media | 17 // iOS doesn't use and must not depend on //media |
17 #include "media/base/mime_util.h" | 18 #include "media/base/mime_util.h" |
18 #endif | 19 #endif |
19 | 20 |
20 namespace mime_util { | 21 namespace mime_util { |
21 | 22 |
22 namespace { | 23 namespace { |
23 | 24 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 193 |
193 bool IsSupportedJavascriptMimeType(const std::string& mime_type) { | 194 bool IsSupportedJavascriptMimeType(const std::string& mime_type) { |
194 return g_mime_util.Get().IsSupportedJavascriptMimeType(mime_type); | 195 return g_mime_util.Get().IsSupportedJavascriptMimeType(mime_type); |
195 } | 196 } |
196 | 197 |
197 bool IsSupportedMimeType(const std::string& mime_type) { | 198 bool IsSupportedMimeType(const std::string& mime_type) { |
198 return g_mime_util.Get().IsSupportedMimeType(mime_type); | 199 return g_mime_util.Get().IsSupportedMimeType(mime_type); |
199 } | 200 } |
200 | 201 |
201 } // namespace mime_util | 202 } // namespace mime_util |
OLD | NEW |