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

Unified Diff: ios/web/net/cert_host_pair.h

Issue 2000503002: Remove the fingerprint and ca_fingerprint from X509Certificate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_cache
Patch Set: Fix IDN test Created 4 years, 6 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 | « ios/web/navigation/crw_session_certificate_policy_manager.mm ('k') | ios/web/net/cert_host_pair.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/net/cert_host_pair.h
diff --git a/ios/web/net/cert_host_pair.h b/ios/web/net/cert_host_pair.h
index f251c1b5727dbaba14ea94260b37768c88841471..36075014c4c6da1666db0bc59771b9ca17ba5766 100644
--- a/ios/web/net/cert_host_pair.h
+++ b/ios/web/net/cert_host_pair.h
@@ -7,7 +7,9 @@
#include <string>
+#include "base/gtest_prod_util.h"
#include "base/memory/ref_counted.h"
+#include "net/base/hash_value.h"
namespace net {
class X509Certificate;
@@ -17,16 +19,20 @@ namespace web {
// Holds certificate-host pair. Implements operator less, hence can act as a key
// for a container.
-struct CertHostPair {
- CertHostPair(const scoped_refptr<net::X509Certificate>& cert,
- const std::string& host);
+class CertHostPair {
+ public:
+ CertHostPair(scoped_refptr<net::X509Certificate> cert, std::string host);
CertHostPair(const CertHostPair& other);
~CertHostPair();
bool operator<(const CertHostPair& other) const;
- scoped_refptr<net::X509Certificate> cert;
- std::string host;
+ private:
+ FRIEND_TEST_ALL_PREFIXES(CertHostPairTest, Construction);
+
+ const scoped_refptr<net::X509Certificate> cert_;
+ const std::string host_;
+ const net::SHA256HashValue cert_hash_;
};
} // namespace web
« no previous file with comments | « ios/web/navigation/crw_session_certificate_policy_manager.mm ('k') | ios/web/net/cert_host_pair.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698