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 a15c0e3b9684502d090ee0de3fa7d1dbd5684b99..1cd69b325bea1adc5a71df30b2f8e323ea14d17d 100644 |
--- a/net/socket/ssl_client_socket_openssl.h |
+++ b/net/socket/ssl_client_socket_openssl.h |
@@ -43,6 +43,9 @@ class SSLClientSocketOpenSSL : public SSLClientSocket { |
~SSLClientSocketOpenSSL(); |
const HostPortPair& host_and_port() const { return host_and_port_; } |
+ const std::string& session_cache_shard() const { |
+ return session_cache_shard_; |
+ } |
// Callback from the SSL layer that indicates the remote server is requesting |
// a certificate for this client. |
@@ -156,6 +159,10 @@ class SSLClientSocketOpenSSL : public SSLClientSocket { |
scoped_ptr<ClientSocketHandle> transport_; |
const HostPortPair host_and_port_; |
SSLConfig ssl_config_; |
+ // session_cache_shard_ is an opaque string that partitions the SSL session |
+ // cache. i.e. sessions created with one value will not attempt to resume on |
+ // the socket with a different value. |
+ const std::string session_cache_shard_; |
// Used for session cache diagnostics. |
bool trying_cached_session_; |