| Index: net/http/http_proxy_client_socket.h
|
| diff --git a/net/http/http_proxy_client_socket.h b/net/http/http_proxy_client_socket.h
|
| index 61e81581ccc77a8323483164a979c8b46f647a25..bc359be1605d331135e58d34dac77aa380cc722e 100644
|
| --- a/net/http/http_proxy_client_socket.h
|
| +++ b/net/http/http_proxy_client_socket.h
|
| @@ -34,7 +34,8 @@ class HttpProxyClientSocket : public ClientSocket {
|
| // this socket will establish an Http tunnel.
|
| HttpProxyClientSocket(ClientSocketHandle* transport_socket,
|
| const GURL& request_url, const HostPortPair& endpoint,
|
| - const scoped_refptr<HttpAuthController>& auth,
|
| + const HostPortPair& proxy_server,
|
| + const scoped_refptr<HttpNetworkSession>& session,
|
| bool tunnel);
|
|
|
| // On destruction Disconnect() is called.
|
| @@ -45,12 +46,12 @@ class HttpProxyClientSocket : public ClientSocket {
|
| // RestartWithAuth.
|
| int RestartWithAuth(CompletionCallback* callback);
|
|
|
| - // Indicates if RestartWithAuth needs to be called. i.e. if Connect
|
| - // returned PROXY_AUTH_REQUESTED. Only valid after Connect has been called.
|
| - bool NeedsRestartWithAuth() const;
|
| -
|
| const HttpResponseInfo* GetResponseInfo() const {
|
| - return response_.headers ? &response_ : NULL;
|
| + return response_.headers ? &response_ : NULL;
|
| + }
|
| +
|
| + const scoped_refptr<HttpAuthController>& auth_controller() {
|
| + return auth_;
|
| }
|
|
|
| // ClientSocket methods:
|
| @@ -84,6 +85,8 @@ class HttpProxyClientSocket : public ClientSocket {
|
| STATE_RESOLVE_CANONICAL_NAME_COMPLETE,
|
| STATE_DRAIN_BODY,
|
| STATE_DRAIN_BODY_COMPLETE,
|
| + STATE_TCP_RESTART,
|
| + STATE_TCP_RESTART_COMPLETE,
|
| STATE_DONE,
|
| };
|
|
|
| @@ -111,6 +114,8 @@ class HttpProxyClientSocket : public ClientSocket {
|
| int DoReadHeadersComplete(int result);
|
| int DoDrainBody();
|
| int DoDrainBodyComplete(int result);
|
| + int DoTCPRestart();
|
| + int DoTCPRestartComplete(int result);
|
|
|
| CompletionCallbackImpl<HttpProxyClientSocket> io_callback_;
|
| State next_state_;
|
|
|