| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module media.mojom; | 5 module media.mojom; |
| 6 | 6 |
| 7 import "media/mojo/interfaces/decryptor.mojom"; | 7 import "media/mojo/interfaces/decryptor.mojom"; |
| 8 import "url/mojo/url.mojom"; | 8 import "url/mojo/url.mojom"; |
| 9 | 9 |
| 10 // Transport layer of media::MediaKeys::Exception (see media/base/media_keys.h). | 10 // Transport layer of media::MediaKeys::Exception (see media/base/media_keys.h). |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 CloseSession(string session_id) => (CdmPromiseResult result); | 125 CloseSession(string session_id) => (CdmPromiseResult result); |
| 126 | 126 |
| 127 // Removes stored session data associated with the active session specified by | 127 // Removes stored session data associated with the active session specified by |
| 128 // |session_id|. | 128 // |session_id|. |
| 129 RemoveSession(string session_id) => (CdmPromiseResult result); | 129 RemoveSession(string session_id) => (CdmPromiseResult result); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 // Session callbacks. See media/base/media_keys.h for details. | 132 // Session callbacks. See media/base/media_keys.h for details. |
| 133 interface ContentDecryptionModuleClient { | 133 interface ContentDecryptionModuleClient { |
| 134 OnSessionMessage(string session_id, CdmMessageType message_type, | 134 OnSessionMessage(string session_id, CdmMessageType message_type, |
| 135 array<uint8> message, url.mojom.Url legacy_destination_url); | 135 array<uint8> message); |
| 136 | 136 |
| 137 OnSessionClosed(string session_id); | 137 OnSessionClosed(string session_id); |
| 138 | 138 |
| 139 OnLegacySessionError(string session_id, CdmException exception, | |
| 140 uint32 system_code, string error_message); | |
| 141 | |
| 142 OnSessionKeysChange(string session_id, bool has_additional_usable_key, | 139 OnSessionKeysChange(string session_id, bool has_additional_usable_key, |
| 143 array<CdmKeyInformation> key_information); | 140 array<CdmKeyInformation> key_information); |
| 144 | 141 |
| 145 // Provide session expiration update for |session_id|. | 142 // Provide session expiration update for |session_id|. |
| 146 // |new_expiry_time_sec| is the number of seconds since epoch (Jan 1, 1970). | 143 // |new_expiry_time_sec| is the number of seconds since epoch (Jan 1, 1970). |
| 147 OnSessionExpirationUpdate(string session_id, double new_expiry_time_sec); | 144 OnSessionExpirationUpdate(string session_id, double new_expiry_time_sec); |
| 148 }; | 145 }; |
| OLD | NEW |