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

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: Created 4 years, 10 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/frame_host/navigator_impl.cc
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc
index 960ef9150e66aee0847045a0bcaaf7df3e28bf35..868300082be361875455a0707242bb288e162f7a 100644
--- a/content/browser/frame_host/navigator_impl.cc
+++ b/content/browser/frame_host/navigator_impl.cc
@@ -795,7 +795,8 @@ void NavigatorImpl::OnBeginNavigation(
// PlzNavigate
void NavigatorImpl::CommitNavigation(FrameTreeNode* frame_tree_node,
ResourceResponse* response,
- scoped_ptr<StreamHandle> body) {
+ scoped_ptr<StreamHandle> body,
+ mojo::ScopedDataPipeConsumerHandle data_consumer_handle) {
CHECK(IsBrowserSideNavigationEnabled());
NavigationRequest* navigation_request = frame_tree_node->navigation_request();
@@ -837,7 +838,8 @@ void NavigatorImpl::CommitNavigation(FrameTreeNode* frame_tree_node,
render_frame_host, response ? response->head.headers : nullptr);
render_frame_host->CommitNavigation(response, std::move(body),
navigation_request->common_params(),
- navigation_request->request_params());
+ navigation_request->request_params(),
+ std::move(data_consumer_handle));
}
// PlzNavigate

Powered by Google App Engine
This is Rietveld 408576698