| 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 21 matching lines...) Expand all Loading... |
| 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 readonly attribute unrestricted double expiration; | 38 readonly attribute unrestricted double expiration; |
| 39 [CallWith=ScriptState] readonly attribute Promise closed; | 39 [CallWith=ScriptState] readonly attribute Promise closed; |
| 40 | 40 |
| 41 // session initialization | 41 // session initialization |
| 42 [CallWith=ScriptState] Promise generateRequest(DOMString initDataType, Array
Buffer initData); | 42 [CallWith=ScriptState] Promise<void> generateRequest(DOMString initDataType,
ArrayBuffer initData); |
| 43 [CallWith=ScriptState] Promise generateRequest(DOMString initDataType, Array
BufferView initData); | 43 [CallWith=ScriptState] Promise<void> generateRequest(DOMString initDataType,
ArrayBufferView initData); |
| 44 [CallWith=ScriptState] Promise load(DOMString sessionId); | 44 [CallWith=ScriptState] Promise<boolean> load(DOMString sessionId); |
| 45 | 45 |
| 46 // session operations | 46 // session operations |
| 47 [CallWith=ScriptState] Promise update(ArrayBuffer response); | 47 [CallWith=ScriptState] Promise<void> update(ArrayBuffer response); |
| 48 [CallWith=ScriptState] Promise update(ArrayBufferView response); | 48 [CallWith=ScriptState] Promise<void> update(ArrayBufferView response); |
| 49 [CallWith=ScriptState] Promise close(); | 49 [CallWith=ScriptState] Promise<void> close(); |
| 50 [CallWith=ScriptState] Promise remove(); | 50 [CallWith=ScriptState] Promise<void> remove(); |
| 51 }; | 51 }; |
| OLD | NEW |