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..7d3d6f0f315fe556889dd451c0fc813fa6a4c1ae 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,17 @@ 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. |
|
Ryan Sleevi
2014/07/18 22:01:18
formatting
mshelley
2014/07/21 23:00:09
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 |