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

Side by Side 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: Resolved Ryan's review comments Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ios/web/net/cert_host_pair.h"
6
7 #include "net/cert/x509_certificate.h"
8
9 namespace web {
10
11 CertHostPair::CertHostPair(const scoped_refptr<net::X509Certificate>& cert,
12 const std::string& host)
13 : cert(cert), host(host) {}
14
15 CertHostPair::~CertHostPair() {}
16
17 bool CertHostPair::operator<(const CertHostPair& other) const {
18 if (host != other.host)
19 return host < other.host;
20 return net::X509Certificate::LessThan()(cert, other.cert);
21 }
22
23 } // web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698