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

Unified Diff: Source/web/WebBlob.cpp

Issue 23992003: blob hacking webcore style (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 | « Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp ('k') | Source/web/WebBlobData.cpp » ('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 3fb90d128b38b7686e627b83d36628b46a95b292..c3936a2e973bb4963f4dbff8531b7cc1b1acc467 100644
--- a/Source/web/WebBlob.cpp
+++ b/Source/web/WebBlob.cpp
@@ -45,7 +45,7 @@ WebBlob WebBlob::createFromFile(const WebString& path, long long size)
{
OwnPtr<BlobData> blobData = BlobData::create();
blobData->appendFile(path);
- RefPtr<Blob> blob = Blob::create(blobData.release(), size);
+ RefPtr<Blob> blob = Blob::create(BlobDataHandle::create(blobData.release(), size));
return WebBlob(blob);
}
@@ -70,11 +70,11 @@ void WebBlob::assign(const WebBlob& other)
m_private = other.m_private;
}
-WebURL WebBlob::url()
+WebString WebBlob::uuid()
{
if (!m_private.get())
- return WebURL();
- return m_private->url();
+ return WebString();
+ return m_private->uuid();
}
v8::Handle<v8::Value> WebBlob::toV8Value()
« no previous file with comments | « Source/modules/websockets/WorkerThreadableWebSocketChannel.cpp ('k') | Source/web/WebBlobData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698