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

Unified Diff: content/renderer/media/crypto/proxy_decryptor.cc

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: content/renderer/media/crypto/proxy_decryptor.cc
diff --git a/content/renderer/media/crypto/proxy_decryptor.cc b/content/renderer/media/crypto/proxy_decryptor.cc
index 10408105c07d24be75de3fd37eb5a64aa7dd49a3..a941c4d575512c987573e13c403e8536cec21b72 100644
--- a/content/renderer/media/crypto/proxy_decryptor.cc
+++ b/content/renderer/media/crypto/proxy_decryptor.cc
@@ -75,6 +75,11 @@ media::Decryptor* ProxyDecryptor::GetDecryptor() {
return media_keys_ ? media_keys_->GetDecryptor() : NULL;
}
+int ProxyDecryptor::GetCdmId() {
+ return media_keys_ ? media_keys_->GetCdmId()
+ : media::MediaKeys::kInvalidCdmId;
+}
+
bool ProxyDecryptor::InitializeCDM(const std::string& key_system,
const GURL& frame_url) {
DVLOG(1) << "InitializeCDM: key_system = " << key_system;

Powered by Google App Engine
This is Rietveld 408576698