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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2855763002: network service: Plumbing to get URLLoaderFactory to renderer on nav commit (Closed)
Patch Set: fixes Created 3 years, 8 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
« no previous file with comments | « no previous file | content/common/frame_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index 485c02170811614575315bdd046054db829d3a93..caa9a42def266c37b36472cceeafef57418f3be7 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -3019,9 +3019,12 @@ void RenderFrameHostImpl::CommitNavigation(
const GURL body_url = body.get() ? body->GetURL() : GURL();
const ResourceResponseHead head = response ?
response->head : ResourceResponseHead();
- Send(new FrameMsg_CommitNavigation(routing_id_, head, body_url,
- handle.release(), common_params,
- request_params));
+ FrameMsg_CommitDataNetworkService_Params commit_data;
+ commit_data.handle = handle.release();
+ // TODO(scottmg): Pass a factory for SW, etc. once we have one.
+ commit_data.url_loader_factory = mojo::MessagePipeHandle();
+ Send(new FrameMsg_CommitNavigation(routing_id_, head, body_url, commit_data,
+ common_params, request_params));
// If a network request was made, update the Previews state.
if (ShouldMakeNetworkRequestForURL(common_params.url) &&
« no previous file with comments | « no previous file | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698