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

Unified Diff: Source/modules/background_sync/SyncRegistration.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
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();
+};
« no previous file with comments | « Source/modules/background_sync/SyncRegistration.cpp ('k') | Source/modules/background_sync/SyncRegistrationOptions.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698