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

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

Issue 702843004: Transfer serviceworker state during cross site navigations too. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 6d1aaddae129b7cb288759ba2c16cb28f1e989af..9f0c7288d6745039421a674ae4ebe3784a503fed 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -1082,6 +1082,13 @@ void ResourceDispatcherHostImpl::UpdateRequestForTransfer(
child_id,
request_data.appcache_host_id);
+ ServiceWorkerRequestHandler* handler =
+ ServiceWorkerRequestHandler::GetHandler(loader->request());
+ if (handler) {
+ handler->CompleteCrossSiteTransfer(
+ child_id, request_data.service_worker_provider_id);
+ }
+
// We should have a CrossSiteResourceHandler to finish the transfer.
DCHECK(info->cross_site_handler());
}
@@ -1974,7 +1981,7 @@ void ResourceDispatcherHostImpl::BeginNavigationRequest(
}
// TODO(davidben): Attach ServiceWorkerRequestHandler.
-
+ // TODO(michaeln): Help out with this and that.
// TODO(davidben): Attach AppCacheInterceptor.
scoped_ptr<ResourceHandler> handler(new NavigationResourceHandler(

Powered by Google App Engine
This is Rietveld 408576698