Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1258)

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 1977623002: Updates to DownloadUrlParameters in preparation for OOPIF changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/resource_dispatcher_host_impl.cc
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index c44f026fa8b38b87d59c409493d6457475097360..7a88b26f6306f94e0d59141899662b7edd932451 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -745,7 +745,7 @@ DownloadInterruptReason ResourceDispatcherHostImpl::BeginDownload(
const Referrer& referrer,
bool is_content_initiated,
ResourceContext* context,
- int child_id,
+ int render_process_id,
int render_view_route_id,
int render_frame_route_id,
bool do_not_prompt_for_login) {
@@ -773,7 +773,7 @@ DownloadInterruptReason ResourceDispatcherHostImpl::BeginDownload(
// Check if the renderer is permitted to request the requested URL.
if (!ChildProcessSecurityPolicyImpl::GetInstance()->
- CanRequestURL(child_id, url)) {
+ CanRequestURL(render_process_id, url)) {
DVLOG(1) << "Denied unauthorized download request for "
<< url.possibly_invalid_spec();
return DOWNLOAD_INTERRUPT_REASON_NETWORK_INVALID_REQUEST;
@@ -789,7 +789,7 @@ DownloadInterruptReason ResourceDispatcherHostImpl::BeginDownload(
}
ResourceRequestInfoImpl* extra_info =
- CreateRequestInfo(child_id, render_view_route_id,
+ CreateRequestInfo(render_process_id, render_view_route_id,
render_frame_route_id, true, context);
extra_info->set_do_not_prompt_for_login(do_not_prompt_for_login);
extra_info->AssociateWithRequest(request.get()); // Request takes ownership.

Powered by Google App Engine
This is Rietveld 408576698