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

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

Issue 1292523002: [BlobAsync] Patch 3: Renderer Classes & Logic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@async2
Patch Set: comments and test 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/common/blob_storage/blob_item_bytes_request.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 b9ac29bce0837e6feda4a5cc50658f7c51d8faa2..58ccabe267b4df163d2de566b380d0ec0469ec5b 100644
--- a/storage/browser/blob/blob_data_item.cc
+++ b/storage/browser/blob/blob_data_item.cc
@@ -44,4 +44,14 @@ void PrintTo(const BlobDataItem& x, ::std::ostream* os) {
<< ", disk_cache_stream_index_: " << x.disk_cache_stream_index_ << "}";
}
+bool operator==(const BlobDataItem& a, const BlobDataItem& b) {
+ return a.disk_cache_entry() == b.disk_cache_entry() &&
+ a.disk_cache_stream_index() == b.disk_cache_stream_index() &&
+ a.data_element() == b.data_element();
+}
+
+bool operator!=(const BlobDataItem& a, const BlobDataItem& b) {
+ return !(a == b);
+}
+
} // namespace storage
« no previous file with comments | « storage/browser/blob/blob_data_item.h ('k') | storage/common/blob_storage/blob_item_bytes_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698