| 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.interfaces; | 5 module media.interfaces; |
| 6 | 6 |
| 7 import "media/mojo/interfaces/decryptor.mojom"; | 7 import "media/mojo/interfaces/decryptor.mojom"; |
| 8 | 8 |
| 9 // Transport layer of media::MediaKeys::Exception (see media/base/media_keys.h). | 9 // Transport layer of media::MediaKeys::Exception (see media/base/media_keys.h). |
| 10 // This is used for ContentDecryptionModule (CDM) promise rejections. | 10 // This is used for ContentDecryptionModule (CDM) promise rejections. |
| 11 // Note: This can also be used for session errors in prefixed API. | |
| 12 enum CdmException { | 11 enum CdmException { |
| 13 NOT_SUPPORTED_ERROR, | 12 NOT_SUPPORTED_ERROR, |
| 14 INVALID_STATE_ERROR, | 13 INVALID_STATE_ERROR, |
| 15 INVALID_ACCESS_ERROR, | 14 INVALID_ACCESS_ERROR, |
| 16 QUOTA_EXCEEDED_ERROR, | 15 QUOTA_EXCEEDED_ERROR, |
| 17 UNKNOWN_ERROR, | 16 UNKNOWN_ERROR, |
| 18 CLIENT_ERROR, | 17 CLIENT_ERROR, |
| 19 OUTPUT_ERROR | 18 OUTPUT_ERROR |
| 20 }; | 19 }; |
| 21 | 20 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 OnLegacySessionError(string session_id, CdmException exception, | 138 OnLegacySessionError(string session_id, CdmException exception, |
| 140 uint32 system_code, string error_message); | 139 uint32 system_code, string error_message); |
| 141 | 140 |
| 142 OnSessionKeysChange(string session_id, bool has_additional_usable_key, | 141 OnSessionKeysChange(string session_id, bool has_additional_usable_key, |
| 143 array<CdmKeyInformation> key_information); | 142 array<CdmKeyInformation> key_information); |
| 144 | 143 |
| 145 // Provide session expiration update for |session_id|. | 144 // Provide session expiration update for |session_id|. |
| 146 // |new_expiry_time_sec| is the number of seconds since epoch (Jan 1, 1970). | 145 // |new_expiry_time_sec| is the number of seconds since epoch (Jan 1, 1970). |
| 147 OnSessionExpirationUpdate(string session_id, double new_expiry_time_sec); | 146 OnSessionExpirationUpdate(string session_id, double new_expiry_time_sec); |
| 148 }; | 147 }; |
| OLD | NEW |