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

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

Issue 1599413005: Use BlobCallback in toBlob instead of FileCallback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding BlobCallback for toBlob Use Created 4 years, 11 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 285304a16aab8df1e8c38b16de5d9a2d50bbc992..a9743d7d02e13234bc10b54be029b5285ee240e3 100644
--- a/third_party/WebKit/Source/core/fileapi/Blob.h
+++ b/third_party/WebKit/Source/core/fileapi/Blob.h
@@ -65,6 +65,8 @@ public:
return new Blob(blobDataHandle);
}
+ static Blob* create(const unsigned char* data, size_t bytes, const String& mimeType);
philipj_slow 2016/01/19 22:28:14 s/mimeType/contentType/ to match other bits of Blo
+
~Blob() override;
virtual unsigned long long size() const { return m_blobDataHandle->size(); }

Powered by Google App Engine
This is Rietveld 408576698