Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(451)

Side by Side Diff: media/mojo/interfaces/content_decryption_module.mojom

Issue 2280743002: Add CdmKeyStatus::RELEASED to mojo (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
xhwang 2016/08/25 19:11:40 Please also update the type converter: https://cs
yucliu1 2016/08/25 19:21:23 Done.
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
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 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698