| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "net/http/http_proxy_client_socket_pool.h" | 5 #include "net/http/http_proxy_client_socket_pool.h" |
| 6 | 6 |
| 7 #include "base/time.h" | 7 #include "base/time.h" |
| 8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
| 9 #include "net/base/net_errors.h" | 9 #include "net/base/net_errors.h" |
| 10 #include "net/http/http_network_session.h" | 10 #include "net/http/http_network_session.h" |
| 11 #include "net/http/http_proxy_client_socket.h" | 11 #include "net/http/http_proxy_client_socket.h" |
| 12 #include "net/socket/client_socket_factory.h" | 12 #include "net/socket/client_socket_factory.h" |
| 13 #include "net/socket/client_socket_handle.h" | 13 #include "net/socket/client_socket_handle.h" |
| 14 #include "net/socket/client_socket_pool_base.h" | 14 #include "net/socket/client_socket_pool_base.h" |
| 15 #include "net/socket/tcp_client_socket_pool.h" |
| 15 | 16 |
| 16 namespace net { | 17 namespace net { |
| 17 | 18 |
| 18 HttpProxySocketParams::HttpProxySocketParams( | 19 HttpProxySocketParams::HttpProxySocketParams( |
| 19 const scoped_refptr<TCPSocketParams>& proxy_server, | 20 const scoped_refptr<TCPSocketParams>& proxy_server, |
| 20 const GURL& request_url, | 21 const GURL& request_url, |
| 21 HostPortPair endpoint, | 22 HostPortPair endpoint, |
| 22 scoped_refptr<HttpNetworkSession> session, | 23 scoped_refptr<HttpNetworkSession> session, |
| 23 bool tunnel) | 24 bool tunnel) |
| 24 : tcp_params_(proxy_server), | 25 : tcp_params_(proxy_server), |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 const std::string& group_name) const { | 232 const std::string& group_name) const { |
| 232 return base_.IdleSocketCountInGroup(group_name); | 233 return base_.IdleSocketCountInGroup(group_name); |
| 233 } | 234 } |
| 234 | 235 |
| 235 LoadState HttpProxyClientSocketPool::GetLoadState( | 236 LoadState HttpProxyClientSocketPool::GetLoadState( |
| 236 const std::string& group_name, const ClientSocketHandle* handle) const { | 237 const std::string& group_name, const ClientSocketHandle* handle) const { |
| 237 return base_.GetLoadState(group_name, handle); | 238 return base_.GetLoadState(group_name, handle); |
| 238 } | 239 } |
| 239 | 240 |
| 240 } // namespace net | 241 } // namespace net |
| OLD | NEW |