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

Unified Diff: mojo/public/cpp/bindings/native_struct.h

Issue 2339413004: Allow Mojo structs as map keys (Closed)
Patch Set: Fix merge problem in BUILD.gn file Created 4 years, 3 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: mojo/public/cpp/bindings/native_struct.h
diff --git a/mojo/public/cpp/bindings/native_struct.h b/mojo/public/cpp/bindings/native_struct.h
index 882c970ce250729ac018a6768550ab01f6a63e3f..95a29c6280ded7a64dae4b43700ba5f343b00f57 100644
--- a/mojo/public/cpp/bindings/native_struct.h
+++ b/mojo/public/cpp/bindings/native_struct.h
@@ -38,6 +38,7 @@ class NativeStruct {
NativeStructPtr Clone() const;
bool Equals(const NativeStruct& other) const;
+ size_t Hash(size_t seed) const;
Array<uint8_t> data;
};

Powered by Google App Engine
This is Rietveld 408576698