OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CLIENT_SOCKET_FACTORY_H_ | 5 #ifndef NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ |
6 #define NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ | 6 #define NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 DnsCertProvenanceChecker* dns_cert_checker) = 0; | 45 DnsCertProvenanceChecker* dns_cert_checker) = 0; |
46 | 46 |
47 // Deprecated function (http://crbug.com/37810) that takes a ClientSocket. | 47 // Deprecated function (http://crbug.com/37810) that takes a ClientSocket. |
48 virtual SSLClientSocket* CreateSSLClientSocket( | 48 virtual SSLClientSocket* CreateSSLClientSocket( |
49 ClientSocket* transport_socket, | 49 ClientSocket* transport_socket, |
50 const HostPortPair& host_and_port, | 50 const HostPortPair& host_and_port, |
51 const SSLConfig& ssl_config, | 51 const SSLConfig& ssl_config, |
52 SSLHostInfo* ssl_host_info, | 52 SSLHostInfo* ssl_host_info, |
53 CertVerifier* cert_verifier); | 53 CertVerifier* cert_verifier); |
54 | 54 |
| 55 // Clears cache used for SSL session resumption. |
| 56 virtual void ClearSSLSessionCache() = 0; |
| 57 |
55 // Returns the default ClientSocketFactory. | 58 // Returns the default ClientSocketFactory. |
56 static ClientSocketFactory* GetDefaultFactory(); | 59 static ClientSocketFactory* GetDefaultFactory(); |
57 | 60 |
58 // Instructs the default ClientSocketFactory to use the system SSL library. | 61 // Instructs the default ClientSocketFactory to use the system SSL library. |
59 static void UseSystemSSL(); | 62 static void UseSystemSSL(); |
60 }; | 63 }; |
61 | 64 |
62 } // namespace net | 65 } // namespace net |
63 | 66 |
64 #endif // NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ | 67 #endif // NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ |
OLD | NEW |