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

Unified Diff: third_party/WebKit/Source/platform/MIMETypeRegistry.h

Issue 2497873002: Tidy up ScriptLoader (MIME) type matching. (Closed)
Patch Set: perform case-insensitive equality checks over ASCII only Created 4 years, 1 month 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 | « third_party/WebKit/Source/core/dom/ScriptLoader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/MIMETypeRegistry.h
diff --git a/third_party/WebKit/Source/platform/MIMETypeRegistry.h b/third_party/WebKit/Source/platform/MIMETypeRegistry.h
index 2219007a5546e2c01528757167eaa6b8a1a2db08..95b9adc3ded4126c7dbdde616cd0255265a73cf3 100644
--- a/third_party/WebKit/Source/platform/MIMETypeRegistry.h
+++ b/third_party/WebKit/Source/platform/MIMETypeRegistry.h
@@ -34,6 +34,10 @@
namespace blink {
+// Note/reminder: MIME type and parameter names are per-RFC case
+// insensitive (https://www.ietf.org/rfc/rfc2045.txt , section 5.1).
+// The MIMETypeRegistry predicates are all case-insensitive.
+
// TODO(kinuko): Move this file under platform/network/mime.
class PLATFORM_EXPORT MIMETypeRegistry {
STATIC_ONLY(MIMETypeRegistry);
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698