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

Unified Diff: media/base/media_keys.h

Issue 17381007: EME: ProxyDecryptor creates MediaKeys instead of Decryptor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 14789e23c1880211bcb0e9e453eaec1dfc07eb89..a0720f42b747548569d3caa40f657cdf367a2de1 100644
--- a/media/base/media_keys.h
+++ b/media/base/media_keys.h
@@ -14,6 +14,8 @@
namespace media {
+class Decryptor;
+
// Performs media key operations.
//
// All key operations are called on the renderer thread. Therefore, these calls
@@ -59,6 +61,11 @@ class MEDIA_EXPORT MediaKeys {
virtual void CancelKeyRequest(const std::string& key_system,
const std::string& session_id) = 0;
+ // Gets the Decryptor object associated with the MediaKeys. Returns NULL if
+ // no Decryptor object is associated. The returned object is only guaranteed
+ // to be valid during the MediaKeys' lifetime.
+ virtual Decryptor* GetDecryptor();
+
private:
DISALLOW_COPY_AND_ASSIGN(MediaKeys);
};

Powered by Google App Engine
This is Rietveld 408576698