| 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 #include "net/http/http_proxy_client_socket_pool.h" | 5 #include "net/http/http_proxy_client_socket_pool.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "net/base/load_flags.h" | 13 #include "net/base/load_flags.h" |
| 14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
| 15 #include "net/base/proxy_delegate.h" | 15 #include "net/base/proxy_delegate.h" |
| 16 #include "net/http/http_network_session.h" | 16 #include "net/http/http_network_session.h" |
| 17 #include "net/http/http_proxy_client_socket_wrapper.h" | 17 #include "net/http/http_proxy_client_socket_wrapper.h" |
| 18 #include "net/log/net_log_source_type.h" | 18 #include "net/log/net_log_source_type.h" |
| 19 #include "net/log/net_log_with_source.h" | 19 #include "net/log/net_log_with_source.h" |
| 20 #include "net/socket/client_socket_factory.h" | 20 #include "net/socket/client_socket_factory.h" |
| 21 #include "net/socket/client_socket_handle.h" | 21 #include "net/socket/client_socket_handle.h" |
| 22 #include "net/socket/client_socket_pool_base.h" | 22 #include "net/socket/client_socket_pool_base.h" |
| 23 #include "net/socket/ssl_client_socket.h" | 23 #include "net/socket/ssl_client_socket.h" |
| 24 #include "net/socket/ssl_client_socket_pool.h" | 24 #include "net/socket/ssl_client_socket_pool.h" |
| 25 #include "net/socket/transport_client_socket_pool.h" | 25 #include "net/socket/transport_client_socket_pool.h" |
| 26 #include "net/spdy/spdy_proxy_client_socket.h" | 26 #include "net/spdy/chromium/spdy_proxy_client_socket.h" |
| 27 #include "net/spdy/spdy_session.h" | 27 #include "net/spdy/chromium/spdy_session.h" |
| 28 #include "net/spdy/spdy_session_pool.h" | 28 #include "net/spdy/chromium/spdy_session_pool.h" |
| 29 #include "net/spdy/spdy_stream.h" | 29 #include "net/spdy/chromium/spdy_stream.h" |
| 30 #include "net/ssl/ssl_cert_request_info.h" | 30 #include "net/ssl/ssl_cert_request_info.h" |
| 31 #include "url/gurl.h" | 31 #include "url/gurl.h" |
| 32 | 32 |
| 33 namespace net { | 33 namespace net { |
| 34 | 34 |
| 35 HttpProxySocketParams::HttpProxySocketParams( | 35 HttpProxySocketParams::HttpProxySocketParams( |
| 36 const scoped_refptr<TransportSocketParams>& transport_params, | 36 const scoped_refptr<TransportSocketParams>& transport_params, |
| 37 const scoped_refptr<SSLSocketParams>& ssl_params, | 37 const scoped_refptr<SSLSocketParams>& ssl_params, |
| 38 const std::string& user_agent, | 38 const std::string& user_agent, |
| 39 const HostPortPair& endpoint, | 39 const HostPortPair& endpoint, |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 base_.RemoveHigherLayeredPool(higher_pool); | 325 base_.RemoveHigherLayeredPool(higher_pool); |
| 326 } | 326 } |
| 327 | 327 |
| 328 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { | 328 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { |
| 329 if (base_.CloseOneIdleSocket()) | 329 if (base_.CloseOneIdleSocket()) |
| 330 return true; | 330 return true; |
| 331 return base_.CloseOneIdleConnectionInHigherLayeredPool(); | 331 return base_.CloseOneIdleConnectionInHigherLayeredPool(); |
| 332 } | 332 } |
| 333 | 333 |
| 334 } // namespace net | 334 } // namespace net |
| OLD | NEW |