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

Unified Diff: storage/common/blob_storage/blob_item_bytes_request.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
Index: storage/common/blob_storage/blob_item_bytes_request.cc
diff --git a/storage/common/blob_storage/blob_item_bytes_request.cc b/storage/common/blob_storage/blob_item_bytes_request.cc
index ffec47066e8aef3b1041464c3b49743c3b447d08..bb301555fb19d44c5f0bfe5ae791c957cb04b46d 100644
--- a/storage/common/blob_storage/blob_item_bytes_request.cc
+++ b/storage/common/blob_storage/blob_item_bytes_request.cc
@@ -66,4 +66,16 @@ void PrintTo(const BlobItemBytesRequest& request, std::ostream* os) {
<< ", handle_offset: " << request.handle_offset << "}";
}
+bool operator==(const BlobItemBytesRequest& a, const BlobItemBytesRequest& b) {
+ return a.request_number == b.request_number &&
+ a.transport_strategy == b.transport_strategy &&
+ a.renderer_item_index == b.renderer_item_index &&
+ a.renderer_item_offset == b.renderer_item_offset && a.size == b.size &&
+ a.handle_index == b.handle_index && a.handle_offset == b.handle_offset;
+}
+
+bool operator!=(const BlobItemBytesRequest& a, const BlobItemBytesRequest& b) {
+ return !(a == b);
+}
+
} // namespace storage
« no previous file with comments | « storage/common/blob_storage/blob_item_bytes_request.h ('k') | storage/common/blob_storage/blob_item_bytes_response.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698