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 #ifndef COMPONENTS_MIME_UTIL_MIME_UTIL_H__ | 5 #ifndef COMPONENTS_MIME_UTIL_MIME_UTIL_H__ |
6 #define COMPONENTS_MIME_UTIL_MIME_UTIL_H__ | 6 #define COMPONENTS_MIME_UTIL_MIME_UTIL_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "net/base/mime_util.h" | 10 #include "net/base/mime_util.h" |
11 | 11 |
12 namespace mime_util { | 12 namespace mime_util { |
13 | 13 |
14 // Check to see if a particular MIME type is in the list of | 14 // Check to see if a particular MIME type is in the list of |
15 // supported/recognized MIME types. | 15 // supported/recognized MIME types. |
16 bool IsSupportedImageMimeType(const std::string& mime_type); | 16 bool IsSupportedImageMimeType(const std::string& mime_type); |
17 bool IsSupportedNonImageMimeType(const std::string& mime_type); | 17 bool IsSupportedNonImageMimeType(const std::string& mime_type); |
18 bool IsUnsupportedTextMimeType(const std::string& mime_type); | 18 bool IsUnsupportedTextMimeType(const std::string& mime_type); |
19 bool IsSupportedJavascriptMimeType(const std::string& mime_type); | 19 bool IsSupportedJavascriptMimeType(const std::string& mime_type); |
20 bool IsSupportedCertificateMimeType(const std::string& mime_type); | |
21 | 20 |
22 // Convenience function. | 21 // Convenience function. |
23 bool IsSupportedMimeType(const std::string& mime_type); | 22 bool IsSupportedMimeType(const std::string& mime_type); |
24 | 23 |
25 net::CertificateMimeType GetCertificateMimeTypeForMimeType( | 24 net::CertificateMimeType GetCertificateMimeTypeForMimeType( |
26 const std::string& mime_type); | 25 const std::string& mime_type); |
27 | 26 |
28 } // namespace mime_util | 27 } // namespace mime_util |
29 | 28 |
30 #endif // COMPONENTS_MIME_UTIL_MIME_UTIL_H__ | 29 #endif // COMPONENTS_MIME_UTIL_MIME_UTIL_H__ |
OLD | NEW |