Index: Source/modules/background_sync/SyncRegistrationOptions.idl |
diff --git a/Source/modules/background_sync/SyncRegistrationOptions.idl b/Source/modules/background_sync/SyncRegistrationOptions.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0939ee07964495e2f73729c836f42395086d2dbb |
--- /dev/null |
+++ b/Source/modules/background_sync/SyncRegistrationOptions.idl |
@@ -0,0 +1,22 @@ |
+// 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. |
+ |
+enum SyncNetworkType { |
+ "network-any", |
+ "network-offline", |
+ "network-online", |
+ "network-non-mobile", |
+}; |
+ |
+[ |
+ RuntimeEnabled=BackgroundSync, |
+] dictionary SyncRegistrationOptions { |
+ DOMString id; |
+ unsigned long minDelay = 0; |
+ unsigned long maxDelay = 0; |
+ unsigned long minPeriod = 0; |
+ SyncNetworkType minRequiredNetwork = "network-online"; |
+ boolean allowOnBattery = true; |
+ boolean idleRequired = false; |
+}; |