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

Unified Diff: net/socket/ssl_session_cache_openssl.h

Issue 353713005: Implements new, more robust design for communicating between SSLConnectJobs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added checks to determine if false start connections fail, and moved location of enable_job_waiting… Created 6 years, 5 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_session_cache_openssl.h
diff --git a/net/socket/ssl_session_cache_openssl.h b/net/socket/ssl_session_cache_openssl.h
index bbd9659641df062dc870880f805031006deddb59..df065cbaadf5511e5571a93fbf35dd65552b7931 100644
--- a/net/socket/ssl_session_cache_openssl.h
+++ b/net/socket/ssl_session_cache_openssl.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/basictypes.h"
+#include "base/callback.h"
wtc 2014/07/08 01:25:43 Include base/callback_forward.h instead for the fo
mshelley 2014/07/09 19:51:02 I'm not positive, but I think that I do need to in
#include "net/base/net_export.h"
// Avoid including OpenSSL headers here.
@@ -113,6 +114,13 @@ class NET_EXPORT SSLSessionCacheOpenSSL {
// Return true iff a cached session was associated with the |ssl| connection.
bool SetSSLSessionWithKey(SSL* ssl, const std::string& cache_key);
+ // Return true iff a cached session was associated with the given |cache_key|.
+ bool SSLSessionIsInCache(const std::string& cache_key) const;
+
+ // Informs the cache that it should run the messenger's callback when |ssl|'s
wtc 2014/07/08 01:25:43 Remove "messenger's". In this file, "messenger" is
mshelley 2014/07/09 19:51:02 Done.
+ // session is added to the cache.
+ void NotifyOnSessionAdded(SSL* ssl, const base::Closure& callback);
+
// Indicates that the SSL session associated with |ssl| is "good" - that is,
// that all associated cryptographic parameters that were negotiated,
// including the peer's certificate, were successfully validated. Because

Powered by Google App Engine
This is Rietveld 408576698