Index: Source/modules/background_sync/SyncManager.idl |
diff --git a/Source/modules/background_sync/SyncManager.idl b/Source/modules/background_sync/SyncManager.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..71b1b9f758c4b818dca659680988a7280ef2f073 |
--- /dev/null |
+++ b/Source/modules/background_sync/SyncManager.idl |
@@ -0,0 +1,15 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+[ |
+ 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; |
+}; |