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

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: rebase again 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
« no previous file with comments | « media/base/decryptor.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 51405545427ecc6d1afd057fbf6f731ec0070c90..58c876cb32d6856cffe8f18bf9c6ad36eacefd94 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
@@ -56,6 +58,11 @@ class MEDIA_EXPORT MediaKeys {
// Cancels the key request specified by |session_id|.
virtual void CancelKeyRequest(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);
};
« no previous file with comments | « media/base/decryptor.h ('k') | media/base/media_keys.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698