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

Unified Diff: net/base/mime_util.h

Issue 228823003: Adding check for MIME types that do not take codecs parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
Index: net/base/mime_util.h
diff --git a/net/base/mime_util.h b/net/base/mime_util.h
index 9662e9656e397de2d48adedbfae590a3249ff4a7..cff021455f79b3ebb533f350fb848240f153d593 100644
--- a/net/base/mime_util.h
+++ b/net/base/mime_util.h
@@ -85,6 +85,10 @@ NET_EXPORT bool IsSupportedStrictMediaMimeType(
const std::string& mime_type,
const std::vector<std::string>& codecs);
+// Check to see if a particular MIME type specifically requires codecs parameter
+// not to be present with it.
Ryan Sleevi 2014/04/10 19:04:16 The comment here needs to be improved, but unfortu
amogh.bihani 2014/04/11 05:24:07 There are two things: [a] Browser will never reach
Ryan Sleevi 2014/04/14 23:52:25 The naming here still bothers me, in that it doesn
amogh.bihani 2014/04/15 13:26:50 Done. :)
+NET_EXPORT bool MimeTypeDoesNotNeedCodecs(const std::string& mime_type);
+
// Get the extensions associated with the given mime type. This should be passed
// in lower case. There could be multiple extensions for a given mime type, like
// "html,htm" for "text/html", or "txt,text,html,..." for "text/*".

Powered by Google App Engine
This is Rietveld 408576698