| 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_CLIENT_SOCKET_OPENSSL_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
| 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 SSLClientSocketOpenSSL(scoped_ptr<ClientSocketHandle> transport_socket, | 48 SSLClientSocketOpenSSL(scoped_ptr<ClientSocketHandle> transport_socket, |
| 49 const HostPortPair& host_and_port, | 49 const HostPortPair& host_and_port, |
| 50 const SSLConfig& ssl_config, | 50 const SSLConfig& ssl_config, |
| 51 const SSLClientSocketContext& context); | 51 const SSLClientSocketContext& context); |
| 52 virtual ~SSLClientSocketOpenSSL(); | 52 virtual ~SSLClientSocketOpenSSL(); |
| 53 | 53 |
| 54 const HostPortPair& host_and_port() const { return host_and_port_; } | 54 const HostPortPair& host_and_port() const { return host_and_port_; } |
| 55 const std::string& ssl_session_cache_shard() const { | 55 const std::string& ssl_session_cache_shard() const { |
| 56 return ssl_session_cache_shard_; | 56 return ssl_session_cache_shard_; |
| 57 } | 57 } |
| 58 std::string GetSessionCacheKey() const; | |
| 59 | 58 |
| 60 // SSLClientSocket implementation. | 59 // SSLClientSocket implementation. |
| 60 virtual std::string GetSessionCacheKey() const; |
| 61 virtual bool InSessionCache() const OVERRIDE; | 61 virtual bool InSessionCache() const OVERRIDE; |
| 62 virtual void WatchSessionForCompletion( | 62 virtual void WatchSessionForCompletion( |
| 63 const base::Closure& callback) OVERRIDE; | 63 const base::Closure& callback) OVERRIDE; |
| 64 virtual void SetSocketFailureCallback(const base::Closure& callback) OVERRIDE; | 64 virtual void SetSocketFailureCallback(const base::Closure& callback) OVERRIDE; |
| 65 virtual void SetIsLeader() OVERRIDE; | 65 virtual void SetIsLeader() OVERRIDE; |
| 66 virtual void OnSocketFailure() OVERRIDE; | 66 virtual void OnSocketFailure() OVERRIDE; |
| 67 virtual void GetSSLCertRequestInfo( | 67 virtual void GetSSLCertRequestInfo( |
| 68 SSLCertRequestInfo* cert_request_info) OVERRIDE; | 68 SSLCertRequestInfo* cert_request_info) OVERRIDE; |
| 69 virtual NextProtoStatus GetNextProto(std::string* proto, | 69 virtual NextProtoStatus GetNextProto(std::string* proto, |
| 70 std::string* server_protos) OVERRIDE; | 70 std::string* server_protos) OVERRIDE; |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 // True if channel ID extension was negotiated. | 262 // True if channel ID extension was negotiated. |
| 263 bool channel_id_xtn_negotiated_; | 263 bool channel_id_xtn_negotiated_; |
| 264 // The request handle for |server_bound_cert_service_|. | 264 // The request handle for |server_bound_cert_service_|. |
| 265 ServerBoundCertService::RequestHandle channel_id_request_handle_; | 265 ServerBoundCertService::RequestHandle channel_id_request_handle_; |
| 266 BoundNetLog net_log_; | 266 BoundNetLog net_log_; |
| 267 }; | 267 }; |
| 268 | 268 |
| 269 } // namespace net | 269 } // namespace net |
| 270 | 270 |
| 271 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 271 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
| OLD | NEW |