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

Unified Diff: webkit/base/data_element.cc

Issue 14139026: New blobstoragecontext for use in the main browser process, not plugged in yet. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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 | « webkit/base/data_element.h ('k') | webkit/blob/blob_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/base/data_element.cc
===================================================================
--- webkit/base/data_element.cc (revision 197440)
+++ webkit/base/data_element.cc (working copy)
@@ -30,17 +30,28 @@
const GURL& blob_url,
uint64 offset, uint64 length) {
type_ = TYPE_BLOB;
- url_ = blob_url;
+ blob_url_ = blob_url;
offset_ = offset;
length_ = length;
+ blob_uuid_.clear();
}
+void DataElement::SetToBlobRange(
+ const std::string& blob_uuid,
+ uint64 offset, uint64 length) {
+ type_ = TYPE_BLOB;
+ blob_uuid_ = blob_uuid;
+ offset_ = offset;
+ length_ = length;
+ blob_url_ = GURL();
+}
+
void DataElement::SetToFileSystemUrlRange(
const GURL& filesystem_url,
uint64 offset, uint64 length,
const base::Time& expected_modification_time) {
type_ = TYPE_FILE_FILESYSTEM;
- url_ = filesystem_url;
+ filesystem_url_ = filesystem_url;
offset_ = offset;
length_ = length;
expected_modification_time_ = expected_modification_time;
« no previous file with comments | « webkit/base/data_element.h ('k') | webkit/blob/blob_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698