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

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

Issue 1013423002: ServiceWorker: Make claim() uses living matching registrations instead of fetching from DB. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 9 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_registration.h
diff --git a/content/browser/service_worker/service_worker_registration.h b/content/browser/service_worker/service_worker_registration.h
index 26184839c417c45962630e80c2b0e8fde3454119..994a4657a0378b5eb108cc2a8d1cbdd2699d8be0 100644
--- a/content/browser/service_worker/service_worker_registration.h
+++ b/content/browser/service_worker/service_worker_registration.h
@@ -111,7 +111,7 @@ class CONTENT_EXPORT ServiceWorkerRegistration
// Takes over control of provider hosts which are currently not controlled or
// controlled by other registrations.
- void ClaimClients(const StatusCallback& callback);
+ void ClaimClients();
// Triggers the [[ClearRegistration]] algorithm when the currently
// active version has no controllees. Deletes this registration
@@ -167,14 +167,6 @@ class CONTENT_EXPORT ServiceWorkerRegistration
scoped_refptr<ServiceWorkerVersion> version,
ServiceWorkerStatusCode status);
- void DidGetRegistrationsForClaimClients(
- const StatusCallback& callback,
- scoped_refptr<ServiceWorkerVersion> version,
- const std::vector<ServiceWorkerRegistrationInfo>& registrations);
- bool ShouldClaim(
- ServiceWorkerProviderHost* provider_host,
- const std::vector<ServiceWorkerRegistrationInfo>& registration_infos);
-
const GURL pattern_;
const int64 registration_id_;
bool is_deleted_;

Powered by Google App Engine
This is Rietveld 408576698