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

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
Index: webkit/base/data_element.cc
===================================================================
--- webkit/base/data_element.cc (revision 195639)
+++ webkit/base/data_element.cc (working copy)
@@ -30,17 +30,26 @@
const GURL& blob_url,
uint64 offset, uint64 length) {
type_ = TYPE_BLOB;
- url_ = blob_url;
+ blob_url_ = blob_url;
offset_ = offset;
length_ = length;
}
+void DataElement::SetToBlobRange(
+ const std::string& blob_uuid,
+ uint64 offset, uint64 length) {
+ type_ = TYPE_BLOB;
+ blob_uuid_ = blob_uuid;
+ offset_ = offset;
+ length_ = length;
+}
+
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;

Powered by Google App Engine
This is Rietveld 408576698