Index: media/base/media_keys.h |
diff --git a/media/base/media_keys.h b/media/base/media_keys.h |
index a6ef64ceee0ea8d62a4ad8e29b1401351c766963..07ecd9189cb889aa8763b3c5c2ea4312c889c4aa 100644 |
--- a/media/base/media_keys.h |
+++ b/media/base/media_keys.h |
@@ -38,6 +38,7 @@ class MEDIA_EXPORT MediaKeys { |
}; |
const static uint32 kInvalidSessionId = 0; |
+ const static int kInvalidCdmId = -1; |
MediaKeys(); |
virtual ~MediaKeys(); |
@@ -72,6 +73,10 @@ class MEDIA_EXPORT MediaKeys { |
// to be valid during the MediaKeys' lifetime. |
virtual Decryptor* GetDecryptor(); |
+ // Gets the CDM ID associated with the MediaKeys. Returns kInvalidCdmId if no |
+ // CDM ID is associated. |
+ virtual int GetCdmId(); |
ddorwin
2014/03/11 04:06:33
Too bad this has to be on the main interface. :(
ddorwin
2014/03/11 18:05:14
As discussed, I think we can avoid this.
xhwang
2014/03/12 01:07:52
Removed.
|
+ |
private: |
DISALLOW_COPY_AND_ASSIGN(MediaKeys); |
}; |