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

Unified Diff: Source/modules/background_sync/PeriodicSyncManager.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/PeriodicSyncManager.h
diff --git a/Source/modules/background_sync/SyncManager.h b/Source/modules/background_sync/PeriodicSyncManager.h
similarity index 53%
copy from Source/modules/background_sync/SyncManager.h
copy to Source/modules/background_sync/PeriodicSyncManager.h
index 5333b2ee4789147bfaabce82a88e9ab060637c26..ed8c79d9fa3387d96baa0517228143a2e544d6c3 100644
--- a/Source/modules/background_sync/SyncManager.h
+++ b/Source/modules/background_sync/PeriodicSyncManager.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SyncManager_h
-#define SyncManager_h
+#ifndef PeriodicSyncManager_h
+#define PeriodicSyncManager_h
#include "bindings/core/v8/ScriptWrappable.h"
#include "platform/heap/Handle.h"
@@ -11,34 +11,35 @@
namespace blink {
-class SyncRegistrationOptions;
+class PeriodicSyncRegistrationOptions;
class ScriptPromise;
class ScriptState;
class ServiceWorkerRegistration;
-class SyncManager final : public GarbageCollected<SyncManager> , public ScriptWrappable {
+class PeriodicSyncManager final : public GarbageCollected<PeriodicSyncManager> , public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- static SyncManager* create(ServiceWorkerRegistration* registration)
+ static PeriodicSyncManager* create(ServiceWorkerRegistration* registration)
{
- return new SyncManager(registration);
+ return new PeriodicSyncManager(registration);
}
- unsigned long minAllowablePeriod();
+ unsigned long minPossiblePeriod();
ScriptPromise registerFunction(ScriptState*);
- ScriptPromise registerFunction(ScriptState*, const SyncRegistrationOptions&);
+ ScriptPromise registerFunction(ScriptState*, const PeriodicSyncRegistrationOptions&);
ScriptPromise getRegistration(blink::ScriptState*, const String&);
ScriptPromise getRegistrations(ScriptState*);
+ ScriptPromise permissionState(ScriptState*);
DECLARE_TRACE();
private:
- explicit SyncManager(ServiceWorkerRegistration*);
+ explicit PeriodicSyncManager(ServiceWorkerRegistration*);
Member<ServiceWorkerRegistration> m_registration;
};
} // namespace blink
-#endif // SyncManager_h
+#endif // PeriodicSyncManager_h
« no previous file with comments | « Source/modules/background_sync/PeriodicSyncEventInit.idl ('k') | Source/modules/background_sync/PeriodicSyncManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698