| 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 #ifndef NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
| 6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
| 15 #include "net/base/host_port_pair.h" | 15 #include "net/base/host_port_pair.h" |
| 16 #include "net/dns/host_resolver.h" | 16 #include "net/dns/host_resolver.h" |
| 17 #include "net/socket/client_socket_pool.h" | 17 #include "net/socket/client_socket_pool.h" |
| 18 #include "net/socket/client_socket_pool_base.h" | 18 #include "net/socket/client_socket_pool_base.h" |
| 19 #include "net/socket/connection_attempts.h" | 19 #include "net/socket/connection_attempts.h" |
| 20 | 20 |
| 21 namespace net { | 21 namespace net { |
| 22 | 22 |
| 23 class ClientSocketFactory; | 23 class ClientSocketFactory; |
| 24 class SocketPerformanceWatcherFactory; | 24 class SocketPerformanceWatcherFactory; |
| 25 class NetLog; |
| 26 class NetLogWithSource; |
| 25 | 27 |
| 26 typedef base::Callback<int(const AddressList&, const NetLogWithSource& net_log)> | 28 typedef base::Callback<int(const AddressList&, const NetLogWithSource& net_log)> |
| 27 OnHostResolutionCallback; | 29 OnHostResolutionCallback; |
| 28 | 30 |
| 29 class NET_EXPORT_PRIVATE TransportSocketParams | 31 class NET_EXPORT_PRIVATE TransportSocketParams |
| 30 : public base::RefCounted<TransportSocketParams> { | 32 : public base::RefCounted<TransportSocketParams> { |
| 31 public: | 33 public: |
| 32 // CombineConnectAndWrite currently translates to using TCP FastOpen. | 34 // CombineConnectAndWrite currently translates to using TCP FastOpen. |
| 33 // TCP FastOpen should not be used if the first write to the socket may | 35 // TCP FastOpen should not be used if the first write to the socket may |
| 34 // be non-idempotent, as the underlying socket could retransmit the data | 36 // be non-idempotent, as the underlying socket could retransmit the data |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 }; | 288 }; |
| 287 | 289 |
| 288 PoolBase base_; | 290 PoolBase base_; |
| 289 | 291 |
| 290 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); | 292 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); |
| 291 }; | 293 }; |
| 292 | 294 |
| 293 } // namespace net | 295 } // namespace net |
| 294 | 296 |
| 295 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 297 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |