| 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading | 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading |
| 6 | 6 |
| 7 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" | 7 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 net::URLRequest* request, | 566 net::URLRequest* request, |
| 567 ResourceContext* context, | 567 ResourceContext* context, |
| 568 int child_id, | 568 int child_id, |
| 569 int route_id, | 569 int route_id, |
| 570 int request_id, | 570 int request_id, |
| 571 bool is_content_initiated, | 571 bool is_content_initiated, |
| 572 const DownloadSaveInfo& save_info, | 572 const DownloadSaveInfo& save_info, |
| 573 const DownloadResourceHandler::OnStartedCallback& started_cb) { | 573 const DownloadResourceHandler::OnStartedCallback& started_cb) { |
| 574 scoped_refptr<ResourceHandler> handler( | 574 scoped_refptr<ResourceHandler> handler( |
| 575 new DownloadResourceHandler(child_id, route_id, request_id, | 575 new DownloadResourceHandler(child_id, route_id, request_id, |
| 576 request->url(), download_file_manager_.get(), | 576 request->url(), download_file_manager_, |
| 577 request, started_cb, save_info)); | 577 request, started_cb, save_info)); |
| 578 if (delegate_) { | 578 if (delegate_) { |
| 579 ScopedVector<ResourceThrottle> throttles; | 579 ScopedVector<ResourceThrottle> throttles; |
| 580 delegate_->DownloadStarting(request, context, child_id, route_id, | 580 delegate_->DownloadStarting(request, context, child_id, route_id, |
| 581 request_id, is_content_initiated, &throttles); | 581 request_id, is_content_initiated, &throttles); |
| 582 if (!throttles.empty()) { | 582 if (!throttles.empty()) { |
| 583 handler = new ThrottlingResourceHandler(this, handler, child_id, | 583 handler = new ThrottlingResourceHandler(this, handler, child_id, |
| 584 request_id, throttles.Pass()); | 584 request_id, throttles.Pass()); |
| 585 } | 585 } |
| 586 } | 586 } |
| (...skipping 1774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2361 return allow_cross_origin_auth_prompt_; | 2361 return allow_cross_origin_auth_prompt_; |
| 2362 } | 2362 } |
| 2363 | 2363 |
| 2364 bool ResourceDispatcherHostImpl::IsTransferredNavigation( | 2364 bool ResourceDispatcherHostImpl::IsTransferredNavigation( |
| 2365 const GlobalRequestID& transferred_request_id) const { | 2365 const GlobalRequestID& transferred_request_id) const { |
| 2366 return transferred_navigations_.find(transferred_request_id) != | 2366 return transferred_navigations_.find(transferred_request_id) != |
| 2367 transferred_navigations_.end(); | 2367 transferred_navigations_.end(); |
| 2368 } | 2368 } |
| 2369 | 2369 |
| 2370 } // namespace content | 2370 } // namespace content |
| OLD | NEW |