OLD | NEW |
(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 #ifndef IOS_WEB_NET_CERT_HOST_PAIR_H_ |
| 6 #define IOS_WEB_NET_CERT_HOST_PAIR_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/memory/ref_counted.h" |
| 11 |
| 12 namespace net { |
| 13 class X509Certificate; |
| 14 } |
| 15 |
| 16 namespace web { |
| 17 |
| 18 // Holds certificate-host pair. Implements operator less, hence can act as a key |
| 19 // for a container. |
| 20 struct CertHostPair { |
| 21 CertHostPair(const scoped_refptr<net::X509Certificate>& cert, |
| 22 const std::string& host); |
| 23 ~CertHostPair(); |
| 24 |
| 25 bool operator<(const CertHostPair& other) const; |
| 26 |
| 27 scoped_refptr<net::X509Certificate> cert; |
| 28 std::string host; |
| 29 }; |
| 30 |
| 31 } // namespace web |
| 32 |
| 33 #endif // IOS_WEB_NET_CERT_HOST_PAIR_H_ |
OLD | NEW |