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

Unified Diff: net/socket/ssl_client_socket.h

Issue 384873002: This CL changes the lifespan of SSLConnectJobMessengers so that they are created only when needed, (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@useloop
Patch Set: Rebase, fixed issue where messenger field wasn't set to NULL after deletion Created 6 years, 4 months 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.h
diff --git a/net/socket/ssl_client_socket.h b/net/socket/ssl_client_socket.h
index 74423c1a626194545e5c672d466f485f819f1a62..9b8dae0003b63b74aa1097b06c6c0a93552a5077 100644
--- a/net/socket/ssl_client_socket.h
+++ b/net/socket/ssl_client_socket.h
@@ -83,18 +83,10 @@ class NET_EXPORT SSLClientSocket : public SSLSocket {
virtual bool WasNpnNegotiated() const OVERRIDE;
virtual NextProto GetNegotiatedProtocol() const OVERRIDE;
- // Formats a unique key for the SSL session cache. This method
- // is necessary so that all classes create cache keys in a consistent
- // manner.
- // TODO(mshelley) This method will be deleted in an upcoming CL when
- // it will no longer be necessary to generate a cache key outside of
- // an SSLClientSocket.
- static std::string CreateSessionCacheKey(
- const HostPortPair& host_and_port,
- const std::string& ssl_session_cache_shard);
-
- // Returns true if there is a cache entry in the SSL session cache
- // for the cache key of the SSL socket.
+ virtual std::string GetSessionCacheKey() const = 0;
wtc 2014/08/12 14:51:00 Please document this method. Can you explain why
mshelley 2014/08/12 21:47:01 My comment below meant that I could delete the sta
+
+ // Returns true if there is a cache entry in the ssl session cache
+ // for the given cache key.
wtc 2014/08/12 14:51:00 This seems to be a merge error. The original comme
mshelley 2014/08/12 21:47:00 Done.
//
// The cache key consists of a host and port concatenated with a session
// cache shard. These two strings are passed to the constructor of most

Powered by Google App Engine
This is Rietveld 408576698