Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
|
Lei Zhang
2015/04/28 04:01:03
nit: no (C)
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_MIME_UTIL_MIME_UTIL_H__ | |
| 6 #define COMPONENTS_MIME_UTIL_MIME_UTIL_H__ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "net/base/mime_util.h" | |
| 11 | |
| 12 namespace mime_util { | |
| 13 | |
| 14 bool IsSupportedImageMimeType(const std::string& mime_type); | |
| 15 bool IsSupportedNonImageMimeType(const std::string& mime_type); | |
| 16 bool IsUnsupportedTextMimeType(const std::string& mime_type); | |
| 17 bool IsSupportedJavascriptMimeType(const std::string& mime_type); | |
| 18 bool IsSupportedCertificateMimeType(const std::string& mime_type); | |
| 19 | |
| 20 // Convenience function. | |
| 21 bool IsSupportedMimeType(const std::string& mime_type); | |
| 22 | |
| 23 net::CertificateMimeType GetCertificateMimeTypeForMimeType( | |
| 24 const std::string& mime_type); | |
| 25 | |
| 26 } // namespace mime_util | |
| 27 | |
| 28 #endif // COMPONENTS_MIME_UTIL_MIME_UTIL_H__ | |
| OLD | NEW |