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

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

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_data_item.h ('k') | storage/browser/blob/blob_memory_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/blob/blob_data_item.cc
diff --git a/storage/browser/blob/blob_data_item.cc b/storage/browser/blob/blob_data_item.cc
index 58ccabe267b4df163d2de566b380d0ec0469ec5b..ea5279e8ce36f074771306ee4937b59f166fd345 100644
--- a/storage/browser/blob/blob_data_item.cc
+++ b/storage/browser/blob/blob_data_item.cc
@@ -12,16 +12,16 @@ BlobDataItem::DataHandle::~DataHandle() {
BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item)
: item_(item.Pass()),
disk_cache_entry_(nullptr),
- disk_cache_stream_index_(-1) {
-}
+ disk_cache_stream_index_(-1),
+ temp_file_(false) {}
BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item,
const scoped_refptr<DataHandle>& data_handle)
: item_(item.Pass()),
data_handle_(data_handle),
disk_cache_entry_(nullptr),
- disk_cache_stream_index_(-1) {
-}
+ disk_cache_stream_index_(-1),
+ temp_file_(false) {}
BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item,
const scoped_refptr<DataHandle>& data_handle,
@@ -30,8 +30,8 @@ BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item,
: item_(item.Pass()),
data_handle_(data_handle),
disk_cache_entry_(entry),
- disk_cache_stream_index_(disk_cache_stream_index) {
-}
+ disk_cache_stream_index_(disk_cache_stream_index),
+ temp_file_(false) {}
BlobDataItem::~BlobDataItem() {}
@@ -41,7 +41,8 @@ void PrintTo(const BlobDataItem& x, ::std::ostream* os) {
PrintTo(*x.item_, os);
*os << ", has_data_handle: " << (x.data_handle_.get() ? "true" : "false")
<< ", disk_cache_entry_ptr: " << x.disk_cache_entry_
- << ", disk_cache_stream_index_: " << x.disk_cache_stream_index_ << "}";
+ << ", disk_cache_stream_index_: " << x.disk_cache_stream_index_
+ << ", temp_file_: " << x.temp_file_ << "}";
}
bool operator==(const BlobDataItem& a, const BlobDataItem& b) {
« no previous file with comments | « storage/browser/blob/blob_data_item.h ('k') | storage/browser/blob/blob_memory_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698