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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 2847443002: PlzNavigate: make NavigationResourceHandler a LayeredResourceHandler (Closed)
Patch Set: Addressed comments Created 3 years, 8 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/resource_dispatcher_host_impl.h
diff --git a/content/browser/loader/resource_dispatcher_host_impl.h b/content/browser/loader/resource_dispatcher_host_impl.h
index 3667199b497b7e8c288405c19fcb97f55c63cd59..f57a3acba48616125cf9d25fef283e137970a172 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.h
+++ b/content/browser/loader/resource_dispatcher_host_impl.h
@@ -33,6 +33,7 @@
#include "content/public/browser/global_request_id.h"
#include "content/public/browser/resource_dispatcher_host.h"
#include "content/public/browser/resource_request_info.h"
+#include "content/public/browser/stream_handle.h"
#include "content/public/common/previews_state.h"
#include "content/public/common/request_context_type.h"
#include "content/public/common/resource_type.h"
@@ -597,6 +598,9 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
// Wraps |handler| in the standard resource handlers for normal resource
// loading and navigation requests. This adds MimeTypeResourceHandler and
// ResourceThrottles.
+ // PlzNavigate: |navigation_loader_core| and |stream_handle| are used to
+ // properly initialized the NavigationResourceHandler placed in navigation
+ // requests. They should be non-null in that case.
std::unique_ptr<ResourceHandler> AddStandardHandlers(
net::URLRequest* request,
ResourceType resource_type,
@@ -606,7 +610,9 @@ class CONTENT_EXPORT ResourceDispatcherHostImpl
AppCacheService* appcache_service,
int child_id,
int route_id,
- std::unique_ptr<ResourceHandler> handler);
+ std::unique_ptr<ResourceHandler> handler,
+ NavigationURLLoaderImplCore* navigation_loader_core,
+ std::unique_ptr<StreamHandle> stream_handle);
void OnCancelRequest(ResourceRequesterInfo* requester_info, int request_id);
void OnReleaseDownloadedFile(ResourceRequesterInfo* requester_info,
« no previous file with comments | « content/browser/loader/navigation_resource_handler.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698