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

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

Issue 1921563003: Renaming _openssl files to _impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits. Created 4 years, 7 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/quic/quic_chromium_client_session.cc ('k') | net/socket/ssl_client_socket.cc » ('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 (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"
11 #include "net/cert/cert_database.h" 11 #include "net/cert/cert_database.h"
12 #include "net/socket/client_socket_handle.h" 12 #include "net/socket/client_socket_handle.h"
13 #include "net/socket/ssl_client_socket_openssl.h" 13 #include "net/socket/ssl_client_socket_impl.h"
14 #include "net/socket/tcp_client_socket.h" 14 #include "net/socket/tcp_client_socket.h"
15 #include "net/udp/udp_client_socket.h" 15 #include "net/udp/udp_client_socket.h"
16 16
17 namespace net { 17 namespace net {
18 18
19 class X509Certificate; 19 class X509Certificate;
20 20
21 namespace { 21 namespace {
22 22
23 class DefaultClientSocketFactory : public ClientSocketFactory, 23 class DefaultClientSocketFactory : public ClientSocketFactory,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 const NetLog::Source& source) override { 60 const NetLog::Source& source) override {
61 return std::unique_ptr<StreamSocket>(new TCPClientSocket( 61 return std::unique_ptr<StreamSocket>(new TCPClientSocket(
62 addresses, std::move(socket_performance_watcher), net_log, source)); 62 addresses, std::move(socket_performance_watcher), net_log, source));
63 } 63 }
64 64
65 std::unique_ptr<SSLClientSocket> CreateSSLClientSocket( 65 std::unique_ptr<SSLClientSocket> CreateSSLClientSocket(
66 std::unique_ptr<ClientSocketHandle> transport_socket, 66 std::unique_ptr<ClientSocketHandle> transport_socket,
67 const HostPortPair& host_and_port, 67 const HostPortPair& host_and_port,
68 const SSLConfig& ssl_config, 68 const SSLConfig& ssl_config,
69 const SSLClientSocketContext& context) override { 69 const SSLClientSocketContext& context) override {
70 return std::unique_ptr<SSLClientSocket>(new SSLClientSocketOpenSSL( 70 return std::unique_ptr<SSLClientSocket>(new SSLClientSocketImpl(
71 std::move(transport_socket), host_and_port, ssl_config, context)); 71 std::move(transport_socket), host_and_port, ssl_config, context));
72 } 72 }
73 73
74 void ClearSSLSessionCache() override { SSLClientSocket::ClearSessionCache(); } 74 void ClearSSLSessionCache() override { SSLClientSocket::ClearSessionCache(); }
75 }; 75 };
76 76
77 static base::LazyInstance<DefaultClientSocketFactory>::Leaky 77 static base::LazyInstance<DefaultClientSocketFactory>::Leaky
78 g_default_client_socket_factory = LAZY_INSTANCE_INITIALIZER; 78 g_default_client_socket_factory = LAZY_INSTANCE_INITIALIZER;
79 79
80 } // namespace 80 } // namespace
81 81
82 // static 82 // static
83 ClientSocketFactory* ClientSocketFactory::GetDefaultFactory() { 83 ClientSocketFactory* ClientSocketFactory::GetDefaultFactory() {
84 return g_default_client_socket_factory.Pointer(); 84 return g_default_client_socket_factory.Pointer();
85 } 85 }
86 86
87 } // namespace net 87 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_chromium_client_session.cc ('k') | net/socket/ssl_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698