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

Unified Diff: storage/browser/blob/blob_data_builder.h

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_builder.h
diff --git a/storage/browser/blob/blob_data_builder.h b/storage/browser/blob/blob_data_builder.h
index 096018801787f7a3c1f065274ea0d7edd898e76c..5600ca8eab80a80bc960271c57edd57c0a69e50e 100644
--- a/storage/browser/blob/blob_data_builder.h
+++ b/storage/browser/blob/blob_data_builder.h
@@ -165,6 +165,10 @@ inline bool operator==(const BlobDataSnapshot& a, const BlobDataBuilder& b) {
return true;
}
+inline bool operator==(const BlobDataBuilder& a, const BlobDataSnapshot& b) {
+ return b == a;
+}
+
inline bool operator!=(const BlobDataSnapshot& a, const BlobDataBuilder& b) {
return !(a == b);
}
@@ -173,6 +177,10 @@ inline bool operator!=(const BlobDataBuilder& a, const BlobDataBuilder& b) {
return !(a == b);
}
+inline bool operator!=(const BlobDataBuilder& a, const BlobDataSnapshot& b) {
+ return b != a;
+}
+
#endif // defined(UNIT_TEST)
} // namespace storage

Powered by Google App Engine
This is Rietveld 408576698