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

Unified Diff: third_party/WebKit/Source/core/fileapi/Blob.h

Issue 1362963003: Blob/File constructors/slice method shouldn't throw on invalid types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated win expectation Created 3 years, 9 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: third_party/WebKit/Source/core/fileapi/Blob.h
diff --git a/third_party/WebKit/Source/core/fileapi/Blob.h b/third_party/WebKit/Source/core/fileapi/Blob.h
index 99097137f73638f8e7f32ababb4f163a39574bb3..aa69ca27b39d3c7cc141180bbef140a61914f662 100644
--- a/third_party/WebKit/Source/core/fileapi/Blob.h
+++ b/third_party/WebKit/Source/core/fileapi/Blob.h
@@ -132,6 +132,11 @@ class CORE_EXPORT Blob : public GarbageCollectedFinalized<Blob>,
long long& start,
long long& end);
+ // Called by the Blob and File constructors when processing the 'type'
+ // option per the FileAPI standard. Returns "" if |type| contains any
+ // character outside U+0020...U+007E, or |type| ASCII-lowercased otherwise.
+ static String normalizeType(const String& type);
+
private:
Blob();

Powered by Google App Engine
This is Rietveld 408576698