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

Unified Diff: media/base/cdm_context.h

Issue 1808983002: media: Add MediaDrmBridgeCdmContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 4 years, 9 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
Index: media/base/cdm_context.h
diff --git a/media/base/cdm_context.h b/media/base/cdm_context.h
index 82e088d1200813a25e5008432461442db54324e0..65e25b342caa1111964107916745ec01a30defec 100644
--- a/media/base/cdm_context.h
+++ b/media/base/cdm_context.h
@@ -13,9 +13,14 @@ namespace media {
class Decryptor;
-// An interface representing the context that a media pipeline needs from a
+// An interface representing the context that a media player needs from a
// content decryption module (CDM) to decrypt (and decode) encrypted buffers.
// Only used for implementing SetCdm().
+//
+// There are CDMs that support neither Decryptor nor CDM ID, but use other ways
ddorwin 2016/03/21 21:40:25 We should probably move this to the new subclass a
xhwang 2016/03/22 17:08:32 Done.
+// to connect the CDM with a media player. In this case, the CdmContext
ddorwin 2016/03/21 18:06:09 Is there a reason that the CDM ID couldn't be used
xhwang 2016/03/22 17:08:32 Acknowledged.
+// implementation should add APIs to support such connection. The media player
+// should cast the CdmContext to the correct type to access such APIs.
ddorwin 2016/03/21 18:06:09 It seems strange to provide such recommendations i
xhwang 2016/03/22 17:08:32 Done.
class MEDIA_EXPORT CdmContext {
public:
// Indicates an invalid CDM ID. See GetCdmId() for details.

Powered by Google App Engine
This is Rietveld 408576698