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

Unified Diff: content/browser/loader/navigation_url_loader_impl_core.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/loader/navigation_url_loader_impl_core.cc
diff --git a/content/browser/loader/navigation_url_loader_impl_core.cc b/content/browser/loader/navigation_url_loader_impl_core.cc
index bd7ef98f8eaaf69fc862f0ae36eed0ed7c2ea8c2..c745ab0ffa82ddbb75caec73c6a99d3c1559b867 100644
--- a/content/browser/loader/navigation_url_loader_impl_core.cc
+++ b/content/browser/loader/navigation_url_loader_impl_core.cc
@@ -87,7 +87,8 @@ void NavigationURLLoaderImplCore::NotifyRequestRedirected(
void NavigationURLLoaderImplCore::NotifyResponseStarted(
ResourceResponse* response,
- scoped_ptr<StreamHandle> body) {
+ scoped_ptr<StreamHandle> body,
+ mojo::ScopedDataPipeConsumerHandle data_consumer_handle) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
TRACE_EVENT_ASYNC_END0("navigation", "Navigation redirectDelay", this);
TRACE_EVENT_ASYNC_END2("navigation", "Navigation timeToResponseStarted", this,
@@ -105,7 +106,8 @@ void NavigationURLLoaderImplCore::NotifyResponseStarted(
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
base::Bind(&NavigationURLLoaderImpl::NotifyResponseStarted, loader_,
- response->DeepCopy(), base::Passed(&body)));
+ response->DeepCopy(), base::Passed(&body),
+ base::Passed(&data_consumer_handle)));
}
void NavigationURLLoaderImplCore::NotifyRequestFailed(bool in_cache,

Powered by Google App Engine
This is Rietveld 408576698