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

Unified Diff: Source/modules/encryptedmedia/MediaKeySession.idl

Issue 694773004: Add promise type to EME idl files (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | Source/modules/encryptedmedia/MediaKeySystemAccess.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/encryptedmedia/MediaKeySession.idl
diff --git a/Source/modules/encryptedmedia/MediaKeySession.idl b/Source/modules/encryptedmedia/MediaKeySession.idl
index d81309d6d6085adb4521cc6f3a311a69d7d2b53a..c0c5035f1d21aa75b964018ff5615221c68e9131 100644
--- a/Source/modules/encryptedmedia/MediaKeySession.idl
+++ b/Source/modules/encryptedmedia/MediaKeySession.idl
@@ -39,13 +39,13 @@
[CallWith=ScriptState] readonly attribute Promise closed;
// session initialization
- [CallWith=ScriptState] Promise generateRequest(DOMString initDataType, ArrayBuffer initData);
- [CallWith=ScriptState] Promise generateRequest(DOMString initDataType, ArrayBufferView initData);
- [CallWith=ScriptState] Promise load(DOMString sessionId);
+ [CallWith=ScriptState] Promise<void> generateRequest(DOMString initDataType, ArrayBuffer initData);
+ [CallWith=ScriptState] Promise<void> generateRequest(DOMString initDataType, ArrayBufferView initData);
+ [CallWith=ScriptState] Promise<boolean> load(DOMString sessionId);
// session operations
- [CallWith=ScriptState] Promise update(ArrayBuffer response);
- [CallWith=ScriptState] Promise update(ArrayBufferView response);
- [CallWith=ScriptState] Promise close();
- [CallWith=ScriptState] Promise remove();
+ [CallWith=ScriptState] Promise<void> update(ArrayBuffer response);
+ [CallWith=ScriptState] Promise<void> update(ArrayBufferView response);
+ [CallWith=ScriptState] Promise<void> close();
+ [CallWith=ScriptState] Promise<void> remove();
};
« no previous file with comments | « no previous file | Source/modules/encryptedmedia/MediaKeySystemAccess.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698