| 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/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 #include "net/socket/connection_attempts.h" | 21 #include "net/socket/connection_attempts.h" |
| 21 | 22 |
| 22 namespace net { | 23 namespace net { |
| 23 | 24 |
| 24 class ClientSocketFactory; | 25 class ClientSocketFactory; |
| 25 class SocketPerformanceWatcherFactory; | 26 class SocketPerformanceWatcherFactory; |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 RespectLimits respect_limits, | 210 RespectLimits respect_limits, |
| 210 ClientSocketHandle* handle, | 211 ClientSocketHandle* handle, |
| 211 const CompletionCallback& callback, | 212 const CompletionCallback& callback, |
| 212 const NetLogWithSource& net_log) override; | 213 const NetLogWithSource& net_log) override; |
| 213 void RequestSockets(const std::string& group_name, | 214 void RequestSockets(const std::string& group_name, |
| 214 const void* params, | 215 const void* params, |
| 215 int num_sockets, | 216 int num_sockets, |
| 216 const NetLogWithSource& net_log) override; | 217 const NetLogWithSource& net_log) override; |
| 217 void CancelRequest(const std::string& group_name, | 218 void CancelRequest(const std::string& group_name, |
| 218 ClientSocketHandle* handle) override; | 219 ClientSocketHandle* handle) override; |
| 219 void ReleaseSocket(const std::string& group_name, | 220 void ReleaseSocket( |
| 220 std::unique_ptr<StreamSocket> socket, | 221 const std::string& group_name, |
| 221 int id) override; | 222 std::unique_ptr<StreamSocket> socket, |
| 223 int id, |
| 224 const LoadTimingInfo::ConnectTiming& connect_timing) override; |
| 222 void FlushWithError(int error) override; | 225 void FlushWithError(int error) override; |
| 223 void CloseIdleSockets() override; | 226 void CloseIdleSockets() override; |
| 224 int IdleSocketCount() const override; | 227 int IdleSocketCount() const override; |
| 225 int IdleSocketCountInGroup(const std::string& group_name) const override; | 228 int IdleSocketCountInGroup(const std::string& group_name) const override; |
| 226 LoadState GetLoadState(const std::string& group_name, | 229 LoadState GetLoadState(const std::string& group_name, |
| 227 const ClientSocketHandle* handle) const override; | 230 const ClientSocketHandle* handle) const override; |
| 228 std::unique_ptr<base::DictionaryValue> GetInfoAsValue( | 231 std::unique_ptr<base::DictionaryValue> GetInfoAsValue( |
| 229 const std::string& name, | 232 const std::string& name, |
| 230 const std::string& type, | 233 const std::string& type, |
| 231 bool include_nested_pools) const override; | 234 bool include_nested_pools) const override; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 }; | 283 }; |
| 281 | 284 |
| 282 PoolBase base_; | 285 PoolBase base_; |
| 283 | 286 |
| 284 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); | 287 DISALLOW_COPY_AND_ASSIGN(TransportClientSocketPool); |
| 285 }; | 288 }; |
| 286 | 289 |
| 287 } // namespace net | 290 } // namespace net |
| 288 | 291 |
| 289 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ | 292 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |