OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_network_transaction.h" | 5 #include "net/http/http_network_transaction.h" |
6 | 6 |
7 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "base/trace_event.h" | 10 #include "base/trace_event.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "net/base/client_socket_factory.h" | 12 #include "net/base/client_socket_factory.h" |
13 #include "net/base/connection_type_histograms.h" | 13 #include "net/base/connection_type_histograms.h" |
14 #include "net/base/dns_resolution_observer.h" | 14 #include "net/base/dns_resolution_observer.h" |
15 #include "net/base/host_resolver.h" | 15 #include "net/base/host_resolver.h" |
16 #include "net/base/io_buffer.h" | |
17 #include "net/base/load_flags.h" | 16 #include "net/base/load_flags.h" |
18 #include "net/base/net_util.h" | 17 #include "net/base/net_util.h" |
19 #include "net/base/ssl_client_socket.h" | 18 #include "net/base/ssl_client_socket.h" |
20 #include "net/base/upload_data_stream.h" | 19 #include "net/base/upload_data_stream.h" |
21 #include "net/http/http_auth.h" | 20 #include "net/http/http_auth.h" |
22 #include "net/http/http_auth_handler.h" | 21 #include "net/http/http_auth_handler.h" |
23 #include "net/http/http_chunked_decoder.h" | 22 #include "net/http/http_chunked_decoder.h" |
24 #include "net/http/http_network_session.h" | 23 #include "net/http/http_network_session.h" |
25 #include "net/http/http_request_info.h" | 24 #include "net/http/http_request_info.h" |
26 #include "net/http/http_util.h" | 25 #include "net/http/http_util.h" |
(...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1263 if (target == HttpAuth::AUTH_PROXY) { | 1262 if (target == HttpAuth::AUTH_PROXY) { |
1264 auth_info->host = ASCIIToWide(proxy_info_.proxy_server()); | 1263 auth_info->host = ASCIIToWide(proxy_info_.proxy_server()); |
1265 } else { | 1264 } else { |
1266 DCHECK(target == HttpAuth::AUTH_SERVER); | 1265 DCHECK(target == HttpAuth::AUTH_SERVER); |
1267 auth_info->host = ASCIIToWide(request_->url.host()); | 1266 auth_info->host = ASCIIToWide(request_->url.host()); |
1268 } | 1267 } |
1269 response_.auth_challenge = auth_info; | 1268 response_.auth_challenge = auth_info; |
1270 } | 1269 } |
1271 | 1270 |
1272 } // namespace net | 1271 } // namespace net |
OLD | NEW |