| 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_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ |
| 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ | 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 204 |
| 205 virtual void CloseIdleSockets(); | 205 virtual void CloseIdleSockets(); |
| 206 | 206 |
| 207 virtual int IdleSocketCount() const; | 207 virtual int IdleSocketCount() const; |
| 208 | 208 |
| 209 virtual int IdleSocketCountInGroup(const std::string& group_name) const; | 209 virtual int IdleSocketCountInGroup(const std::string& group_name) const; |
| 210 | 210 |
| 211 virtual LoadState GetLoadState(const std::string& group_name, | 211 virtual LoadState GetLoadState(const std::string& group_name, |
| 212 const ClientSocketHandle* handle) const; | 212 const ClientSocketHandle* handle) const; |
| 213 | 213 |
| 214 virtual DictionaryValue* GetInfoAsValue(const std::string& name, | 214 virtual base::DictionaryValue* GetInfoAsValue( |
| 215 const std::string& type, | 215 const std::string& name, |
| 216 bool include_nested_pools) const; | 216 const std::string& type, |
| 217 bool include_nested_pools) const; |
| 217 | 218 |
| 218 virtual base::TimeDelta ConnectionTimeout() const; | 219 virtual base::TimeDelta ConnectionTimeout() const; |
| 219 | 220 |
| 220 virtual ClientSocketPoolHistograms* histograms() const; | 221 virtual ClientSocketPoolHistograms* histograms() const; |
| 221 | 222 |
| 222 private: | 223 private: |
| 223 typedef ClientSocketPoolBase<HttpProxySocketParams> PoolBase; | 224 typedef ClientSocketPoolBase<HttpProxySocketParams> PoolBase; |
| 224 | 225 |
| 225 class HttpProxyConnectJobFactory : public PoolBase::ConnectJobFactory { | 226 class HttpProxyConnectJobFactory : public PoolBase::ConnectJobFactory { |
| 226 public: | 227 public: |
| (...skipping 26 matching lines...) Expand all Loading... |
| 253 | 254 |
| 254 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool); | 255 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool); |
| 255 }; | 256 }; |
| 256 | 257 |
| 257 REGISTER_SOCKET_PARAMS_FOR_POOL(HttpProxyClientSocketPool, | 258 REGISTER_SOCKET_PARAMS_FOR_POOL(HttpProxyClientSocketPool, |
| 258 HttpProxySocketParams); | 259 HttpProxySocketParams); |
| 259 | 260 |
| 260 } // namespace net | 261 } // namespace net |
| 261 | 262 |
| 262 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ | 263 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |