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

Unified Diff: content/browser/appcache/appcache_request_handler.h

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/appcache/appcache_request_handler.h
diff --git a/content/browser/appcache/appcache_request_handler.h b/content/browser/appcache/appcache_request_handler.h
index 9c90b29bbfdc5b96003c1e54fe526c3998af2f8e..81acd85d0d3d5b7b0cf7c2545c0c0ef34f9ac3a6 100644
--- a/content/browser/appcache/appcache_request_handler.h
+++ b/content/browser/appcache/appcache_request_handler.h
@@ -49,6 +49,7 @@ class CONTENT_EXPORT AppCacheRequestHandler
// Methods to support cross site navigations.
void PrepareForCrossSiteTransfer(int old_process_id);
void CompleteCrossSiteTransfer(int new_process_id, int new_host_id);
+ void MaybeCompleteCrossSiteTransferInOldProcess(int old_process_id);
static bool IsMainResourceType(ResourceType type) {
return IsResourceTypeFrame(type) ||
@@ -145,6 +146,8 @@ class CONTENT_EXPORT AppCacheRequestHandler
// During a cross site navigation, we transfer ownership the AppcacheHost
// from the old processes structures over to the new structures.
scoped_ptr<AppCacheHost> host_for_cross_site_transfer_;
+ int old_process_id_;
+ int old_host_id_;
friend class content::AppCacheRequestHandlerTest;
DISALLOW_COPY_AND_ASSIGN(AppCacheRequestHandler);

Powered by Google App Engine
This is Rietveld 408576698