| 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 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 5 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
| 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "net/base/completion_callback.h" | 14 #include "net/base/completion_callback.h" |
| 15 #include "net/base/host_port_pair.h" | 15 #include "net/base/host_port_pair.h" |
| 16 #include "net/base/load_timing_info.h" | 16 #include "net/base/load_timing_info.h" |
| 17 #include "net/base/net_export.h" |
| 17 #include "net/http/http_auth_controller.h" | 18 #include "net/http/http_auth_controller.h" |
| 18 #include "net/http/http_request_headers.h" | 19 #include "net/http/http_request_headers.h" |
| 19 #include "net/http/http_request_info.h" | 20 #include "net/http/http_request_info.h" |
| 20 #include "net/http/http_response_info.h" | 21 #include "net/http/http_response_info.h" |
| 21 #include "net/http/proxy_client_socket.h" | 22 #include "net/http/proxy_client_socket.h" |
| 22 #include "net/log/net_log.h" | 23 #include "net/log/net_log.h" |
| 23 #include "net/socket/ssl_client_socket.h" | 24 #include "net/socket/ssl_client_socket.h" |
| 24 | 25 |
| 25 namespace net { | 26 namespace net { |
| 26 | 27 |
| 27 class AddressList; | 28 class AddressList; |
| 28 class ClientSocketHandle; | 29 class ClientSocketHandle; |
| 29 class GrowableIOBuffer; | 30 class GrowableIOBuffer; |
| 30 class HttpStream; | 31 class HttpStream; |
| 31 class HttpStreamParser; | 32 class HttpStreamParser; |
| 32 class IOBuffer; | 33 class IOBuffer; |
| 33 class ProxyDelegate; | 34 class ProxyDelegate; |
| 34 | 35 |
| 35 class HttpProxyClientSocket : public ProxyClientSocket { | 36 class NET_EXPORT_PRIVATE HttpProxyClientSocket : public ProxyClientSocket { |
| 36 public: | 37 public: |
| 37 // Takes ownership of |transport_socket|, which should already be connected | 38 // Takes ownership of |transport_socket|, which should already be connected |
| 38 // by the time Connect() is called. If tunnel is true then on Connect() | 39 // by the time Connect() is called. If tunnel is true then on Connect() |
| 39 // this socket will establish an Http tunnel. | 40 // this socket will establish an Http tunnel. |
| 40 HttpProxyClientSocket(ClientSocketHandle* transport_socket, | 41 HttpProxyClientSocket(ClientSocketHandle* transport_socket, |
| 41 const std::string& user_agent, | 42 const std::string& user_agent, |
| 42 const HostPortPair& endpoint, | 43 const HostPortPair& endpoint, |
| 43 const HostPortPair& proxy_server, | 44 const HostPortPair& proxy_server, |
| 44 HttpAuthController* http_auth_controller, | 45 HttpAuthController* http_auth_controller, |
| 45 bool tunnel, | 46 bool tunnel, |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 ProxyDelegate* proxy_delegate_; | 167 ProxyDelegate* proxy_delegate_; |
| 167 | 168 |
| 168 const BoundNetLog net_log_; | 169 const BoundNetLog net_log_; |
| 169 | 170 |
| 170 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); | 171 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocket); |
| 171 }; | 172 }; |
| 172 | 173 |
| 173 } // namespace net | 174 } // namespace net |
| 174 | 175 |
| 175 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ | 176 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_H_ |
| OLD | NEW |