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

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

Issue 1357773002: WKWebView: Implemented recoverable SSL interstitials. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lock_coloring
Patch Set: Addressed Joel's 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
Index: ios/web/net/cert_host_pair.cc
diff --git a/ios/web/net/cert_host_pair.cc b/ios/web/net/cert_host_pair.cc
new file mode 100644
index 0000000000000000000000000000000000000000..cefc6eb7dc5a97b97da850e0c904d7b593975341
--- /dev/null
+++ b/ios/web/net/cert_host_pair.cc
@@ -0,0 +1,23 @@
+// 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.
+
+#include "ios/web/net/cert_host_pair.h"
+
+#include "net/cert/x509_certificate.h"
+
+namespace web {
+
+CertHostPair::CertHostPair(const scoped_refptr<net::X509Certificate>& cert,
+ const std::string& host)
+ : cert(cert), host(host) {}
+
+CertHostPair::~CertHostPair() {}
+
+bool CertHostPair::operator<(const CertHostPair& other) const {
+ if (host != other.host)
+ return host < other.host;
+ return net::X509Certificate::LessThan()(cert, other.cert);
+}
+
+} // web

Powered by Google App Engine
This is Rietveld 408576698