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..94fb9e50388633ba5bfcff901338603efc5039b6 100644 |
--- a/storage/browser/blob/blob_data_builder.cc |
+++ b/storage/browser/blob/blob_data_builder.cc |
@@ -5,6 +5,7 @@ |
#include "storage/browser/blob/blob_data_builder.h" |
#include "base/time/time.h" |
+#include "net/disk_cache/disk_cache.h" |
#include "storage/browser/blob/shareable_file_reference.h" |
namespace storage { |
@@ -60,4 +61,16 @@ void BlobDataBuilder::AppendFileSystemFile( |
items_.push_back(new BlobDataItem(element.Pass())); |
} |
+void BlobDataBuilder::AppendDiskCacheEntry( |
+ const scoped_refptr<DataHandle>& data_handle, |
+ disk_cache::Entry* disk_cache_entry, |
+ int disk_cache_stream_index) { |
+ scoped_ptr<DataElement> element(new DataElement()); |
+ element->SetToDiskCacheEntryRange( |
+ 0U, disk_cache_entry->GetDataSize(disk_cache_stream_index)); |
+ items_.push_back( |
+ new BlobDataItem(element.Pass(), data_handle, disk_cache_entry, |
+ disk_cache_stream_index)); |
+} |
+ |
} // namespace storage |