| Index: net/base/mime_util.h
|
| diff --git a/net/base/mime_util.h b/net/base/mime_util.h
|
| index c8dfe86380985147bb93a53778d39fd2d1286ac7..019ce680c0fe5ef21a8af8b1d12c7154d52b1b47 100644
|
| --- a/net/base/mime_util.h
|
| +++ b/net/base/mime_util.h
|
| @@ -44,6 +44,7 @@ NET_EXPORT bool IsSupportedMediaMimeType(const std::string& mime_type);
|
| NET_EXPORT bool IsSupportedNonImageMimeType(const std::string& mime_type);
|
| NET_EXPORT bool IsUnsupportedTextMimeType(const std::string& mime_type);
|
| NET_EXPORT bool IsSupportedJavascriptMimeType(const std::string& mime_type);
|
| +NET_EXPORT bool IsSupportedCryptoMimeType(const std::string& mime_type);
|
|
|
| // Get whether this mime type should be displayed in view-source mode.
|
| // (For example, XML.)
|
| @@ -111,6 +112,22 @@ NET_EXPORT void GetMediaCodecsBlacklistedForTests(
|
| // Supported media types are defined at:
|
| // http://www.iana.org/assignments/media-types/index.html
|
| NET_EXPORT const std::string GetIANAMediaType(const std::string& mime_type);
|
| +
|
| +// A list of supported crypto-related mime types.
|
| +//
|
| +// IMPORTANT: These values *must* match the ones found in:
|
| +// net/android/java/src/org/chromium/net/AndroidNetworkLibrary.java
|
| +//
|
| +enum CryptoFileType {
|
| + CRYPTO_FILE_TYPE_UNKNOWN = 0,
|
| + CRYPTO_FILE_TYPE_X509_USER_CERT = 1,
|
| + CRYPTO_FILE_TYPE_X509_CA_CERT = 2,
|
| + CRYPTO_FILE_TYPE_PKCS12_KEYCHAIN = 3,
|
| +};
|
| +
|
| +NET_EXPORT CryptoFileType GetCryptoFileTypeForMimeType(
|
| + const std::string& mime_type);
|
| +
|
| } // namespace net
|
|
|
| #endif // NET_BASE_MIME_UTIL_H__
|
|
|