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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b32322a6f5421f152ac11182a88a61efe079c094 |
--- /dev/null |
+++ b/ios/web/net/cert_host_pair.h |
@@ -0,0 +1,33 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef IOS_WEB_NET_CERT_HOST_PAIR_H_ |
+#define IOS_WEB_NET_CERT_HOST_PAIR_H_ |
+ |
+#include <string> |
+ |
+#include "base/memory/ref_counted.h" |
+ |
+namespace net { |
+class X509Certificate; |
+} |
+ |
+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); |
+ ~CertHostPair(); |
+ |
+ bool operator<(const CertHostPair& other) const; |
+ |
+ scoped_refptr<net::X509Certificate> cert; |
+ std::string host; |
+}; |
+ |
+} // namespace web |
+ |
+#endif // IOS_WEB_NET_CERT_HOST_PAIR_H_ |