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

Unified Diff: content/browser/service_worker/service_worker_provider_host.h

Issue 2245063003: ServiceWorker: Call SyncMatchingRegistration when document_url is changed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add SyncMatchingRegistration and update tests Created 4 years, 4 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/service_worker/service_worker_provider_host.h
diff --git a/content/browser/service_worker/service_worker_provider_host.h b/content/browser/service_worker/service_worker_provider_host.h
index 0ca74533ce6542014a60acf86db9e28ffc29aace..ee294771949c7302b755b100b8d3c1bdb2f264ae 100644
--- a/content/browser/service_worker/service_worker_provider_host.h
+++ b/content/browser/service_worker/service_worker_provider_host.h
@@ -246,9 +246,6 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
void AddMatchingRegistration(ServiceWorkerRegistration* registration);
void RemoveMatchingRegistration(ServiceWorkerRegistration* registration);
- // Add matched registrations for document generated by shift-reload.
- void AddAllMatchingRegistrations();
-
// An optimized implementation of [[Match Service Worker Registration]]
// for current document.
ServiceWorkerRegistration* MatchRegistration() const;
@@ -311,6 +308,9 @@ class CONTENT_EXPORT ServiceWorkerProviderHost
void SendAssociateRegistrationMessage();
+ // Sync all live and matching registrations up with the context core
+ void SyncMatchingRegistrations();
+
// Increase/decrease this host's process reference for |pattern|.
void IncreaseProcessReference(const GURL& pattern);
void DecreaseProcessReference(const GURL& pattern);

Powered by Google App Engine
This is Rietveld 408576698