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 10 matching lines...) Expand all Loading... |
21 | 21 |
22 // Transport layer of media::CdmKeyInformation::KeyStatus (see | 22 // Transport layer of media::CdmKeyInformation::KeyStatus (see |
23 // media/base/cdm_key_information.h). This is used for indicating the status | 23 // media/base/cdm_key_information.h). This is used for indicating the status |
24 // of a specific key ID. | 24 // of a specific key ID. |
25 enum CdmKeyStatus { | 25 enum CdmKeyStatus { |
26 USABLE, | 26 USABLE, |
27 INTERNAL_ERROR, | 27 INTERNAL_ERROR, |
28 EXPIRED, | 28 EXPIRED, |
29 OUTPUT_RESTRICTED, | 29 OUTPUT_RESTRICTED, |
30 OUTPUT_DOWNSCALED, | 30 OUTPUT_DOWNSCALED, |
31 KEY_STATUS_PENDING | 31 KEY_STATUS_PENDING, |
| 32 RELEASED |
32 }; | 33 }; |
33 | 34 |
34 // Transport layer of media::CdmConfig (see media/base/cdm_config.h). | 35 // Transport layer of media::CdmConfig (see media/base/cdm_config.h). |
35 struct CdmConfig { | 36 struct CdmConfig { |
36 bool allow_distinctive_identifier; | 37 bool allow_distinctive_identifier; |
37 bool allow_persistent_state; | 38 bool allow_persistent_state; |
38 bool use_hw_secure_codecs; | 39 bool use_hw_secure_codecs; |
39 }; | 40 }; |
40 | 41 |
41 // Transport layer of media::CdmPromise (see media/base/cdm_promise.h). | 42 // Transport layer of media::CdmPromise (see media/base/cdm_promise.h). |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 137 |
137 OnSessionClosed(string session_id); | 138 OnSessionClosed(string session_id); |
138 | 139 |
139 OnSessionKeysChange(string session_id, bool has_additional_usable_key, | 140 OnSessionKeysChange(string session_id, bool has_additional_usable_key, |
140 array<CdmKeyInformation> key_information); | 141 array<CdmKeyInformation> key_information); |
141 | 142 |
142 // Provide session expiration update for |session_id|. | 143 // Provide session expiration update for |session_id|. |
143 // |new_expiry_time_sec| is the number of seconds since epoch (Jan 1, 1970). | 144 // |new_expiry_time_sec| is the number of seconds since epoch (Jan 1, 1970). |
144 OnSessionExpirationUpdate(string session_id, double new_expiry_time_sec); | 145 OnSessionExpirationUpdate(string session_id, double new_expiry_time_sec); |
145 }; | 146 }; |
OLD | NEW |