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

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: Review comments 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 8bce7931fe340b1854d16ecbf78f9da2de6de6d4..4de8a0874c8d0f7434c35b0f0506527284926508 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -747,7 +747,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) {
@@ -775,7 +775,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;
@@ -791,7 +791,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.
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.h ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698