| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "android_webview/browser/renderer_host/aw_resource_dispatcher_host_dele
gate.h" | 5 #include "android_webview/browser/renderer_host/aw_resource_dispatcher_host_dele
gate.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "android_webview/browser/aw_contents_io_thread_client.h" | 10 #include "android_webview/browser/aw_contents_io_thread_client.h" |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 } | 256 } |
| 257 } | 257 } |
| 258 } | 258 } |
| 259 | 259 |
| 260 | 260 |
| 261 void AwResourceDispatcherHostDelegate::DownloadStarting( | 261 void AwResourceDispatcherHostDelegate::DownloadStarting( |
| 262 net::URLRequest* request, | 262 net::URLRequest* request, |
| 263 content::ResourceContext* resource_context, | 263 content::ResourceContext* resource_context, |
| 264 int child_id, | 264 int child_id, |
| 265 int route_id, | 265 int route_id, |
| 266 int request_id, | |
| 267 bool is_content_initiated, | 266 bool is_content_initiated, |
| 268 bool must_download, | 267 bool must_download, |
| 269 ScopedVector<content::ResourceThrottle>* throttles) { | 268 ScopedVector<content::ResourceThrottle>* throttles) { |
| 270 GURL url(request->url()); | 269 GURL url(request->url()); |
| 271 std::string user_agent; | 270 std::string user_agent; |
| 272 std::string content_disposition; | 271 std::string content_disposition; |
| 273 std::string mime_type; | 272 std::string mime_type; |
| 274 int64_t content_length = request->GetExpectedContentSize(); | 273 int64_t content_length = request->GetExpectedContentSize(); |
| 275 | 274 |
| 276 request->extra_request_headers().GetHeader( | 275 request->extra_request_headers().GetHeader( |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 net::HttpRequestHeaders headers; | 438 net::HttpRequestHeaders headers; |
| 440 headers.AddHeadersFromString(extra_headers); | 439 headers.AddHeadersFromString(extra_headers); |
| 441 for (net::HttpRequestHeaders::Iterator it(headers); it.GetNext(); ) { | 440 for (net::HttpRequestHeaders::Iterator it(headers); it.GetNext(); ) { |
| 442 request->SetExtraRequestHeaderByName(it.name(), it.value(), false); | 441 request->SetExtraRequestHeaderByName(it.name(), it.value(), false); |
| 443 } | 442 } |
| 444 } | 443 } |
| 445 } | 444 } |
| 446 } | 445 } |
| 447 | 446 |
| 448 } // namespace android_webview | 447 } // namespace android_webview |
| OLD | NEW |