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

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

Issue 1096503002: [Background Sync] Converting Blink code to the MVP API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Unregister method requires the sync registration tag Created 5 years, 8 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/PeriodicSyncRegistrationOptions.idl
diff --git a/Source/modules/background_sync/ServiceWorkerRegistrationSync.idl b/Source/modules/background_sync/PeriodicSyncRegistrationOptions.idl
similarity index 51%
copy from Source/modules/background_sync/ServiceWorkerRegistrationSync.idl
copy to Source/modules/background_sync/PeriodicSyncRegistrationOptions.idl
index 7391d985d29da763bac9afc09adcb4ecf2987cb5..97c0a8233df25f30be0f50b0e1c7213a3dee5f35 100644
--- a/Source/modules/background_sync/ServiceWorkerRegistrationSync.idl
+++ b/Source/modules/background_sync/PeriodicSyncRegistrationOptions.idl
@@ -3,8 +3,10 @@
// found in the LICENSE file.
[
- Exposed=(Window, ServiceWorker),
RuntimeEnabled=BackgroundSync,
-] partial interface ServiceWorkerRegistration {
- [MeasureAs=BackgroundSync] readonly attribute SyncManager syncManager;
+] dictionary PeriodicSyncRegistrationOptions {
+ DOMString tag;
+ unsigned long minPeriod = 0;
+ SyncNetworkState networkState = "network-online";
+ SyncPowerState powerState = "auto";
};

Powered by Google App Engine
This is Rietveld 408576698