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

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

Issue 1234813004: [BlobAsync] Asynchronous Blob Construction Final Patch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blob-protocol-change
Patch Set: comments Created 4 years, 9 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_snapshot.cc
diff --git a/storage/browser/blob/blob_data_snapshot.cc b/storage/browser/blob/blob_data_snapshot.cc
index 0071a11dfd2e9fd96b9aad2380de8e3db0e19802..45a85242e088c339de323032857e67a4b43b1fd4 100644
--- a/storage/browser/blob/blob_data_snapshot.cc
+++ b/storage/browser/blob/blob_data_snapshot.cc
@@ -47,4 +47,16 @@ size_t BlobDataSnapshot::GetMemoryUsage() const {
return memory;
}
+void PrintTo(const BlobDataSnapshot& x, std::ostream* os) {
+ DCHECK(os);
+ *os << "<BlobDataSnapshot>{uuid: " << x.uuid()
+ << ", content_type: " << x.content_type_
+ << ", content_disposition: " << x.content_disposition_ << ", items: [";
+ for (const auto& item : x.items_) {
+ PrintTo(*item, os);
+ *os << ", ";
+ }
+ *os << "]}";
+}
+
} // namespace storage

Powered by Google App Engine
This is Rietveld 408576698