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

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: Created 5 years, 4 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_item.cc
diff --git a/storage/browser/blob/blob_data_item.cc b/storage/browser/blob/blob_data_item.cc
index c1ec3b3db68fadb7930d5cdcb022610cbb924037..33a9ffb2c57e44aaefeb0e53b1a3a1cbe846e8e7 100644
--- a/storage/browser/blob/blob_data_item.cc
+++ b/storage/browser/blob/blob_data_item.cc
@@ -36,4 +36,12 @@ BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item,
BlobDataItem::~BlobDataItem() {
}
+std::ostream& operator<<(std::ostream& os, const BlobDataItem& x) {
+ os << "<BlobDataItem>{item: " << x.data_element()
+ << ", 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_ << "}";
+ return os;
+}
+
} // namespace storage

Powered by Google App Engine
This is Rietveld 408576698