| 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 #include "net/http/http_proxy_client_socket.h" | 5 #include "net/http/http_proxy_client_socket.h" |
| 6 | 6 |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
| 9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
| 10 #include "net/base/auth.h" | 10 #include "net/base/auth.h" |
| 11 #include "net/base/host_port_pair.h" | 11 #include "net/base/host_port_pair.h" |
| 12 #include "net/base/io_buffer.h" | 12 #include "net/base/io_buffer.h" |
| 13 #include "net/base/net_log.h" | 13 #include "net/base/net_log.h" |
| 14 #include "net/base/net_util.h" | 14 #include "net/base/net_util.h" |
| 15 #include "net/http/http_net_log_params.h" | 15 #include "net/http/http_net_log_params.h" |
| 16 #include "net/http/http_network_session.h" | 16 #include "net/http/http_network_session.h" |
| 17 #include "net/http/http_proxy_utils.h" | 17 #include "net/http/http_proxy_utils.h" |
| 18 #include "net/http/http_request_info.h" | 18 #include "net/http/http_request_info.h" |
| 19 #include "net/http/http_response_headers.h" |
| 19 #include "net/http/http_stream_parser.h" | 20 #include "net/http/http_stream_parser.h" |
| 20 #include "net/socket/client_socket_handle.h" | 21 #include "net/socket/client_socket_handle.h" |
| 21 | 22 |
| 22 namespace net { | 23 namespace net { |
| 23 | 24 |
| 24 HttpProxyClientSocket::HttpProxyClientSocket( | 25 HttpProxyClientSocket::HttpProxyClientSocket( |
| 25 ClientSocketHandle* transport_socket, | 26 ClientSocketHandle* transport_socket, |
| 26 const GURL& request_url, | 27 const GURL& request_url, |
| 27 const std::string& user_agent, | 28 const std::string& user_agent, |
| 28 const HostPortPair& endpoint, | 29 const HostPortPair& endpoint, |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 | 448 |
| 448 int rv = auth_->HandleAuthChallenge(response_.headers, false, true, net_log_); | 449 int rv = auth_->HandleAuthChallenge(response_.headers, false, true, net_log_); |
| 449 response_.auth_challenge = auth_->auth_info(); | 450 response_.auth_challenge = auth_->auth_info(); |
| 450 if (rv == OK) | 451 if (rv == OK) |
| 451 return ERR_PROXY_AUTH_REQUESTED; | 452 return ERR_PROXY_AUTH_REQUESTED; |
| 452 | 453 |
| 453 return rv; | 454 return rv; |
| 454 } | 455 } |
| 455 | 456 |
| 456 } // namespace net | 457 } // namespace net |
| OLD | NEW |