| Index: content/browser/renderer_host/resource_dispatcher_host_impl.cc
|
| diff --git a/content/browser/renderer_host/resource_dispatcher_host_impl.cc b/content/browser/renderer_host/resource_dispatcher_host_impl.cc
|
| index a74a4389b913e68f4470df548a5a18b74d656e3b..1896d0e7c79f9014323534704036d599df473242 100644
|
| --- a/content/browser/renderer_host/resource_dispatcher_host_impl.cc
|
| +++ b/content/browser/renderer_host/resource_dispatcher_host_impl.cc
|
| @@ -466,6 +466,7 @@ void ResourceDispatcherHostImpl::CancelRequestsForContext(
|
|
|
| net::Error ResourceDispatcherHostImpl::BeginDownload(
|
| scoped_ptr<net::URLRequest> request,
|
| + bool from_web,
|
| ResourceContext* context,
|
| int child_id,
|
| int route_id,
|
| @@ -514,8 +515,8 @@ net::Error ResourceDispatcherHostImpl::BeginDownload(
|
| // |started_callback|.
|
| scoped_refptr<ResourceHandler> handler(
|
| CreateResourceHandlerForDownload(request.get(), context, child_id,
|
| - route_id, request_id_, save_info,
|
| - started_callback));
|
| + route_id, request_id_, from_web,
|
| + save_info, started_callback));
|
|
|
| if (!request_context->job_factory()->IsHandledURL(url)) {
|
| VLOG(1) << "Download request for unsupported protocol: "
|
| @@ -576,6 +577,7 @@ ResourceDispatcherHostImpl::CreateResourceHandlerForDownload(
|
| int child_id,
|
| int route_id,
|
| int request_id,
|
| + bool from_web,
|
| const DownloadSaveInfo& save_info,
|
| const DownloadResourceHandler::OnStartedCallback& started_cb) {
|
| scoped_refptr<ResourceHandler> handler(
|
| @@ -585,7 +587,7 @@ ResourceDispatcherHostImpl::CreateResourceHandlerForDownload(
|
| if (delegate_) {
|
| ScopedVector<ResourceThrottle> throttles;
|
| delegate_->DownloadStarting(request, context, child_id, route_id,
|
| - request_id, !request->is_pending(), &throttles);
|
| + request_id, from_web, &throttles);
|
| if (!throttles.empty()) {
|
| handler = new ThrottlingResourceHandler(this, handler, child_id,
|
| request_id, throttles.Pass());
|
|
|