Chromium Code Reviews| 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. |