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

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: Self review 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 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 }
16
17 CertHostPair::~CertHostPair() {}
18
19 bool CertHostPair::operator<(const CertHostPair& other) const {
20 if (host != other.host)
21 return host < other.host;
22 return net::X509Certificate::LessThan()(cert, other.cert);
23 }
24
25 } // web
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698