| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 StreamSocket* transport_socket, | 57 StreamSocket* transport_socket, |
| 58 const HostPortPair& host_and_port, | 58 const HostPortPair& host_and_port, |
| 59 const SSLConfig& ssl_config, | 59 const SSLConfig& ssl_config, |
| 60 const SSLClientSocketContext& context); | 60 const SSLClientSocketContext& context); |
| 61 | 61 |
| 62 // Clears cache used for SSL session resumption. | 62 // Clears cache used for SSL session resumption. |
| 63 virtual void ClearSSLSessionCache() = 0; | 63 virtual void ClearSSLSessionCache() = 0; |
| 64 | 64 |
| 65 // Returns the default ClientSocketFactory. | 65 // Returns the default ClientSocketFactory. |
| 66 static ClientSocketFactory* GetDefaultFactory(); | 66 static ClientSocketFactory* GetDefaultFactory(); |
| 67 | |
| 68 // Instructs the default ClientSocketFactory to use the system SSL library. | |
| 69 static void UseSystemSSL(); | |
| 70 }; | 67 }; |
| 71 | 68 |
| 72 } // namespace net | 69 } // namespace net |
| 73 | 70 |
| 74 #endif // NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ | 71 #endif // NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ |
| OLD | NEW |