| 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_SOCKS_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
| 6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ | 6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "net/base/host_port_pair.h" | 15 #include "net/base/host_port_pair.h" |
| 16 #include "net/base/load_timing_info.h" |
| 16 #include "net/base/net_export.h" | 17 #include "net/base/net_export.h" |
| 17 #include "net/dns/host_resolver.h" | 18 #include "net/dns/host_resolver.h" |
| 18 #include "net/socket/client_socket_pool.h" | 19 #include "net/socket/client_socket_pool.h" |
| 19 #include "net/socket/client_socket_pool_base.h" | 20 #include "net/socket/client_socket_pool_base.h" |
| 20 | 21 |
| 21 namespace net { | 22 namespace net { |
| 22 | 23 |
| 23 class ConnectJobFactory; | 24 class ConnectJobFactory; |
| 24 class SocketPerformanceWatcherFactory; | 25 class SocketPerformanceWatcherFactory; |
| 25 class TransportClientSocketPool; | 26 class TransportClientSocketPool; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 const NetLogWithSource& net_log) override; | 129 const NetLogWithSource& net_log) override; |
| 129 | 130 |
| 130 void RequestSockets(const std::string& group_name, | 131 void RequestSockets(const std::string& group_name, |
| 131 const void* params, | 132 const void* params, |
| 132 int num_sockets, | 133 int num_sockets, |
| 133 const NetLogWithSource& net_log) override; | 134 const NetLogWithSource& net_log) override; |
| 134 | 135 |
| 135 void CancelRequest(const std::string& group_name, | 136 void CancelRequest(const std::string& group_name, |
| 136 ClientSocketHandle* handle) override; | 137 ClientSocketHandle* handle) override; |
| 137 | 138 |
| 138 void ReleaseSocket(const std::string& group_name, | 139 void ReleaseSocket( |
| 139 std::unique_ptr<StreamSocket> socket, | 140 const std::string& group_name, |
| 140 int id) override; | 141 std::unique_ptr<StreamSocket> socket, |
| 142 int id, |
| 143 const LoadTimingInfo::ConnectTiming& connect_timing) override; |
| 141 | 144 |
| 142 void FlushWithError(int error) override; | 145 void FlushWithError(int error) override; |
| 143 | 146 |
| 144 void CloseIdleSockets() override; | 147 void CloseIdleSockets() override; |
| 145 | 148 |
| 146 int IdleSocketCount() const override; | 149 int IdleSocketCount() const override; |
| 147 | 150 |
| 148 int IdleSocketCountInGroup(const std::string& group_name) const override; | 151 int IdleSocketCountInGroup(const std::string& group_name) const override; |
| 149 | 152 |
| 150 LoadState GetLoadState(const std::string& group_name, | 153 LoadState GetLoadState(const std::string& group_name, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 | 202 |
| 200 TransportClientSocketPool* const transport_pool_; | 203 TransportClientSocketPool* const transport_pool_; |
| 201 PoolBase base_; | 204 PoolBase base_; |
| 202 | 205 |
| 203 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); | 206 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); |
| 204 }; | 207 }; |
| 205 | 208 |
| 206 } // namespace net | 209 } // namespace net |
| 207 | 210 |
| 208 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ | 211 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |