Chromium Code Reviews| Index: net/socket/ssl_client_socket_openssl.h |
| diff --git a/net/socket/ssl_client_socket_openssl.h b/net/socket/ssl_client_socket_openssl.h |
| index d20d5ee5284ccf9383909ac194038781c1e3b966..ee73ee6f7722960a83db2c4688ed21145ab5304b 100644 |
| --- a/net/socket/ssl_client_socket_openssl.h |
| +++ b/net/socket/ssl_client_socket_openssl.h |
| @@ -57,9 +57,13 @@ class SSLClientSocketOpenSSL : public SSLClientSocket { |
| } |
| // SSLClientSocket implementation. |
| + virtual bool InSessionCache() const OVERRIDE; |
| + virtual void SetHandshakeCompletionCallback( |
| + const base::Closure& callback) OVERRIDE; |
| virtual void GetSSLCertRequestInfo( |
| SSLCertRequestInfo* cert_request_info) OVERRIDE; |
| - virtual NextProtoStatus GetNextProto(std::string* proto) OVERRIDE; |
| + virtual NextProtoStatus GetNextProto(std::string* proto, |
| + std::string* server_protos) OVERRIDE; |
|
wtc
2014/07/31 23:05:25
IMPORTANT: is this part of the CL?
mshelley
2014/08/02 23:59:15
Done.
|
| virtual ChannelIDService* GetChannelIDService() const OVERRIDE; |
| // SSLSocket implementation. |
| @@ -107,6 +111,10 @@ class SSLClientSocketOpenSSL : public SSLClientSocket { |
| void DoReadCallback(int result); |
| void DoWriteCallback(int result); |
| + // Compute a unique key string for the SSL session cache. |
| + std::string GetSessionCacheKey() const; |
| + void OnHandshakeCompletion(); |
| + |
| bool DoTransportIO(); |
| int DoHandshake(); |
| int DoChannelIDLookup(); |
| @@ -224,6 +232,12 @@ class SSLClientSocketOpenSSL : public SSLClientSocket { |
| // The service for retrieving Channel ID keys. May be NULL. |
| ChannelIDService* channel_id_service_; |
| + // Callback that is invoked when the connection finishes. |
| + // |
| + // Note: this callback will be run in Disconnect(). It will not alter |
| + // any member variables of the SSLClientSocketOpenSSL. |
| + base::Closure handshake_completion_callback_; |
| + |
| // OpenSSL stuff |
| SSL* ssl_; |
| BIO* transport_bio_; |