| 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
|
|
|