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

Unified Diff: net/base/hash_value.h

Issue 1432663002: Add type-safe constructors to net::HashValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | net/base/hash_value.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/hash_value.h
diff --git a/net/base/hash_value.h b/net/base/hash_value.h
index a9e0b63a8318b38cec720fe3bb88101644f86d91..f2d217f28c8eed940555f027e240787ea5498a20 100644
--- a/net/base/hash_value.h
+++ b/net/base/hash_value.h
@@ -36,6 +36,8 @@ enum HashValueTag {
class NET_EXPORT HashValue {
public:
+ explicit HashValue(const SHA1HashValue& hash);
+ explicit HashValue(const SHA256HashValue& hash);
explicit HashValue(HashValueTag tag) : tag(tag) {}
HashValue() : tag(HASH_VALUE_SHA1) {}
« no previous file with comments | « no previous file | net/base/hash_value.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698