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

Unified Diff: Source/core/fileapi/BlobBuilder.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/core/fileapi/Blob.cpp ('k') | Source/core/fileapi/BlobRegistry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fileapi/BlobBuilder.cpp
diff --git a/Source/core/fileapi/BlobBuilder.cpp b/Source/core/fileapi/BlobBuilder.cpp
index 5f8c72b2cd23c9dab3490407a00a139b5a5cdb5c..8be60c17f457fc44cbcd3860d14bce7dd0ed2539 100644
--- a/Source/core/fileapi/BlobBuilder.cpp
+++ b/Source/core/fileapi/BlobBuilder.cpp
@@ -110,7 +110,7 @@ void BlobBuilder::append(Blob* blob)
} 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));
}
}
@@ -128,11 +128,11 @@ PassRefPtr<Blob> BlobBuilder::getBlob(const String& contentType)
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));
+ // 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 blob data just created.
+ m_items.append(BlobDataItem(blob->blobDataHandle(), 0, m_size));
return blob;
}
« no previous file with comments | « Source/core/fileapi/Blob.cpp ('k') | Source/core/fileapi/BlobRegistry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698