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

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

Issue 840473002: media: Support creation and SetCdm() for mojo based CDM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only; compiles but needs more polish... Created 5 years, 7 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 | « media/mojo/interfaces/content_decryption_module.mojom ('k') | media/mojo/interfaces/media_renderer.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/interfaces/content_decryption_module_factory.mojom
diff --git a/media/mojo/interfaces/content_decryption_module_factory.mojom b/media/mojo/interfaces/content_decryption_module_factory.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..6464b75322ecb49c6b2c7f22f7a0f56b8bebd3c4
--- /dev/null
+++ b/media/mojo/interfaces/content_decryption_module_factory.mojom
@@ -0,0 +1,20 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module mojo;
+
+import "media/mojo/interfaces/content_decryption_module.mojom";
+
+// An interface to request a ContentDecryptionModule service for |key_system|
+// and |security_origin|. The |cdm| can be null if the requested service is not
+// supported (e.g. unsupported key system).
+// |cdm_id| is a client generated ID that will be used by other services to get
+// access to the CDM. See SetCdm() method in the MediaRenderer interface for
+// details.
+interface ContentDecryptionModuleFactory {
+ Create(string key_system,
+ string security_origin,
+ int32 cdm_id,
+ ContentDecryptionModule&? cdm);
+};
« no previous file with comments | « media/mojo/interfaces/content_decryption_module.mojom ('k') | media/mojo/interfaces/media_renderer.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698