| 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
|
|
|