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

Unified Diff: storage/browser/blob/blob_data_builder.cc

Issue 1108083002: Create blobs from Disk Cache entries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit tests build... Created 5 years, 7 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/browser/blob/blob_data_builder.cc
diff --git a/storage/browser/blob/blob_data_builder.cc b/storage/browser/blob/blob_data_builder.cc
index 7c305a2f37719f258f6d1e7099e19a28ea0d9951..b427e143d5a582b90e6242396b557094a7960da3 100644
--- a/storage/browser/blob/blob_data_builder.cc
+++ b/storage/browser/blob/blob_data_builder.cc
@@ -60,4 +60,13 @@ void BlobDataBuilder::AppendFileSystemFile(
items_.push_back(new BlobDataItem(element.Pass()));
}
+void BlobDataBuilder::AppendDiskCacheEntry(disk_cache::ScopedEntryPtr entry,
+ int index,
+ scoped_ptr<ExtraData> extra_data) {
+ scoped_ptr<DataElement> element(new DataElement());
+ element->SetToDiskCacheEntry();
+ items_.push_back(new BlobDataItem(element.Pass(), extra_data.Pass(),
+ entry.Pass(), index));
+}
+
} // namespace storage

Powered by Google App Engine
This is Rietveld 408576698