Index: Source/modules/background_sync/SyncRegistration.idl |
diff --git a/Source/modules/background_sync/SyncRegistration.idl b/Source/modules/background_sync/SyncRegistration.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c452a4a9bd0d0985de7e6275c42faea8e2c5d08b |
--- /dev/null |
+++ b/Source/modules/background_sync/SyncRegistration.idl |
@@ -0,0 +1,18 @@ |
+// 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, |
+] interface SyncRegistration { |
+ readonly attribute DOMString id; |
+ readonly attribute unsigned long minDelay; |
+ readonly attribute unsigned long maxDelay; |
+ readonly attribute unsigned long minPeriod; |
+ readonly attribute SyncNetworkType minRequiredNetwork; |
+ readonly attribute boolean allowOnBattery; |
+ readonly attribute boolean idleRequired; |
+ [CallWith=ScriptState] Promise<boolean> unregister(); |
+}; |