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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 | 58 |
59 // Returns true if there is a cache entry in the ssl session cache | |
60 // for the given |cache key|. | |
61 // | |
62 // |cache_key| consists of an SSLConnectJobs host_and_port name | |
63 // concatenated with its session cache shard. | |
wtc
2014/06/17 17:44:40
This comment should be moved to ssl_client_socket.
mshelley1
2014/06/18 18:53:49
Done.
| |
64 virtual bool InSessionCache(); | |
wtc
2014/06/17 17:44:40
Move this method down to the "SSLClientSocket impl
mshelley1
2014/06/18 18:53:49
Done.
| |
65 | |
59 // SSLClientSocket implementation. | 66 // SSLClientSocket implementation. |
60 virtual void GetSSLCertRequestInfo( | 67 virtual void GetSSLCertRequestInfo( |
61 SSLCertRequestInfo* cert_request_info) OVERRIDE; | 68 SSLCertRequestInfo* cert_request_info) OVERRIDE; |
62 virtual NextProtoStatus GetNextProto(std::string* proto, | 69 virtual NextProtoStatus GetNextProto(std::string* proto, |
63 std::string* server_protos) OVERRIDE; | 70 std::string* server_protos) OVERRIDE; |
64 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; | 71 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; |
65 | 72 |
66 // SSLSocket implementation. | 73 // SSLSocket implementation. |
67 virtual int ExportKeyingMaterial(const base::StringPiece& label, | 74 virtual int ExportKeyingMaterial(const base::StringPiece& label, |
68 bool has_context, | 75 bool has_context, |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
241 // True if channel ID extension was negotiated. | 248 // True if channel ID extension was negotiated. |
242 bool channel_id_xtn_negotiated_; | 249 bool channel_id_xtn_negotiated_; |
243 // The request handle for |server_bound_cert_service_|. | 250 // The request handle for |server_bound_cert_service_|. |
244 ServerBoundCertService::RequestHandle channel_id_request_handle_; | 251 ServerBoundCertService::RequestHandle channel_id_request_handle_; |
245 BoundNetLog net_log_; | 252 BoundNetLog net_log_; |
246 }; | 253 }; |
247 | 254 |
248 } // namespace net | 255 } // namespace net |
249 | 256 |
250 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 257 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
OLD | NEW |