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

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: rebase better 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
« storage/common/data_element.h ('K') | « storage/common/data_element.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/common/data_element.cc
diff --git a/storage/common/data_element.cc b/storage/common/data_element.cc
index c6d52f4dac646af95feb85a26ce35aa2c8075db3..1779fc8cda36ce6243b931b135528b6552bf64ec 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) {
+ offset_ = offset;
+ length_ = length;
+ type_ = TYPE_DISK_CACHE_ENTRY;
+}
+
} // namespace storage
« storage/common/data_element.h ('K') | « storage/common/data_element.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698