OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_SOCKET_SSL_HOST_INFO_H_ | 5 #ifndef NET_SOCKET_SSL_HOST_INFO_H_ |
6 #define NET_SOCKET_SSL_HOST_INFO_H_ | 6 #define NET_SOCKET_SSL_HOST_INFO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/time.h" | 14 #include "base/time.h" |
15 #include "net/base/cert_verifier.h" | 15 #include "net/base/cert_verifier.h" |
16 #include "net/base/cert_verify_result.h" | 16 #include "net/base/cert_verify_result.h" |
17 #include "net/base/completion_callback.h" | 17 #include "net/base/completion_callback.h" |
18 #include "net/base/net_export.h" | 18 #include "net/base/net_export.h" |
| 19 #include "net/base/single_request_cert_verifier.h" |
19 #include "net/socket/ssl_client_socket.h" | 20 #include "net/socket/ssl_client_socket.h" |
20 | 21 |
21 namespace net { | 22 namespace net { |
22 | 23 |
23 class X509Certificate; | 24 class X509Certificate; |
24 struct SSLConfig; | 25 struct SSLConfig; |
25 | 26 |
26 // SSLHostInfo is an interface for fetching information about an SSL server. | 27 // SSLHostInfo is an interface for fetching information about an SSL server. |
27 // This information may be stored on disk so does not include keys or session | 28 // This information may be stored on disk so does not include keys or session |
28 // information etc. Primarily it's intended for caching the server's | 29 // information etc. Primarily it's intended for caching the server's |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 136 |
136 // GetForHost returns a fresh, allocated SSLHostInfo for the given hostname | 137 // GetForHost returns a fresh, allocated SSLHostInfo for the given hostname |
137 // or NULL on failure. | 138 // or NULL on failure. |
138 virtual SSLHostInfo* GetForHost(const std::string& hostname, | 139 virtual SSLHostInfo* GetForHost(const std::string& hostname, |
139 const SSLConfig& ssl_config) = 0; | 140 const SSLConfig& ssl_config) = 0; |
140 }; | 141 }; |
141 | 142 |
142 } // namespace net | 143 } // namespace net |
143 | 144 |
144 #endif // NET_SOCKET_SSL_HOST_INFO_H_ | 145 #endif // NET_SOCKET_SSL_HOST_INFO_H_ |
OLD | NEW |