Index: webkit/plugins/ppapi/content_decryptor_delegate.h |
diff --git a/webkit/plugins/ppapi/content_decryptor_delegate.h b/webkit/plugins/ppapi/content_decryptor_delegate.h |
index 217906889939a7d998af7e4c21cd001b35995418..14128b878d7bd3f6536747273fd5a7a1b0c9cda0 100644 |
--- a/webkit/plugins/ppapi/content_decryptor_delegate.h |
+++ b/webkit/plugins/ppapi/content_decryptor_delegate.h |
@@ -38,8 +38,12 @@ class WEBKIT_PLUGINS_EXPORT ContentDecryptorDelegate { |
PP_Instance pp_instance, |
const PPP_ContentDecryptor_Private* plugin_decryption_interface); |
+ void SetKeyEventCallbacks(const media::KeyAddedCB& key_added_cb, |
+ const media::KeyErrorCB& key_error_cb, |
+ const media::KeyMessageCB& key_message_cb, |
+ const media::NeedKeyCB& need_key_cb); |
+ |
// Provides access to PPP_ContentDecryptor_Private. |
- void set_decrypt_client(media::DecryptorClient* decryptor_client); |
bool GenerateKeyRequest(const std::string& key_system, |
const std::string& type, |
const uint8* init_data, |
@@ -120,7 +124,11 @@ class WEBKIT_PLUGINS_EXPORT ContentDecryptorDelegate { |
const PP_Instance pp_instance_; |
const PPP_ContentDecryptor_Private* const plugin_decryption_interface_; |
- media::DecryptorClient* decryptor_client_; |
+ // Callbacks for firing key events. |
+ media::KeyAddedCB key_added_cb_; |
+ media::KeyErrorCB key_error_cb_; |
+ media::KeyMessageCB key_message_cb_; |
+ media::NeedKeyCB need_key_cb_; |
gfx::Size natural_size_; |