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 |