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

Unified Diff: webkit/blob/blob_data.cc

Issue 11410019: ********** Chromium Blob hacking (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 | « webkit/blob/blob_data.h ('k') | webkit/blob/blob_storage_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/blob/blob_data.cc
===================================================================
--- webkit/blob/blob_data.cc (revision 183651)
+++ webkit/blob/blob_data.cc (working copy)
@@ -11,7 +11,9 @@
namespace webkit_blob {
-BlobData::BlobData() {}
+BlobData::BlobData(const std::string& uuid)
+ : uuid_(uuid) {
+}
BlobData::~BlobData() {}
@@ -30,10 +32,11 @@
expected_modification_time);
}
-void BlobData::AppendBlob(const GURL& blob_url, uint64 offset, uint64 length) {
+void BlobData::AppendBlob(
+ const std::string& uuid, uint64 offset, uint64 length) {
DCHECK(length > 0);
items_.push_back(Item());
- items_.back().SetToBlobUrlRange(blob_url, offset, length);
+ items_.back().SetToBlobRange(uuid, offset, length);
}
void BlobData::AppendFileSystemFile(
« no previous file with comments | « webkit/blob/blob_data.h ('k') | webkit/blob/blob_storage_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698