Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(485)

Unified Diff: net/socket/ssl_client_socket_openssl.h

Issue 8857002: net: split the SSL session cache between incognito and normal. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 e1e177802f03d46a082fd51a4583cce7783640ef..98b3fe1b756dcc5d597a855d98bd5e5766754e0b 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& ssl_session_cache_shard() const {
+ return ssl_session_cache_shard_;
+ }
// Callback from the SSL layer that indicates the remote server is requesting
// a certificate for this client.
@@ -151,6 +154,10 @@ class SSLClientSocketOpenSSL : public SSLClientSocket {
scoped_ptr<ClientSocketHandle> transport_;
const HostPortPair host_and_port_;
SSLConfig ssl_config_;
+ // ssl_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 ssl_session_cache_shard_;
// Used for session cache diagnostics.
bool trying_cached_session_;

Powered by Google App Engine
This is Rietveld 408576698