Chromium Code Reviews| Index: components/mime_util/mime_util.h |
| diff --git a/components/mime_util/mime_util.h b/components/mime_util/mime_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..35c24e2f79c46b9bc2a5a9f01935413c753dd649 |
| --- /dev/null |
| +++ b/components/mime_util/mime_util.h |
| @@ -0,0 +1,28 @@ |
| +// Copyright (c) 2015 The Chromium Authors. All rights reserved. |
|
Lei Zhang
2015/04/28 04:01:03
nit: no (C)
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_MIME_UTIL_MIME_UTIL_H__ |
| +#define COMPONENTS_MIME_UTIL_MIME_UTIL_H__ |
| + |
| +#include <string> |
| + |
| +#include "net/base/mime_util.h" |
| + |
| +namespace mime_util { |
| + |
| +bool IsSupportedImageMimeType(const std::string& mime_type); |
| +bool IsSupportedNonImageMimeType(const std::string& mime_type); |
| +bool IsUnsupportedTextMimeType(const std::string& mime_type); |
| +bool IsSupportedJavascriptMimeType(const std::string& mime_type); |
| +bool IsSupportedCertificateMimeType(const std::string& mime_type); |
| + |
| +// Convenience function. |
| +bool IsSupportedMimeType(const std::string& mime_type); |
| + |
| +net::CertificateMimeType GetCertificateMimeTypeForMimeType( |
| + const std::string& mime_type); |
| + |
| +} // namespace mime_util |
| + |
| +#endif // COMPONENTS_MIME_UTIL_MIME_UTIL_H__ |