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

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

Issue 1528233004: [Blob] Blob paging to disk patch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blob-disk1
Patch Set: Created 5 years 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
« no previous file with comments | « storage/browser/blob/blob_async_transport_strategy.cc ('k') | storage/browser/blob/blob_data_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f075c2161f96b37a20b90723c2288bab0e8f780f..4d2e217bab3b3811433bbc0d8f9e511fdb98958c 100644
--- a/storage/browser/blob/blob_data_builder.h
+++ b/storage/browser/blob/blob_data_builder.h
@@ -15,8 +15,13 @@
#include "base/memory/ref_counted.h"
#include "storage/browser/blob/blob_data_item.h"
#include "storage/browser/blob/blob_data_snapshot.h"
+#include "storage/browser/blob/shareable_file_reference.h"
#include "storage/browser/storage_browser_export.h"
+namespace base {
+class TaskRunner;
+}
+
namespace disk_cache {
class Entry;
}
@@ -93,6 +98,14 @@ class STORAGE_EXPORT BlobDataBuilder {
uint64_t length,
const base::Time& expected_modification_time);
+ // You must know the length of the file, you cannot use kuint64max to specify
+ // the whole file.
+ void AppendShareableFileReference(
+ const scoped_refptr<ShareableFileReference> file,
+ uint64_t offset,
+ uint64_t length,
+ const base::Time& expected_modification_time);
+
void AppendBlob(const std::string& uuid, uint64_t offset, uint64_t length);
void AppendBlob(const std::string& uuid);
« no previous file with comments | « storage/browser/blob/blob_async_transport_strategy.cc ('k') | storage/browser/blob/blob_data_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698