Chromium Code Reviews| 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..5c8af64d62e806dc297e312e68442eeb01c1242c 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_forward.h" |
| #include "net/base/net_export.h" |
| // Avoid including OpenSSL headers here. |
| @@ -113,6 +114,16 @@ 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 a callback when |ssl|'s |
| + // session is added to the cache. |
|
wtc
2014/07/18 01:17:16
Nit: reformat this comment block.
mshelley
2014/07/18 21:08:33
Done.
|
| + void SetSessionAddedCallback(SSL* ssl, const base::Closure& callback); |
| + |
| + // Removes the entry for |ssl| from cache's callback map. |
| + void RemoveSessionAddedCallback(SSL* ssl); |
| + |
| // 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 |