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

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

Issue 1693563002: PROTOTYPE: PlzNavigate: use a Mojo data pipe to stream navigation data to the renderer. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Browser sends URLRequest id to the renderer and renderer uses intermediary buffer for data: none he… Created 4 years, 9 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 | « content/browser/frame_host/navigator_impl.h ('k') | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigator_impl.cc
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index 79265e443d7fefbb85301a8ce7ca4ad25c37eb0d..2694a7504eb4fdecb21c82410214cc2e60d28a83 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -424,6 +424,8 @@ bool NavigatorImpl::NavigateNewChildFrame(
void NavigatorImpl::DidNavigate(
RenderFrameHostImpl* render_frame_host,
const FrameHostMsg_DidCommitProvisionalLoad_Params& params) {
+ LOG(ERROR) << "NavigatorImpl::DidNavigate frame_tree_node_id: "
+ << render_frame_host->frame_tree_node()->frame_tree_node_id();
FrameTree* frame_tree = render_frame_host->frame_tree_node()->frame_tree();
bool oopifs_possible = SiteIsolationPolicy::AreCrossProcessFramesPossible();
@@ -824,9 +826,11 @@ void NavigatorImpl::OnBeginNavigation(
}
// PlzNavigate
-void NavigatorImpl::CommitNavigation(NavigationRequest* navigation_request,
- ResourceResponse* response,
- scoped_ptr<StreamHandle> body) {
+void NavigatorImpl::CommitNavigation(
+ NavigationRequest* navigation_request,
+ ResourceResponse* response,
+ mojo::ScopedDataPipeConsumerHandle data_consumer_handle,
+ int request_id) {
CHECK(IsBrowserSideNavigationEnabled());
DCHECK(navigation_request);
@@ -867,9 +871,10 @@ void NavigatorImpl::CommitNavigation(NavigationRequest* navigation_request,
navigation_request->TransferNavigationHandleOwnership(render_frame_host);
render_frame_host->navigation_handle()->ReadyToCommitNavigation(
render_frame_host, response ? response->head.headers : nullptr);
- render_frame_host->CommitNavigation(response, std::move(body),
- navigation_request->common_params(),
- navigation_request->request_params());
+ render_frame_host->CommitNavigation(
+ response, navigation_request->common_params(),
+ navigation_request->request_params(), std::move(data_consumer_handle),
+ request_id);
}
// PlzNavigate
« no previous file with comments | « content/browser/frame_host/navigator_impl.h ('k') | content/browser/frame_host/render_frame_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698