Index: media/mojo/interfaces/content_decryption_module.mojom |
diff --git a/media/mojo/interfaces/content_decryption_module.mojom b/media/mojo/interfaces/content_decryption_module.mojom |
index a620196206ec2b2fda3409f4244fef84a6ef6679..3e217641ab2c7e0efd21914f131fad1ac7077658 100644 |
--- a/media/mojo/interfaces/content_decryption_module.mojom |
+++ b/media/mojo/interfaces/content_decryption_module.mojom |
@@ -29,6 +29,13 @@ enum CdmKeyStatus { |
OUTPUT_NOT_ALLOWED |
}; |
+// Transport layer of media::CdmConfig (see media/base/cdm_config.h). |
+struct CdmConfig { |
+ bool allow_distinctive_identifier; |
+ bool allow_persistent_state; |
+ bool use_hw_secure_codecs; |
+}; |
+ |
// Transport layer of media::CdmPromise (see media/base/cdm_promise.h). |
// - When |success| is true, the promise is resolved and all other fields should |
// be ignored. |
@@ -79,10 +86,10 @@ interface ContentDecryptionModule { |
SetClient(ContentDecryptionModuleClient client); |
// Initializes the CDM. |cdm_id| will later be used to locate the CDM at the |
- // remote side. If initialization failed (e.g. |key_system| is not supported), |
- // |result.success| will be false. |
- Initialize(string key_system, string security_origin, int32 cdm_id) |
- => (CdmPromiseResult result); |
+ // remote side. If initialization failed (e.g. |key_system| or |cdm_config| is |
+ // not supported), |result.success| will be false. |
+ Initialize(string key_system, string security_origin, CdmConfig cdm_config, |
+ int32 cdm_id) => (CdmPromiseResult result); |
// Provides a server certificate to be used to encrypt messages to the |
// license server. |