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

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: Update failing layout test Created 5 years, 10 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/SyncRegistrationOptions.idl
diff --git a/Source/modules/encryptedmedia/MediaKeyStatusMap.idl b/Source/modules/background_sync/SyncRegistrationOptions.idl
similarity index 35%
copy from Source/modules/encryptedmedia/MediaKeyStatusMap.idl
copy to Source/modules/background_sync/SyncRegistrationOptions.idl
index f0775839f6bfcf65a1909be51f43114cb5a642c5..795b2dd1f838e80a0b4a26e76f00e211dd909ff5 100644
--- a/Source/modules/encryptedmedia/MediaKeyStatusMap.idl
+++ b/Source/modules/background_sync/SyncRegistrationOptions.idl
@@ -2,18 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// https://w3c.github.io/encrypted-media/#idl-def-MediaKeyStatusMap
-
-enum MediaKeyStatus {
- "usable",
- "expired",
- "output-not-allowed",
- "internal-error"
+enum SyncNetworkType {
+ "network-any",
+ "network-offline",
+ "network-online",
+ "network-non-mobile",
};
[
- GarbageCollected,
-] interface MediaKeyStatusMap {
- readonly attribute unsigned long size;
- readonly maplike <BufferSource, MediaKeyStatus>;
+ RuntimeEnabled=BackgroundSync,
+] dictionary SyncRegistrationOptions {
+ SyncNetworkType minRequiredNetwork = "network-online";
+ boolean allowOnBattery = true;
+ boolean idleRequired = false;
};

Powered by Google App Engine
This is Rietveld 408576698