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

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

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 | « content/renderer/media/crypto/proxy_decryptor.h ('k') | content/renderer/media/crypto/proxy_media_keys.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 719dd8590004ce8aa83487444283dd6a74d89ceb..44a30fd1f84c11f6c7a1cd0050add949a630a587 100644
--- a/content/renderer/media/crypto/proxy_decryptor.cc
+++ b/content/renderer/media/crypto/proxy_decryptor.cc
@@ -15,10 +15,6 @@
#include "media/cdm/json_web_key.h"
#include "media/cdm/key_system_names.h"
-#if defined(ENABLE_BROWSER_CDMS)
-#include "content/renderer/media/crypto/renderer_cdm_manager.h"
-#endif // defined(ENABLE_BROWSER_CDMS)
-
namespace content {
// Special system code to signal a closed persistent session in a SessionError()
@@ -33,9 +29,6 @@ ProxyDecryptor::ProxyDecryptor(const KeyAddedCB& key_added_cb,
key_error_cb_(key_error_cb),
key_message_cb_(key_message_cb),
is_clear_key_(false),
-#if defined(ENABLE_BROWSER_CDMS)
- cdm_id_(RendererCdmManager::kInvalidCdmId),
-#endif // defined(ENABLE_PEPPER_CDMS)
weak_ptr_factory_(this) {
DCHECK(!key_added_cb_.is_null());
DCHECK(!key_error_cb_.is_null());
@@ -53,7 +46,7 @@ media::Decryptor* ProxyDecryptor::GetDecryptor() {
#if defined(ENABLE_BROWSER_CDMS)
int ProxyDecryptor::GetCdmId() {
- return cdm_id_;
+ return media_keys_->GetCdmId();
}
#endif
@@ -214,9 +207,6 @@ scoped_ptr<media::MediaKeys> ProxyDecryptor::CreateMediaKeys(
return cdm_factory->Create(
key_system,
security_origin,
-#if defined(ENABLE_BROWSER_CDMS)
- &cdm_id_,
-#endif
base::Bind(&ProxyDecryptor::OnSessionMessage, weak_this),
base::Bind(&ProxyDecryptor::OnSessionReady, weak_this),
base::Bind(&ProxyDecryptor::OnSessionClosed, weak_this),
« no previous file with comments | « content/renderer/media/crypto/proxy_decryptor.h ('k') | content/renderer/media/crypto/proxy_media_keys.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698