| OLD | NEW |
| 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 19 matching lines...) Expand all Loading... |
| 30 TypeChecking=Interface | 30 TypeChecking=Interface |
| 31 ] interface MediaKeySession : EventTarget { | 31 ] interface MediaKeySession : EventTarget { |
| 32 // error state | 32 // error state |
| 33 readonly attribute MediaKeyError error; | 33 readonly attribute MediaKeyError error; |
| 34 | 34 |
| 35 // session properties | 35 // session properties |
| 36 readonly attribute DOMString keySystem; | 36 readonly attribute DOMString keySystem; |
| 37 readonly attribute DOMString sessionId; | 37 readonly attribute DOMString sessionId; |
| 38 [CallWith=ScriptState] readonly attribute Promise closed; | 38 [CallWith=ScriptState] readonly attribute Promise closed; |
| 39 | 39 |
| 40 // session initialization |
| 41 [CallWith=ScriptState] Promise generateRequest(DOMString initDataType, Array
Buffer initData); |
| 42 [CallWith=ScriptState] Promise generateRequest(DOMString initDataType, Array
BufferView initData); |
| 43 |
| 40 // session operations | 44 // session operations |
| 41 [CallWith=ScriptState] Promise update(ArrayBuffer response); | 45 [CallWith=ScriptState] Promise update(ArrayBuffer response); |
| 42 [CallWith=ScriptState] Promise update(ArrayBufferView response); | 46 [CallWith=ScriptState] Promise update(ArrayBufferView response); |
| 43 [CallWith=ScriptState] Promise release(); | 47 [CallWith=ScriptState] Promise release(); |
| 44 }; | 48 }; |
| OLD | NEW |