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/socket/client_socket_factory.h" | 20 #include "net/socket/client_socket_factory.h" |
20 #include "net/socket/client_socket_handle.h" | 21 #include "net/socket/client_socket_handle.h" |
21 #include "net/socket/client_socket_pool_base.h" | 22 #include "net/socket/client_socket_pool_base.h" |
22 #include "net/socket/ssl_client_socket.h" | 23 #include "net/socket/ssl_client_socket.h" |
23 #include "net/socket/ssl_client_socket_pool.h" | 24 #include "net/socket/ssl_client_socket_pool.h" |
24 #include "net/socket/transport_client_socket_pool.h" | 25 #include "net/socket/transport_client_socket_pool.h" |
25 #include "net/spdy/spdy_proxy_client_socket.h" | 26 #include "net/spdy/spdy_proxy_client_socket.h" |
26 #include "net/spdy/spdy_session.h" | 27 #include "net/spdy/spdy_session.h" |
27 #include "net/spdy/spdy_session_pool.h" | 28 #include "net/spdy/spdy_session_pool.h" |
28 #include "net/spdy/spdy_stream.h" | 29 #include "net/spdy/spdy_stream.h" |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 base_.RemoveHigherLayeredPool(higher_pool); | 313 base_.RemoveHigherLayeredPool(higher_pool); |
313 } | 314 } |
314 | 315 |
315 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { | 316 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { |
316 if (base_.CloseOneIdleSocket()) | 317 if (base_.CloseOneIdleSocket()) |
317 return true; | 318 return true; |
318 return base_.CloseOneIdleConnectionInHigherLayeredPool(); | 319 return base_.CloseOneIdleConnectionInHigherLayeredPool(); |
319 } | 320 } |
320 | 321 |
321 } // namespace net | 322 } // namespace net |
OLD | NEW |