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

Unified Diff: webkit/renderer/media/crypto/proxy_decryptor.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
« no previous file with comments | « webkit/renderer/media/crypto/ppapi_decryptor.cc ('k') | webkit/renderer/media/crypto/proxy_decryptor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/renderer/media/crypto/proxy_decryptor.h
diff --git a/webkit/renderer/media/crypto/proxy_decryptor.h b/webkit/renderer/media/crypto/proxy_decryptor.h
index 629f76fe2eeac750620f6eeb91a8d4b43d97ffac..037da6e8397070b6040df640936fde228589f616 100644
--- a/webkit/renderer/media/crypto/proxy_decryptor.h
+++ b/webkit/renderer/media/crypto/proxy_decryptor.h
@@ -54,10 +54,11 @@ class ProxyDecryptor : public media::MediaKeys {
const std::string& session_id) OVERRIDE;
private:
- // Helper functions to create decryptors to handle the given |key_system|.
- scoped_ptr<media::Decryptor> CreateDecryptor(const std::string& key_system);
+ // Helper functions to create MediaKeys to handle the given |key_system|.
+ scoped_ptr<media::MediaKeys> CreateMediaKeys(const std::string& key_system);
+
#if defined(ENABLE_PEPPER_CDMS)
- scoped_ptr<media::Decryptor> CreatePpapiDecryptor(
+ scoped_ptr<media::MediaKeys> CreatePpapiDecryptor(
ddorwin 2013/06/19 00:14:35 "Decryptor" is odd in the name now. Should we repl
xhwang 2013/06/19 04:28:30 Do we also want to rename AesDecryptor to AesCdm?
const std::string& key_system);
// Callback for cleaning up a Pepper CDM.
void DestroyHelperPlugin();
@@ -94,9 +95,9 @@ class ProxyDecryptor : public media::MediaKeys {
media::DecryptorReadyCB decryptor_ready_cb_;
- // The real decryptor that does decryption for the ProxyDecryptor.
+ // The real MediaKeys that manages key operations for the ProxyDecryptor.
// This pointer is protected by the |lock_|.
- scoped_ptr<media::Decryptor> decryptor_;
+ scoped_ptr<media::MediaKeys> media_keys_;
base::WeakPtrFactory<ProxyDecryptor> weak_ptr_factory_;
« no previous file with comments | « webkit/renderer/media/crypto/ppapi_decryptor.cc ('k') | webkit/renderer/media/crypto/proxy_decryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698