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

Unified Diff: content/browser/frame_host/navigation_request.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/navigation_request.cc
diff --git a/content/browser/frame_host/navigation_request.cc b/content/browser/frame_host/navigation_request.cc
index df0f7a1e7b7128331b36debd5882b31dd4f37bd5..f318e58111fedd156ef29cdabd2a080f7a943479 100644
--- a/content/browser/frame_host/navigation_request.cc
+++ b/content/browser/frame_host/navigation_request.cc
@@ -258,7 +258,8 @@ void NavigationRequest::OnRequestRedirected(
void NavigationRequest::OnResponseStarted(
const scoped_refptr<ResourceResponse>& response,
- scoped_ptr<StreamHandle> body) {
+ scoped_ptr<StreamHandle> body,
+ mojo::ScopedDataPipeConsumerHandle data_consumer_handle) {
DCHECK(state_ == STARTED);
state_ = RESPONSE_STARTED;
@@ -273,7 +274,7 @@ void NavigationRequest::OnResponseStarted(
}
frame_tree_node_->navigator()->CommitNavigation(
- frame_tree_node_, response.get(), std::move(body));
+ frame_tree_node_, response.get(), std::move(body), std::move(data_consumer_handle));
}
void NavigationRequest::OnRequestFailed(bool has_stale_copy_in_cache,

Powered by Google App Engine
This is Rietveld 408576698