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

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

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 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 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;
34 readonly attribute unrestricted double expiration;
38 [CallWith=ScriptState] readonly attribute Promise closed; 35 [CallWith=ScriptState] readonly attribute Promise closed;
36 readonly attribute MediaKeyStatusMap keyStatuses;
39 37
40 // session initialization 38 // session initialization
41 [CallWith=ScriptState] Promise generateRequest(DOMString initDataType, Array Buffer initData); 39 [CallWith=ScriptState] Promise<void> generateRequest(DOMString initDataType, BufferSource initData);
42 [CallWith=ScriptState] Promise generateRequest(DOMString initDataType, Array BufferView initData); 40 [CallWith=ScriptState] Promise<boolean> load(DOMString sessionId);
43 41
44 // session operations 42 // session operations
45 [CallWith=ScriptState] Promise update(ArrayBuffer response); 43 [CallWith=ScriptState] Promise<void> update(BufferSource response);
46 [CallWith=ScriptState] Promise update(ArrayBufferView response); 44 [CallWith=ScriptState] Promise<void> close();
47 [CallWith=ScriptState] Promise release(); 45 [CallWith=ScriptState] Promise<void> remove();
48 }; 46 };
OLDNEW
« no previous file with comments | « modules/encryptedmedia/MediaKeyNeededEvent.idl ('k') | modules/encryptedmedia/MediaKeyStatusMap.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698