| 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 #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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
| 13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 14 #include "base/time.h" | 14 #include "base/time.h" |
| 15 #include "net/base/host_port_pair.h" | 15 #include "net/base/host_port_pair.h" |
| 16 #include "net/base/host_resolver.h" | |
| 17 #include "net/http/http_auth.h" | 16 #include "net/http/http_auth.h" |
| 18 #include "net/proxy/proxy_server.h" | |
| 19 #include "net/socket/client_socket_pool_base.h" | 17 #include "net/socket/client_socket_pool_base.h" |
| 20 #include "net/socket/client_socket_pool_histograms.h" | 18 #include "net/socket/client_socket_pool_histograms.h" |
| 21 #include "net/socket/client_socket_pool.h" | 19 #include "net/socket/client_socket_pool.h" |
| 22 #include "net/socket/tcp_client_socket_pool.h" | |
| 23 | 20 |
| 24 namespace net { | 21 namespace net { |
| 25 | 22 |
| 26 class ClientSocketFactory; | 23 class ClientSocketFactory; |
| 27 class ConnectJobFactory; | 24 class ConnectJobFactory; |
| 25 class HostResolver; |
| 28 class HttpAuthController; | 26 class HttpAuthController; |
| 29 class HttpNetworkSession; | 27 class HttpNetworkSession; |
| 28 class TCPClientSocketPool; |
| 29 class TCPSocketParams; |
| 30 | 30 |
| 31 class HttpProxySocketParams : public base::RefCounted<HttpProxySocketParams> { | 31 class HttpProxySocketParams : public base::RefCounted<HttpProxySocketParams> { |
| 32 public: | 32 public: |
| 33 HttpProxySocketParams(const scoped_refptr<TCPSocketParams>& proxy_server, | 33 HttpProxySocketParams(const scoped_refptr<TCPSocketParams>& proxy_server, |
| 34 const GURL& request_url, HostPortPair endpoint, | 34 const GURL& request_url, HostPortPair endpoint, |
| 35 scoped_refptr<HttpNetworkSession> session, | 35 scoped_refptr<HttpNetworkSession> session, |
| 36 bool tunnel); | 36 bool tunnel); |
| 37 | 37 |
| 38 const scoped_refptr<TCPSocketParams>& tcp_params() const { | 38 const scoped_refptr<TCPSocketParams>& tcp_params() const { |
| 39 return tcp_params_; | 39 return tcp_params_; |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 197 |
| 198 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool); | 198 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool); |
| 199 }; | 199 }; |
| 200 | 200 |
| 201 REGISTER_SOCKET_PARAMS_FOR_POOL(HttpProxyClientSocketPool, | 201 REGISTER_SOCKET_PARAMS_FOR_POOL(HttpProxyClientSocketPool, |
| 202 HttpProxySocketParams); | 202 HttpProxySocketParams); |
| 203 | 203 |
| 204 } // namespace net | 204 } // namespace net |
| 205 | 205 |
| 206 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ | 206 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |