Chromium Code Reviews| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 60 const SSLConfig& ssl_config, | 60 const SSLConfig& ssl_config, |
| 61 SSLHostInfo* ssl_host_info, | 61 SSLHostInfo* ssl_host_info, |
| 62 CertVerifier* cert_verifier); | 62 CertVerifier* cert_verifier); |
| 63 | 63 |
| 64 // Returns the default ClientSocketFactory. | 64 // Returns the default ClientSocketFactory. |
| 65 static ClientSocketFactory* GetDefaultFactory(); | 65 static ClientSocketFactory* GetDefaultFactory(); |
| 66 | 66 |
| 67 // Instructs the default ClientSocketFactory to use |factory| to create | 67 // Instructs the default ClientSocketFactory to use |factory| to create |
| 68 // SSLClientSocket objects. | 68 // SSLClientSocket objects. |
| 69 static void SetSSLClientSocketFactory(SSLClientSocketFactory factory); | 69 static void SetSSLClientSocketFactory(SSLClientSocketFactory factory); |
| 70 | |
| 71 // Clears cache used for SSL session resumption. | |
| 72 static void ClearSSLSessionCache(); | |
| 73 | |
| 74 // Instructs the ClientSocketFactory to use |clear| to clear the | |
| 75 // SSL session cache. | |
| 76 static void SetClearSSLSessionCache(void (*clear)()); | |
| 77 | |
| 78 static void DefaultClearSSLSessionCache(); | |
|
wtc
2011/02/15 20:50:40
These three static methods should be part of the
S
| |
| 70 }; | 79 }; |
| 71 | 80 |
| 72 } // namespace net | 81 } // namespace net |
| 73 | 82 |
| 74 #endif // NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ | 83 #endif // NET_SOCKET_CLIENT_SOCKET_FACTORY_H_ |
| OLD | NEW |