OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/tcp_client_socket_pool.h" | 5 #include "net/socket/tcp_client_socket_pool.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/threading/platform_thread.h" | 10 #include "base/threading/platform_thread.h" |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 return new MockPendingClientSocket(true, false, | 240 return new MockPendingClientSocket(true, false, |
241 ClientSocketPool::kMaxConnectRetryIntervalMs); | 241 ClientSocketPool::kMaxConnectRetryIntervalMs); |
242 case MOCK_STALLED_CLIENT_SOCKET: | 242 case MOCK_STALLED_CLIENT_SOCKET: |
243 return new MockPendingClientSocket(true, true, 0); | 243 return new MockPendingClientSocket(true, true, 0); |
244 default: | 244 default: |
245 NOTREACHED(); | 245 NOTREACHED(); |
246 return new MockClientSocket(); | 246 return new MockClientSocket(); |
247 } | 247 } |
248 } | 248 } |
249 | 249 |
| 250 virtual ClientSocket* CreateSCTPClientSocket( |
| 251 const AddressList& addresses, |
| 252 NetLog* /* net_log */, |
| 253 const NetLog::Source& /* source */) { |
| 254 NOTIMPLEMENTED(); |
| 255 return NULL; |
| 256 } |
| 257 |
250 virtual SSLClientSocket* CreateSSLClientSocket( | 258 virtual SSLClientSocket* CreateSSLClientSocket( |
251 ClientSocketHandle* transport_socket, | 259 ClientSocketHandle* transport_socket, |
252 const HostPortPair& host_and_port, | 260 const HostPortPair& host_and_port, |
253 const SSLConfig& ssl_config, | 261 const SSLConfig& ssl_config, |
254 SSLHostInfo* ssl_host_info, | 262 SSLHostInfo* ssl_host_info, |
255 CertVerifier* cert_verifier, | 263 CertVerifier* cert_verifier, |
256 DnsCertProvenanceChecker* dns_cert_checker) { | 264 DnsCertProvenanceChecker* dns_cert_checker) { |
257 NOTIMPLEMENTED(); | 265 NOTIMPLEMENTED(); |
258 delete ssl_host_info; | 266 delete ssl_host_info; |
259 return NULL; | 267 return NULL; |
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
909 EXPECT_FALSE(handle.socket()); | 917 EXPECT_FALSE(handle.socket()); |
910 handle.Reset(); | 918 handle.Reset(); |
911 | 919 |
912 // Reset for the next case. | 920 // Reset for the next case. |
913 host_resolver_->set_synchronous_mode(false); | 921 host_resolver_->set_synchronous_mode(false); |
914 } | 922 } |
915 | 923 |
916 } // namespace | 924 } // namespace |
917 | 925 |
918 } // namespace net | 926 } // namespace net |
OLD | NEW |