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

Unified Diff: media/base/media_keys.h

Issue 193523002: Encrypted Media: Implement IPC based SetCdm(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/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);
};

Powered by Google App Engine
This is Rietveld 408576698