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

Unified Diff: modules/encryptedmedia/MediaKeys.idl

Issue 581453002: Dartium Roll 38 roll (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Sync'd w/ r 182210 Created 6 years, 3 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
« no previous file with comments | « modules/encryptedmedia/MediaKeySession.idl ('k') | modules/filesystem/DirectoryEntry.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/encryptedmedia/MediaKeys.idl
diff --git a/modules/encryptedmedia/MediaKeys.idl b/modules/encryptedmedia/MediaKeys.idl
index a17d8d903ca274a8b197fc4664869553d5b0475a..05dded46dae0f42b76153e5fd081176ceddaeb7c 100644
--- a/modules/encryptedmedia/MediaKeys.idl
+++ b/modules/encryptedmedia/MediaKeys.idl
@@ -23,17 +23,21 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+enum SessionType {
+ "temporary",
+ "persistent"
+};
+
[
RuntimeEnabled=EncryptedMedia,
- Constructor(DOMString keySystem),
- ConstructorCallWith=ExecutionContext,
- RaisesException=Constructor,
GarbageCollected,
- TypeChecking=Interface|Nullable
+ TypeChecking=Interface
] interface MediaKeys {
readonly attribute DOMString keySystem;
- [CallWith=ExecutionContext, RaisesException] MediaKeySession createSession(DOMString type, Uint8Array initData);
+ [CallWith=ScriptState] static Promise create(DOMString keySystem);
+ [CallWith=ScriptState] Promise createSession(DOMString initDataType, ArrayBuffer initData, optional SessionType sessionType = "temporary");
+ [CallWith=ScriptState] Promise createSession(DOMString initDataType, ArrayBufferView initData, optional SessionType sessionType = "temporary");
static boolean isTypeSupported(DOMString keySystem, optional DOMString contentType = null);
};
« no previous file with comments | « modules/encryptedmedia/MediaKeySession.idl ('k') | modules/filesystem/DirectoryEntry.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698