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

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

Issue 1108083002: Create blobs from Disk Cache entries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: first pass michaeln remediation... 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/browser/blob/blob_data_builder.h
diff --git a/storage/browser/blob/blob_data_builder.h b/storage/browser/blob/blob_data_builder.h
index 8119538c07e10ffe2903eea690c4720f1ad269e5..0a0ce2fcb286a6715926c3fb738bed734fab7a5a 100644
--- a/storage/browser/blob/blob_data_builder.h
+++ b/storage/browser/blob/blob_data_builder.h
@@ -12,6 +12,7 @@
#include "base/basictypes.h"
#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
+#include "net/disk_cache/disk_cache.h"
#include "storage/browser/blob/blob_data_item.h"
#include "storage/browser/blob/blob_data_snapshot.h"
#include "storage/browser/storage_browser_export.h"
@@ -21,6 +22,8 @@ class BlobStorageContext;
class STORAGE_EXPORT BlobDataBuilder {
public:
+ typedef BlobDataItem::DataHandle DataHandle;
Tom Sepez 2015/06/15 15:53:06 nit: using.
gavinp 2015/06/15 20:10:59 Done.
+
explicit BlobDataBuilder(const std::string& uuid);
~BlobDataBuilder();
@@ -49,6 +52,10 @@ class STORAGE_EXPORT BlobDataBuilder {
uint64_t length,
const base::Time& expected_modification_time);
+ void AppendDiskCacheEntry(const scoped_refptr<DataHandle>& data_handle,
+ disk_cache::Entry* disk_cache_entry,
+ int disk_cache_stream_index);
+
void set_content_type(const std::string& content_type) {
content_type_ = content_type;
}

Powered by Google App Engine
This is Rietveld 408576698