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

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, 1 month 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 26ecf1d8dbb897ecd23cd8627a32ce0deceb4c15..a23975e01ad42f459ffd4f452f0085b34cdbd744 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -1064,6 +1064,14 @@ 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());
}
@@ -1949,7 +1957,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