Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: components/mime_util/mime_util.h

Issue 1110833003: Move the IsSupported* mime functions out of //net and into //components/mime_util (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/mime_util/OWNERS ('k') | components/mime_util/mime_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..bea3c5371d68df59cc0df2c195bc30ce47806d3d
--- /dev/null
+++ b/components/mime_util/mime_util.h
@@ -0,0 +1,30 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// 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 {
+
+// Check to see if a particular MIME type is in the list of
+// supported/recognized MIME types.
+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__
« no previous file with comments | « components/mime_util/OWNERS ('k') | components/mime_util/mime_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698