Index: media/cdm/cdm_wrapper.h |
diff --git a/media/cdm/cdm_wrapper.h b/media/cdm/cdm_wrapper.h |
index 20cdaad61344ec7e8ac8d9fb372eb6048571ef6b..01ef2db09e20e950b5218e0bb6bd4ad25c850c9c 100644 |
--- a/media/cdm/cdm_wrapper.h |
+++ b/media/cdm/cdm_wrapper.h |
@@ -58,7 +58,10 @@ class CdmWrapper { |
GetCdmHostFunc get_cdm_host_func, |
void* user_data); |
- virtual ~CdmWrapper(){}; |
+ virtual ~CdmWrapper() {} |
+ |
+ // Returns the version of the CDM interface that the created CDM uses. |
+ virtual int GetVersion() = 0; |
ddorwin
2016/08/22 20:38:15
Get*API*Version or something like that.
(In theory
xhwang
2016/08/23 00:21:43
Done.
|
virtual void Initialize(bool allow_distinctive_identifier, |
bool allow_persistent_state) = 0; |
@@ -137,6 +140,8 @@ class CdmWrapperImpl : public CdmWrapper { |
~CdmWrapperImpl() override { cdm_->Destroy(); } |
+ int GetVersion() override { return CdmInterface::kVersion; } |
+ |
void Initialize(bool allow_distinctive_identifier, |
bool allow_persistent_state) override { |
cdm_->Initialize(allow_distinctive_identifier, allow_persistent_state); |