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 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.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/ssl_cert_request_info.h" | |
16 #include "net/http/http_network_session.h" | 15 #include "net/http/http_network_session.h" |
17 #include "net/http/http_proxy_client_socket.h" | 16 #include "net/http/http_proxy_client_socket.h" |
18 #include "net/socket/client_socket_factory.h" | 17 #include "net/socket/client_socket_factory.h" |
19 #include "net/socket/client_socket_handle.h" | 18 #include "net/socket/client_socket_handle.h" |
20 #include "net/socket/client_socket_pool_base.h" | 19 #include "net/socket/client_socket_pool_base.h" |
21 #include "net/socket/ssl_client_socket.h" | 20 #include "net/socket/ssl_client_socket.h" |
22 #include "net/socket/ssl_client_socket_pool.h" | 21 #include "net/socket/ssl_client_socket_pool.h" |
23 #include "net/socket/transport_client_socket_pool.h" | 22 #include "net/socket/transport_client_socket_pool.h" |
24 #include "net/spdy/spdy_proxy_client_socket.h" | 23 #include "net/spdy/spdy_proxy_client_socket.h" |
25 #include "net/spdy/spdy_session.h" | 24 #include "net/spdy/spdy_session.h" |
26 #include "net/spdy/spdy_session_pool.h" | 25 #include "net/spdy/spdy_session_pool.h" |
27 #include "net/spdy/spdy_stream.h" | 26 #include "net/spdy/spdy_stream.h" |
| 27 #include "net/ssl/ssl_cert_request_info.h" |
28 | 28 |
29 namespace net { | 29 namespace net { |
30 | 30 |
31 HttpProxySocketParams::HttpProxySocketParams( | 31 HttpProxySocketParams::HttpProxySocketParams( |
32 const scoped_refptr<TransportSocketParams>& transport_params, | 32 const scoped_refptr<TransportSocketParams>& transport_params, |
33 const scoped_refptr<SSLSocketParams>& ssl_params, | 33 const scoped_refptr<SSLSocketParams>& ssl_params, |
34 const GURL& request_url, | 34 const GURL& request_url, |
35 const std::string& user_agent, | 35 const std::string& user_agent, |
36 const HostPortPair& endpoint, | 36 const HostPortPair& endpoint, |
37 HttpAuthCache* http_auth_cache, | 37 HttpAuthCache* http_auth_cache, |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 return base_.histograms(); | 530 return base_.histograms(); |
531 } | 531 } |
532 | 532 |
533 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { | 533 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { |
534 if (base_.CloseOneIdleSocket()) | 534 if (base_.CloseOneIdleSocket()) |
535 return true; | 535 return true; |
536 return base_.CloseOneIdleConnectionInLayeredPool(); | 536 return base_.CloseOneIdleConnectionInLayeredPool(); |
537 } | 537 } |
538 | 538 |
539 } // namespace net | 539 } // namespace net |
OLD | NEW |