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

Unified Diff: webkit/plugins/ppapi/content_decryptor_delegate.h

Issue 11226019: Encrypted Media: Replace DecryptorClient with key event callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: prototype cl of new approach Created 8 years 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: 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_;

Powered by Google App Engine
This is Rietveld 408576698