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

Unified Diff: storage/common/data_element.cc

Issue 1108083002: Create blobs from Disk Cache entries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: omg, fix the correct base::Unretained... Created 5 years, 6 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: storage/common/data_element.cc
diff --git a/storage/common/data_element.cc b/storage/common/data_element.cc
index c6d52f4dac646af95feb85a26ce35aa2c8075db3..f26058b7fb42875343474391d615fc11c2d546bf 100644
--- a/storage/common/data_element.cc
+++ b/storage/common/data_element.cc
@@ -46,4 +46,10 @@ void DataElement::SetToFileSystemUrlRange(
expected_modification_time_ = expected_modification_time;
}
+void DataElement::SetToDiskCacheEntryRange(uint64 offset, uint64 length) {
+ type_ = TYPE_DISK_CACHE_ENTRY;
+ offset_ = offset;
+ length_ = length;
+}
+
} // namespace storage
« storage/browser/blob/blob_url_request_job.cc ('K') | « storage/common/data_element.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698