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

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

Issue 1357773002: WKWebView: Implemented recoverable SSL interstitials. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lock_coloring
Patch Set: Addressed unit tests review comments Created 5 years, 2 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/ios_web_unittests.gyp ('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
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_
« no previous file with comments | « ios/web/ios_web_unittests.gyp ('k') | ios/web/net/cert_host_pair.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698