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

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

Issue 1288373002: [BlobAsync] Patch 2: Common Constants (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@async1
Patch Set: comments Created 5 years, 2 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
« no previous file with comments | « storage/browser/blob/blob_data_item.h ('k') | storage/browser/blob/blob_reader.cc » ('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 c1ec3b3db68fadb7930d5cdcb022610cbb924037..b9ac29bce0837e6feda4a5cc50658f7c51d8faa2 100644
--- a/storage/browser/blob/blob_data_item.cc
+++ b/storage/browser/blob/blob_data_item.cc
@@ -33,7 +33,15 @@ BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item,
disk_cache_stream_index_(disk_cache_stream_index) {
}
-BlobDataItem::~BlobDataItem() {
+BlobDataItem::~BlobDataItem() {}
+
+void PrintTo(const BlobDataItem& x, ::std::ostream* os) {
+ DCHECK(os);
+ *os << "<BlobDataItem>{item: ";
+ 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_ << "}";
}
} // namespace storage
« no previous file with comments | « storage/browser/blob/blob_data_item.h ('k') | storage/browser/blob/blob_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698