Index: content/browser/background_sync/background_sync_manager.h |
diff --git a/content/browser/background_sync/background_sync_manager.h b/content/browser/background_sync/background_sync_manager.h |
index e49c815894fcd003337c2519fdfa23313a6077ed..39080b74775525c37a5fe11cb1a4f9b4be704752 100644 |
--- a/content/browser/background_sync/background_sync_manager.h |
+++ b/content/browser/background_sync/background_sync_manager.h |
@@ -207,11 +207,12 @@ class CONTENT_EXPORT BackgroundSyncManager |
int64 sw_registration_id, |
const RegistrationKey& registration_key, |
BackgroundSyncRegistration::RegistrationId sync_registration_id, |
+ SyncPeriodicity periodicity, |
const StatusCallback& callback); |
- void UnregisterDidStore( |
- int64 sw_registration_id, |
- const StatusCallback& callback, |
- ServiceWorkerStatusCode status); |
+ void UnregisterDidStore(int64 sw_registration_id, |
+ SyncPeriodicity periodicity, |
+ const StatusCallback& callback, |
+ ServiceWorkerStatusCode status); |
// GetRegistration callbacks |
void GetRegistrationImpl(int64 sw_registration_id, |
@@ -223,6 +224,8 @@ class CONTENT_EXPORT BackgroundSyncManager |
SyncPeriodicity periodicity, |
const StatusAndRegistrationsCallback& callback); |
+ bool WouldFireRegistrationWithOptions( |
+ const BackgroundSyncRegistrationOptions& options); |
bool IsRegistrationReadyToFire( |
const BackgroundSyncRegistration& registration); |
@@ -261,6 +264,10 @@ class CONTENT_EXPORT BackgroundSyncManager |
const base::Closure& callback, |
ServiceWorkerStatusCode status_code); |
+ // Called when all sync events have completed. |
+ static void OnAllSyncEventsCompleted(const base::TimeTicks& start_time, |
+ const base::Closure& callback); |
+ |
// OnRegistrationDeleted callbacks |
void OnRegistrationDeletedImpl(int64 registration_id, |
const base::Closure& callback); |