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

Side by Side Diff: net/socket/ssl_session_cache_openssl.cc

Issue 448293002: This CL is a follow up to https://codereview.chromium.org/416683002/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits Created 6 years, 4 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 unified diff | Download patch
« no previous file with comments | « net/socket/ssl_session_cache_openssl.h ('k') | net/test/spawned_test_server/base_test_server.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « net/socket/ssl_session_cache_openssl.h ('k') | net/test/spawned_test_server/base_test_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698