| Index: net/http/http_stream_factory_impl_job.cc
|
| ===================================================================
|
| --- net/http/http_stream_factory_impl_job.cc (revision 114226)
|
| +++ net/http/http_stream_factory_impl_job.cc (working copy)
|
| @@ -406,10 +406,10 @@
|
| DCHECK(connection_->socket());
|
| DCHECK(establishing_tunnel_);
|
|
|
| - ProxyClientSocket* proxy_socket =
|
| - static_cast<ProxyClientSocket*>(connection_->socket());
|
| + HttpProxyClientSocket* http_proxy_socket =
|
| + static_cast<HttpProxyClientSocket*>(connection_->socket());
|
| const HttpResponseInfo* tunnel_auth_response =
|
| - proxy_socket->GetConnectResponseInfo();
|
| + http_proxy_socket->GetConnectResponseInfo();
|
|
|
| next_state_ = STATE_WAITING_USER_ACTION;
|
| MessageLoop::current()->PostTask(
|
| @@ -418,7 +418,7 @@
|
| &HttpStreamFactoryImpl::Job::OnNeedsProxyAuthCallback,
|
| ptr_factory_.GetWeakPtr(),
|
| *tunnel_auth_response,
|
| - proxy_socket->auth_controller()));
|
| + http_proxy_socket->auth_controller()));
|
| }
|
| return ERR_IO_PENDING;
|
|
|
| @@ -942,9 +942,9 @@
|
|
|
| int HttpStreamFactoryImpl::Job::DoRestartTunnelAuth() {
|
| next_state_ = STATE_RESTART_TUNNEL_AUTH_COMPLETE;
|
| - ProxyClientSocket* proxy_socket =
|
| - static_cast<ProxyClientSocket*>(connection_->socket());
|
| - return proxy_socket->RestartWithAuth(&io_callback_);
|
| + HttpProxyClientSocket* http_proxy_socket =
|
| + static_cast<HttpProxyClientSocket*>(connection_->socket());
|
| + return http_proxy_socket->RestartWithAuth(&io_callback_);
|
| }
|
|
|
| int HttpStreamFactoryImpl::Job::DoRestartTunnelAuthComplete(int result) {
|
| @@ -952,14 +952,14 @@
|
| return result;
|
|
|
| if (result == OK) {
|
| - // Now that we've got the ProxyClientSocket prepared to restart. We have
|
| + // Now that we've got the HttpProxyClientSocket connected. We have
|
| // to release it as an idle socket into the pool and start the connection
|
| // process from the beginning. Trying to pass it in with the
|
| // SSLSocketParams might cause a deadlock since params are dispatched
|
| // interchangeably. This request won't necessarily get this http proxy
|
| // socket, but there will be forward progress.
|
| establishing_tunnel_ = false;
|
| - ReturnToStateInitConnection(!connection_->socket()->IsConnectedAndIdle());
|
| + ReturnToStateInitConnection(false /* do not close connection */);
|
| return OK;
|
| }
|
|
|
|
|