OLD | NEW |
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 "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
9 #include "base/threading/sequenced_worker_pool.h" | 9 #include "base/threading/sequenced_worker_pool.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
11 #include "net/base/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 #if defined(USE_OPENSSL) | 13 #if defined(USE_OPENSSL) |
14 #include "net/socket/ssl_client_socket_openssl.h" | 14 #include "net/socket/ssl_client_socket_openssl.h" |
15 #elif defined(USE_NSS) || defined(OS_MACOSX) || defined(OS_WIN) | 15 #elif defined(USE_NSS) || defined(OS_MACOSX) || defined(OS_WIN) |
16 #include "net/socket/ssl_client_socket_nss.h" | 16 #include "net/socket/ssl_client_socket_nss.h" |
17 #endif | 17 #endif |
18 #include "net/socket/tcp_client_socket.h" | 18 #include "net/socket/tcp_client_socket.h" |
19 #include "net/udp/udp_client_socket.h" | 19 #include "net/udp/udp_client_socket.h" |
20 | 20 |
21 namespace net { | 21 namespace net { |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 return CreateSSLClientSocket(socket_handle, host_and_port, ssl_config, | 138 return CreateSSLClientSocket(socket_handle, host_and_port, ssl_config, |
139 context); | 139 context); |
140 } | 140 } |
141 | 141 |
142 // static | 142 // static |
143 ClientSocketFactory* ClientSocketFactory::GetDefaultFactory() { | 143 ClientSocketFactory* ClientSocketFactory::GetDefaultFactory() { |
144 return g_default_client_socket_factory.Pointer(); | 144 return g_default_client_socket_factory.Pointer(); |
145 } | 145 } |
146 | 146 |
147 } // namespace net | 147 } // namespace net |
OLD | NEW |