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

Unified Diff: third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.idl

Issue 1237343004: Convert MediaKeyStatusMap to iterable<BufferSource,MediaKeyStatus> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: return any Created 4 years, 6 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: third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.idl
diff --git a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.idl b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.idl
index 066dd729c56823025cb1e3482d60b097177c249e..f6f363fb09ed614e63aedbbfb92a13050c648b5b 100644
--- a/third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.idl
+++ b/third_party/WebKit/Source/modules/encryptedmedia/MediaKeyStatusMap.idl
@@ -14,8 +14,9 @@ enum MediaKeyStatus {
"internal-error"
};
-[
-] interface MediaKeyStatusMap {
+interface MediaKeyStatusMap {
+ iterable <BufferSource, MediaKeyStatus>;
ddorwin 2016/06/14 20:56:05 Is this not readonly like the maplike was? The spe
jrummell 2016/06/14 22:24:21 According to https://heycam.github.io/webidl/#idl-
ddorwin 2016/06/14 22:56:40 Acknowledged. Thanks for checking.
readonly attribute unsigned long size;
- readonly maplike <BufferSource, MediaKeyStatus>;
+ boolean has(BufferSource keyId);
+ [CallWith=ScriptState] any get(BufferSource keyId);
};

Powered by Google App Engine
This is Rietveld 408576698