OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/socket/ssl_session_cache_openssl.h" | 5 #include "net/socket/ssl_session_cache_openssl.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include <openssl/rand.h> | 10 #include <openssl/rand.h> |
11 #include <openssl/ssl.h> | 11 #include <openssl/ssl.h> |
12 | 12 |
13 #include "base/callback.h" | |
14 #include "base/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
15 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
16 #include "base/logging.h" | 15 #include "base/logging.h" |
17 #include "base/synchronization/lock.h" | 16 #include "base/synchronization/lock.h" |
18 | 17 |
19 namespace net { | 18 namespace net { |
20 | 19 |
21 namespace { | 20 namespace { |
22 | 21 |
23 // A helper class to lazily create a new EX_DATA index to map SSL_CTX handles | 22 // A helper class to lazily create a new EX_DATA index to map SSL_CTX handles |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 return impl_->SSLSessionIsInCache(cache_key); | 520 return impl_->SSLSessionIsInCache(cache_key); |
522 } | 521 } |
523 | 522 |
524 void SSLSessionCacheOpenSSL::MarkSSLSessionAsGood(SSL* ssl) { | 523 void SSLSessionCacheOpenSSL::MarkSSLSessionAsGood(SSL* ssl) { |
525 return impl_->MarkSSLSessionAsGood(ssl); | 524 return impl_->MarkSSLSessionAsGood(ssl); |
526 } | 525 } |
527 | 526 |
528 void SSLSessionCacheOpenSSL::Flush() { impl_->Flush(); } | 527 void SSLSessionCacheOpenSSL::Flush() { impl_->Flush(); } |
529 | 528 |
530 } // namespace net | 529 } // namespace net |
OLD | NEW |