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

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

Issue 2691683003: Remove OnCertDBChanged |cert| parameter. (Closed)
Patch Set: comment wording Created 3 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/client_socket_factory.h" 5 #include "net/socket/client_socket_factory.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 15 matching lines...) Expand all
26 DefaultClientSocketFactory() { 26 DefaultClientSocketFactory() {
27 CertDatabase::GetInstance()->AddObserver(this); 27 CertDatabase::GetInstance()->AddObserver(this);
28 } 28 }
29 29
30 ~DefaultClientSocketFactory() override { 30 ~DefaultClientSocketFactory() override {
31 // Note: This code never runs, as the factory is defined as a Leaky 31 // Note: This code never runs, as the factory is defined as a Leaky
32 // singleton. 32 // singleton.
33 CertDatabase::GetInstance()->RemoveObserver(this); 33 CertDatabase::GetInstance()->RemoveObserver(this);
34 } 34 }
35 35
36 void OnCertDBChanged(const X509Certificate* cert) override { 36 void OnCertDBChanged() override {
37 // Flush sockets whenever CA trust changes. 37 // Flush sockets whenever CA trust changes.
38 ClearSSLSessionCache(); 38 ClearSSLSessionCache();
39 } 39 }
40 40
41 std::unique_ptr<DatagramClientSocket> CreateDatagramClientSocket( 41 std::unique_ptr<DatagramClientSocket> CreateDatagramClientSocket(
42 DatagramSocket::BindType bind_type, 42 DatagramSocket::BindType bind_type,
43 const RandIntCallback& rand_int_cb, 43 const RandIntCallback& rand_int_cb,
44 NetLog* net_log, 44 NetLog* net_log,
45 const NetLogSource& source) override { 45 const NetLogSource& source) override {
46 return std::unique_ptr<DatagramClientSocket>( 46 return std::unique_ptr<DatagramClientSocket>(
(...skipping 25 matching lines...) Expand all
72 g_default_client_socket_factory = LAZY_INSTANCE_INITIALIZER; 72 g_default_client_socket_factory = LAZY_INSTANCE_INITIALIZER;
73 73
74 } // namespace 74 } // namespace
75 75
76 // static 76 // static
77 ClientSocketFactory* ClientSocketFactory::GetDefaultFactory() { 77 ClientSocketFactory* ClientSocketFactory::GetDefaultFactory() {
78 return g_default_client_socket_factory.Pointer(); 78 return g_default_client_socket_factory.Pointer();
79 } 79 }
80 80
81 } // namespace net 81 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_stream_factory_test.cc ('k') | net/socket/client_socket_pool_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698