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" | 16 #include "net/base/io_buffer.h" |
17 #include "net/base/load_flags.h" | 17 #include "net/base/load_flags.h" |
18 #include "net/base/net_util.h" | 18 #include "net/base/net_util.h" |
19 #include "net/base/ssl_client_socket.h" | 19 #include "net/base/ssl_client_socket.h" |
20 #include "net/base/upload_data_stream.h" | 20 #include "net/base/upload_data_stream.h" |
21 #include "net/http/http_auth.h" | 21 #include "net/http/http_auth.h" |
22 #include "net/http/http_auth_handler.h" | 22 #include "net/http/http_auth_handler.h" |
23 #include "net/http/http_chunked_decoder.h" | 23 #include "net/http/http_chunked_decoder.h" |
24 #include "net/http/http_network_session.h" | 24 #include "net/http/http_network_session.h" |
25 #include "net/http/http_request_info.h" | 25 #include "net/http/http_request_info.h" |
| 26 #include "net/http/http_response_headers.h" |
26 #include "net/http/http_util.h" | 27 #include "net/http/http_util.h" |
27 | 28 |
28 using base::Time; | 29 using base::Time; |
29 | 30 |
30 namespace net { | 31 namespace net { |
31 | 32 |
32 //----------------------------------------------------------------------------- | 33 //----------------------------------------------------------------------------- |
33 | 34 |
34 HttpNetworkTransaction::HttpNetworkTransaction(HttpNetworkSession* session, | 35 HttpNetworkTransaction::HttpNetworkTransaction(HttpNetworkSession* session, |
35 ClientSocketFactory* csf) | 36 ClientSocketFactory* csf) |
(...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1272 if (target == HttpAuth::AUTH_PROXY) { | 1273 if (target == HttpAuth::AUTH_PROXY) { |
1273 auth_info->host = ASCIIToWide(proxy_info_.proxy_server()); | 1274 auth_info->host = ASCIIToWide(proxy_info_.proxy_server()); |
1274 } else { | 1275 } else { |
1275 DCHECK(target == HttpAuth::AUTH_SERVER); | 1276 DCHECK(target == HttpAuth::AUTH_SERVER); |
1276 auth_info->host = ASCIIToWide(request_->url.host()); | 1277 auth_info->host = ASCIIToWide(request_->url.host()); |
1277 } | 1278 } |
1278 response_.auth_challenge = auth_info; | 1279 response_.auth_challenge = auth_info; |
1279 } | 1280 } |
1280 | 1281 |
1281 } // namespace net | 1282 } // namespace net |
OLD | NEW |