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

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

Issue 2045383002: PlzNavigate: detect when a ServiceWorker is present (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Calling FindReadyRegistartionForDocument Created 4 years, 6 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.cc
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index a0855984d17f5fd4f65acf0b6e5be3146c1a9b68..e6070ddc19dee22a79922747a261cd006e29a883 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -2149,8 +2149,7 @@ void ResourceDispatcherHostImpl::FinishedWithResourcesForRequest(
void ResourceDispatcherHostImpl::BeginNavigationRequest(
ResourceContext* resource_context,
const NavigationRequestInfo& info,
- NavigationURLLoaderImplCore* loader,
- ServiceWorkerNavigationHandleCore* service_worker_handle_core) {
+ NavigationURLLoaderImplCore* loader) {
// PlzNavigate: BeginNavigationRequest currently should only be used for the
// browser-side navigations project.
CHECK(IsBrowserSideNavigationEnabled());
@@ -2278,15 +2277,6 @@ void ResourceDispatcherHostImpl::BeginNavigationRequest(
blob_context->GetBlobDataFromPublicURL(new_request->url()));
}
- RequestContextFrameType frame_type =
- info.is_main_frame ? REQUEST_CONTEXT_FRAME_TYPE_TOP_LEVEL
- : REQUEST_CONTEXT_FRAME_TYPE_NESTED;
- ServiceWorkerRequestHandler::InitializeForNavigation(
- new_request.get(), service_worker_handle_core, blob_context,
- info.begin_params.skip_service_worker, resource_type,
- info.begin_params.request_context_type, frame_type,
- info.common_params.post_data);
-
// TODO(davidben): Attach AppCacheInterceptor.
std::unique_ptr<ResourceHandler> handler(

Powered by Google App Engine
This is Rietveld 408576698