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

Unified Diff: Source/modules/background_sync/ServiceWorkerRegistrationSync.h

Issue 1096503002: [Background Sync] Converting Blink code to the MVP API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Unregister method requires the sync registration tag Created 5 years, 8 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: Source/modules/background_sync/ServiceWorkerRegistrationSync.h
diff --git a/Source/modules/background_sync/ServiceWorkerRegistrationSync.h b/Source/modules/background_sync/ServiceWorkerRegistrationSync.h
index 9ddc5043acdce82501c3cc7bb32a833b2452480e..14f1723583430fe3194fc212557f0502379b9f12 100644
--- a/Source/modules/background_sync/ServiceWorkerRegistrationSync.h
+++ b/Source/modules/background_sync/ServiceWorkerRegistrationSync.h
@@ -11,6 +11,7 @@
namespace blink {
class SyncManager;
+class PeriodicSyncManager;
class ServiceWorkerRegistration;
class ServiceWorkerRegistrationSync final : public GarbageCollectedFinalized<ServiceWorkerRegistrationSync>, public HeapSupplement<ServiceWorkerRegistration> {
@@ -20,8 +21,10 @@ public:
virtual ~ServiceWorkerRegistrationSync();
static ServiceWorkerRegistrationSync& from(ServiceWorkerRegistration&);
- static SyncManager* syncManager(ServiceWorkerRegistration&);
- SyncManager* syncManager();
+ static SyncManager* sync(ServiceWorkerRegistration&);
+ static PeriodicSyncManager* periodicSync(ServiceWorkerRegistration&);
+ SyncManager* sync();
+ PeriodicSyncManager* periodicSync();
DECLARE_VIRTUAL_TRACE();
@@ -31,6 +34,7 @@ private:
Member<ServiceWorkerRegistration> m_registration;
Member<SyncManager> m_syncManager;
+ Member<PeriodicSyncManager> m_periodicSyncManager;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698