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

Unified Diff: Source/web/WebBlob.cpp

Issue 259423002: Blink Blobs: Allow creation of WebBlob from just UUID. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.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
« no previous file with comments | « no previous file | public/web/WebBlob.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebBlob.cpp
diff --git a/Source/web/WebBlob.cpp b/Source/web/WebBlob.cpp
index d27b5bac144d68439bb0a271be4b53c31cfcdf4c..bea9c315fd9e6f8870afde697786711eb7616ba7 100644
--- a/Source/web/WebBlob.cpp
+++ b/Source/web/WebBlob.cpp
@@ -41,6 +41,12 @@ using namespace WebCore;
namespace blink {
+WebBlob WebBlob::createFromUUID(const WebString& uuid, const WebString& type, long long size)
+{
+ RefPtrWillBeRawPtr<Blob> blob = Blob::create(BlobDataHandle::create(uuid, type, size));
+ return WebBlob(blob);
+}
+
WebBlob WebBlob::createFromFile(const WebString& path, long long size)
{
OwnPtr<BlobData> blobData = BlobData::create();
« no previous file with comments | « no previous file | public/web/WebBlob.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698