Index: net/http/http_stream_request.cc |
diff --git a/net/http/http_stream_request.cc b/net/http/http_stream_request.cc |
index 88e79507337b0ca519a91dd060fb49047b32a385..2486bcf736cdf5a05cf350c124beaf8fbb53961a 100644 |
--- a/net/http/http_stream_request.cc |
+++ b/net/http/http_stream_request.cc |
@@ -206,6 +206,11 @@ void HttpStreamRequest::OnNeedsClientAuthCallback( |
delegate_->OnNeedsClientAuth(cert_info); |
} |
+void HttpStreamRequest::OnNeedsTLSLoginCallback( |
+ AuthChallengeInfo* login_info) { |
+ delegate_->OnNeedsTLSLogin(login_info); |
+} |
+ |
void HttpStreamRequest::OnHttpsProxyTunnelResponseCallback( |
const HttpResponseInfo& response_info, |
HttpStream* stream) { |
@@ -279,6 +284,14 @@ int HttpStreamRequest::RunLoop(int result) { |
connection_->ssl_error_response_info().cert_request_info)); |
return ERR_IO_PENDING; |
+ case ERR_TLS_CLIENT_LOGIN_NEEDED: |
+ MessageLoop::current()->PostTask( |
+ FROM_HERE, |
+ method_factory_.NewRunnableMethod( |
+ &HttpStreamRequest::OnNeedsTLSLoginCallback, |
+ connection_->ssl_error_response_info().login_request_info)); |
+ return ERR_TLS_CLIENT_LOGIN_NEEDED; |
+ |
case ERR_HTTPS_PROXY_TUNNEL_RESPONSE: |
{ |
DCHECK(connection_.get()); |