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

Unified Diff: Source/modules/background_sync/SyncManager.idl

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
« no previous file with comments | « Source/modules/background_sync/SyncManager.cpp ('k') | Source/modules/background_sync/SyncRegistration.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
};
« no previous file with comments | « Source/modules/background_sync/SyncManager.cpp ('k') | Source/modules/background_sync/SyncRegistration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698