| 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 #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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 SOCKSClientSocketPool( | 111 SOCKSClientSocketPool( |
| 112 int max_sockets, | 112 int max_sockets, |
| 113 int max_sockets_per_group, | 113 int max_sockets_per_group, |
| 114 ClientSocketPoolHistograms* histograms, | 114 ClientSocketPoolHistograms* histograms, |
| 115 HostResolver* host_resolver, | 115 HostResolver* host_resolver, |
| 116 TransportClientSocketPool* transport_pool, | 116 TransportClientSocketPool* transport_pool, |
| 117 NetLog* net_log); | 117 NetLog* net_log); |
| 118 | 118 |
| 119 virtual ~SOCKSClientSocketPool(); | 119 virtual ~SOCKSClientSocketPool(); |
| 120 | 120 |
| 121 // ClientSocketPool methods: | 121 // ClientSocketPool implementation. |
| 122 virtual int RequestSocket(const std::string& group_name, | 122 virtual int RequestSocket(const std::string& group_name, |
| 123 const void* connect_params, | 123 const void* connect_params, |
| 124 RequestPriority priority, | 124 RequestPriority priority, |
| 125 ClientSocketHandle* handle, | 125 ClientSocketHandle* handle, |
| 126 OldCompletionCallback* callback, | 126 const CompletionCallback& callback, |
| 127 const BoundNetLog& net_log) OVERRIDE; | 127 const BoundNetLog& net_log) OVERRIDE; |
| 128 | 128 |
| 129 virtual void RequestSockets(const std::string& group_name, | 129 virtual void RequestSockets(const std::string& group_name, |
| 130 const void* params, | 130 const void* params, |
| 131 int num_sockets, | 131 int num_sockets, |
| 132 const BoundNetLog& net_log) OVERRIDE; | 132 const BoundNetLog& net_log) OVERRIDE; |
| 133 | 133 |
| 134 virtual void CancelRequest(const std::string& group_name, | 134 virtual void CancelRequest(const std::string& group_name, |
| 135 ClientSocketHandle* handle) OVERRIDE; | 135 ClientSocketHandle* handle) OVERRIDE; |
| 136 | 136 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 159 | 159 |
| 160 virtual base::DictionaryValue* GetInfoAsValue( | 160 virtual base::DictionaryValue* GetInfoAsValue( |
| 161 const std::string& name, | 161 const std::string& name, |
| 162 const std::string& type, | 162 const std::string& type, |
| 163 bool include_nested_pools) const OVERRIDE; | 163 bool include_nested_pools) const OVERRIDE; |
| 164 | 164 |
| 165 virtual base::TimeDelta ConnectionTimeout() const OVERRIDE; | 165 virtual base::TimeDelta ConnectionTimeout() const OVERRIDE; |
| 166 | 166 |
| 167 virtual ClientSocketPoolHistograms* histograms() const OVERRIDE; | 167 virtual ClientSocketPoolHistograms* histograms() const OVERRIDE; |
| 168 | 168 |
| 169 // LayeredPool methods: | 169 // LayeredPool implementation. |
| 170 virtual bool CloseOneIdleConnection() OVERRIDE; | 170 virtual bool CloseOneIdleConnection() OVERRIDE; |
| 171 | 171 |
| 172 private: | 172 private: |
| 173 typedef ClientSocketPoolBase<SOCKSSocketParams> PoolBase; | 173 typedef ClientSocketPoolBase<SOCKSSocketParams> PoolBase; |
| 174 | 174 |
| 175 class SOCKSConnectJobFactory : public PoolBase::ConnectJobFactory { | 175 class SOCKSConnectJobFactory : public PoolBase::ConnectJobFactory { |
| 176 public: | 176 public: |
| 177 SOCKSConnectJobFactory(TransportClientSocketPool* transport_pool, | 177 SOCKSConnectJobFactory(TransportClientSocketPool* transport_pool, |
| 178 HostResolver* host_resolver, | 178 HostResolver* host_resolver, |
| 179 NetLog* net_log) | 179 NetLog* net_log) |
| (...skipping 23 matching lines...) Expand all Loading... |
| 203 PoolBase base_; | 203 PoolBase base_; |
| 204 | 204 |
| 205 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); | 205 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); |
| 206 }; | 206 }; |
| 207 | 207 |
| 208 REGISTER_SOCKET_PARAMS_FOR_POOL(SOCKSClientSocketPool, SOCKSSocketParams); | 208 REGISTER_SOCKET_PARAMS_FOR_POOL(SOCKSClientSocketPool, SOCKSSocketParams); |
| 209 | 209 |
| 210 } // namespace net | 210 } // namespace net |
| 211 | 211 |
| 212 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ | 212 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |