summaryrefslogtreecommitdiffstats
path: root/content/renderer/pepper/content_decryptor_delegate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/renderer/pepper/content_decryptor_delegate.cc')
-rw-r--r--content/renderer/pepper/content_decryptor_delegate.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/content/renderer/pepper/content_decryptor_delegate.cc b/content/renderer/pepper/content_decryptor_delegate.cc
index 94d8928..ce91037 100644
--- a/content/renderer/pepper/content_decryptor_delegate.cc
+++ b/content/renderer/pepper/content_decryptor_delegate.cc
@@ -243,10 +243,16 @@ ContentDecryptorDelegate::ContentDecryptorDelegate(
ContentDecryptorDelegate::~ContentDecryptorDelegate() {
}
-void ContentDecryptorDelegate::Initialize(const std::string& key_system) {
- // TODO(ddorwin): Add an Initialize method to PPP_ContentDecryptor_Private.
+void ContentDecryptorDelegate::Initialize(const std::string& key_system,
+ bool can_challenge_platform) {
DCHECK(!key_system.empty());
+ DCHECK(key_system_.empty());
key_system_ = key_system;
+
+ plugin_decryption_interface_->Initialize(
+ pp_instance_,
+ StringVar::StringToPPVar(key_system_),
+ PP_FromBool(can_challenge_platform));
}
void ContentDecryptorDelegate::SetKeyEventCallbacks(
@@ -267,7 +273,6 @@ bool ContentDecryptorDelegate::GenerateKeyRequest(const std::string& type,
plugin_decryption_interface_->GenerateKeyRequest(
pp_instance_,
- StringVar::StringToPPVar(key_system_), // TODO(ddorwin): Remove.
StringVar::StringToPPVar(type),
init_data_array);
return true;