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

Unified Diff: media/base/media_keys.h

Issue 665563002: Add MediaKeys::GetCdmId(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Make GetCdmId() pure virtual. Created 6 years, 2 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
« no previous file with comments | « media/base/cdm_factory.h ('k') | media/base/media_keys.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_keys.h
diff --git a/media/base/media_keys.h b/media/base/media_keys.h
index ac4f8a4a24f8735d68030543987331154b8a98e4..022f6bcce29078d5ab3142dc0eaa9074b900906a 100644
--- a/media/base/media_keys.h
+++ b/media/base/media_keys.h
@@ -71,7 +71,10 @@ class MEDIA_EXPORT MediaKeys {
PERSISTENT_SESSION
};
- const static uint32 kInvalidSessionId = 0;
+ static const uint32 kInvalidSessionId = 0;
+#if defined(ENABLE_BROWSER_CDMS)
+ static const int kInvalidCdmId = 0;
+#endif
MediaKeys();
virtual ~MediaKeys();
@@ -123,6 +126,12 @@ class MEDIA_EXPORT MediaKeys {
// to be valid during the MediaKeys' lifetime.
virtual Decryptor* GetDecryptor();
+#if defined(ENABLE_BROWSER_CDMS)
+ // Returns the CDM ID associated with |this|. May be kInvalidCdmId if no CDM
+ // ID is associated.
+ virtual int GetCdmId() const = 0;
+#endif
+
private:
DISALLOW_COPY_AND_ASSIGN(MediaKeys);
};
« no previous file with comments | « media/base/cdm_factory.h ('k') | media/base/media_keys.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698