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

Unified Diff: net/base/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 | « content/content_child.gypi ('k') | net/base/mime_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/mime_util.h
diff --git a/net/base/mime_util.h b/net/base/mime_util.h
index 09a3c7e3c7ec4a976eae0340789a76357b801635..80f440ef3e0adc990e121c2f4a608e40608f7e87 100644
--- a/net/base/mime_util.h
+++ b/net/base/mime_util.h
@@ -51,15 +51,7 @@ NET_EXPORT bool GetPreferredExtensionForMimeType(
base::FilePath::StringType* extension);
// Check to see if a particular MIME type is in our list.
-NET_EXPORT bool IsSupportedImageMimeType(const std::string& mime_type);
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 IsSupportedCertificateMimeType(const std::string& mime_type);
-
-// Convenience function.
-NET_EXPORT bool IsSupportedMimeType(const std::string& mime_type);
// Returns true if this the mime_type_pattern matches a given mime-type.
// Checks for absolute matching and wildcards. MIME types are case insensitive.
@@ -162,9 +154,6 @@ enum CertificateMimeType {
CERTIFICATE_MIME_TYPE_PKCS12_ARCHIVE,
};
-NET_EXPORT CertificateMimeType GetCertificateMimeTypeForMimeType(
- const std::string& mime_type);
-
// Prepares one value as part of a multi-part upload request.
NET_EXPORT void AddMultipartValueForUpload(const std::string& value_name,
const std::string& value,
« no previous file with comments | « content/content_child.gypi ('k') | net/base/mime_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698