summaryrefslogtreecommitdiffstats
path: root/net/base/mime_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/mime_util.h')
-rw-r--r--net/base/mime_util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/base/mime_util.h b/net/base/mime_util.h
index d228b58..545abe0 100644
--- a/net/base/mime_util.h
+++ b/net/base/mime_util.h
@@ -19,6 +19,13 @@ namespace net {
NET_API bool GetMimeTypeFromExtension(const FilePath::StringType& ext,
std::string* mime_type);
+// Get the mime type (if any) that is associated with the given file extension.
+// Returns true if a corresponding mime type exists. In this method,
+// the search for a mime type is constrained to a limited set of
+// types known to the net library, the OS/registry is not consulted.
+NET_API bool GetWellKnownMimeTypeFromExtension(const FilePath::StringType& ext,
+ std::string* mime_type);
+
// Get the mime type (if any) that is associated with the given file. Returns
// true if a corresponding mime type exists.
NET_API bool GetMimeTypeFromFile(const FilePath& file_path,