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

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

Issue 963683002: Add IDL and initial Blink API for Background Sync (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add missing serviceWorkerRegistration.syncManager to interface tests Created 5 years, 9 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/SyncRegistration.idl ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+};
« no previous file with comments | « Source/modules/background_sync/SyncRegistration.idl ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698