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

Unified Diff: media/mojo/interfaces/content_decryption_module.mojom

Issue 1227883002: media: Pass CdmConfig in mojo CDM interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase-only Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/mojo/services/media_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | media/mojo/services/media_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698