| Index: Source/modules/background_sync/SyncManager.idl
|
| diff --git a/Source/modules/background_sync/SyncManager.idl b/Source/modules/background_sync/SyncManager.idl
|
| index 71b1b9f758c4b818dca659680988a7280ef2f073..a8a996271f5ef079979f3b28e3d552e35a3bdbc6 100644
|
| --- a/Source/modules/background_sync/SyncManager.idl
|
| +++ b/Source/modules/background_sync/SyncManager.idl
|
| @@ -2,14 +2,20 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +enum SyncPermissionState {
|
| + "default",
|
| + "denied",
|
| + "granted"
|
| +};
|
| +
|
| [
|
| Exposed=(Window,ServiceWorker),
|
| GarbageCollected,
|
| RuntimeEnabled=BackgroundSync,
|
| TypeChecking=Interface,
|
| ] interface SyncManager {
|
| - [CallWith=ScriptState,ImplementedAs=registerFunction] Promise<SyncRegistration> register(optional SyncRegistrationOptions options);
|
| - [CallWith=ScriptState] Promise<SyncRegistration> getRegistration(DOMString id);
|
| - [CallWith=ScriptState] Promise<sequence<SyncRegistration>> getRegistrations();
|
| - readonly attribute unsigned long minAllowablePeriod;
|
| + [CallWith=ScriptState,ImplementedAs=registerFunction] Promise<SyncRegistration> register([RuntimeEnabled=BackgroundSyncV2] optional SyncRegistrationOptions options);
|
| + [RuntimeEnabled=BackgroundSyncV2, CallWith=ScriptState] Promise<SyncRegistration> getRegistration(DOMString tag);
|
| + [RuntimeEnabled=BackgroundSyncV2, CallWith=ScriptState] Promise<sequence<SyncRegistration>> getRegistrations();
|
| + [RuntimeEnabled=BackgroundSyncV2, CallWith=ScriptState] Promise<SyncPermissionState> permissionState();
|
| };
|
|
|