| 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..00f93e1949539a9540d444083673c5e6dd321303 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.
|
| + 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
|
|
|