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

Unified Diff: WebCore/fileapi/WebKitBlobBuilder.cpp

Issue 11192017: ********** WebCore blob hacking (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/Source/
Patch Set: Created 7 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
« no previous file with comments | « WebCore/fileapi/ThreadableBlobRegistry.cpp ('k') | WebCore/html/DOMURL.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/fileapi/WebKitBlobBuilder.cpp
===================================================================
--- WebCore/fileapi/WebKitBlobBuilder.cpp (revision 140218)
+++ WebCore/fileapi/WebKitBlobBuilder.cpp (working copy)
@@ -135,7 +135,7 @@
} else {
long long blobSize = static_cast<long long>(blob->size());
m_size += blobSize;
- m_items.append(BlobDataItem(blob->url(), 0, blobSize));
+ m_items.append(BlobDataItem(blob->blobDataHandle(), 0, blobSize));
}
}
@@ -153,11 +153,11 @@
blobData->setContentType(contentType);
blobData->swapItems(m_items);
- RefPtr<Blob> blob = Blob::create(blobData.release(), m_size);
+ RefPtr<Blob> blob = Blob::create(BlobDataHandle::create(blobData.release(), m_size));
// After creating a blob from the current blob data, we do not need to keep the data around any more. Instead, we only
- // need to keep a reference to the URL of the blob just created.
- m_items.append(BlobDataItem(blob->url(), 0, m_size));
+ // need to keep a reference to the blob data just created.
+ m_items.append(BlobDataItem(blob->blobDataHandle(), 0, m_size));
return blob;
}
« no previous file with comments | « WebCore/fileapi/ThreadableBlobRegistry.cpp ('k') | WebCore/html/DOMURL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698