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

Side by Side Diff: Source/modules/encryptedmedia/MediaKeySession.idl

Issue 686893004: Remove obsolete ready and error events from MediaKeySession. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2013 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 [ 26 [
27 ActiveDOMObject, 27 ActiveDOMObject,
28 RuntimeEnabled=EncryptedMedia, 28 RuntimeEnabled=EncryptedMedia,
29 GarbageCollected, 29 GarbageCollected,
30 TypeChecking=Interface 30 TypeChecking=Interface
31 ] interface MediaKeySession : EventTarget { 31 ] interface MediaKeySession : EventTarget {
32 // error state
33 readonly attribute MediaKeyError error;
34
35 // session properties 32 // session properties
36 readonly attribute DOMString keySystem;
37 readonly attribute DOMString sessionId; 33 readonly attribute DOMString sessionId;
38 readonly attribute unrestricted double expiration; 34 readonly attribute unrestricted double expiration;
39 [CallWith=ScriptState] readonly attribute Promise closed; 35 [CallWith=ScriptState] readonly attribute Promise closed;
40 36
41 // session initialization 37 // session initialization
42 [CallWith=ScriptState] Promise<void> generateRequest(DOMString initDataType, ArrayBuffer initData); 38 [CallWith=ScriptState] Promise<void> generateRequest(DOMString initDataType, ArrayBuffer initData);
43 [CallWith=ScriptState] Promise<void> generateRequest(DOMString initDataType, ArrayBufferView initData); 39 [CallWith=ScriptState] Promise<void> generateRequest(DOMString initDataType, ArrayBufferView initData);
44 [CallWith=ScriptState] Promise<boolean> load(DOMString sessionId); 40 [CallWith=ScriptState] Promise<boolean> load(DOMString sessionId);
45 41
46 // session operations 42 // session operations
47 [CallWith=ScriptState] Promise<void> update(ArrayBuffer response); 43 [CallWith=ScriptState] Promise<void> update(ArrayBuffer response);
48 [CallWith=ScriptState] Promise<void> update(ArrayBufferView response); 44 [CallWith=ScriptState] Promise<void> update(ArrayBufferView response);
49 [CallWith=ScriptState] Promise<void> close(); 45 [CallWith=ScriptState] Promise<void> close();
50 [CallWith=ScriptState] Promise<void> remove(); 46 [CallWith=ScriptState] Promise<void> remove();
51 }; 47 };
OLDNEW
« no previous file with comments | « Source/modules/encryptedmedia/MediaKeySession.cpp ('k') | Source/platform/exported/WebContentDecryptionModuleSession.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698