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

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: 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/navigation_request.h ('k') | content/browser/frame_host/navigator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 84cc93f4ccf585d896080434989b8b100eee7c3f..4ebdc2743d46606987aafdbfab1d885556500a4e 100644
--- a/content/browser/frame_host/navigation_request.cc
+++ b/content/browser/frame_host/navigation_request.cc
@@ -265,8 +265,11 @@ void NavigationRequest::OnRequestRedirected(
void NavigationRequest::OnResponseStarted(
const scoped_refptr<ResourceResponse>& response,
- scoped_ptr<StreamHandle> body) {
+ mojo::ScopedDataPipeConsumerHandle data_consumer_handle,
+ int request_id) {
DCHECK(state_ == STARTED);
+ DCHECK(data_consumer_handle.is_valid());
+ DCHECK_LT(request_id, -1);
state_ = RESPONSE_STARTED;
// Update the service worker params of the request params.
@@ -286,7 +289,7 @@ void NavigationRequest::OnResponseStarted(
common_params_.lofi_state = LOFI_OFF;
frame_tree_node_->navigator()->CommitNavigation(
- this, response.get(), std::move(body));
+ this, response.get(), std::move(data_consumer_handle), request_id);
}
void NavigationRequest::OnRequestFailed(bool has_stale_copy_in_cache,
« no previous file with comments | « content/browser/frame_host/navigation_request.h ('k') | content/browser/frame_host/navigator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698