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

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

Issue 11028087: Add decoder de-initialize and reset to the Pepper CDM API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments with the exception of renaming Deinit Created 8 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
Index: webkit/plugins/ppapi/ppapi_plugin_instance.h
diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.h b/webkit/plugins/ppapi/ppapi_plugin_instance.h
index 19b3ef17376785219f7f2f1c77bc4237e12f5189..0246f7e9f6e59d157030e3517f7b927aa0e12732 100644
--- a/webkit/plugins/ppapi/ppapi_plugin_instance.h
+++ b/webkit/plugins/ppapi/ppapi_plugin_instance.h
@@ -267,6 +267,10 @@ class WEBKIT_PLUGINS_EXPORT PluginInstance :
bool InitializeVideoDecoder(
const media::VideoDecoderConfig& decoder_config,
const media::Decryptor::DecryptCB& decrypt_cb);
+ // TODO(tomfinegan): Add callback args for DeinitializeDecoder() and
+ // ResetDecoder()
+ bool DeinitializeDecoder();
+ bool ResetDecoder();
// TODO(xhwang): Update this when we need to support decrypt and decode.
// Note: This method can be used with an unencrypted frame.
bool DecryptAndDecodeFrame(
@@ -443,6 +447,9 @@ class WEBKIT_PLUGINS_EXPORT PluginInstance :
PP_Instance instance,
PP_URLComponents_Dev* components) OVERRIDE;
+ // PPB_ContentDecryptor_Private
+ // TODO(tomfinegan): Move the PPB_ContentDecryptor_Private methods to a
+ // delegate class.
virtual void NeedKey(PP_Instance instance,
PP_Var key_system,
PP_Var session_id,
@@ -466,6 +473,12 @@ class WEBKIT_PLUGINS_EXPORT PluginInstance :
virtual void DecoderInitialized(PP_Instance instance,
PP_Bool success,
uint32_t request_id) OVERRIDE;
+ virtual void DecoderDeinitializeDone(PP_Instance instance,
+ PP_DecryptorStreamType decoder_type,
+ uint32_t request_id) OVERRIDE;
+ virtual void DecoderResetDone(PP_Instance instance,
+ PP_DecryptorStreamType decoder_type,
+ uint32_t request_id) OVERRIDE;
virtual void DeliverFrame(PP_Instance instance,
PP_Resource decrypted_frame,
const PP_DecryptedFrameInfo* frame_info) OVERRIDE;
« no previous file with comments | « webkit/media/crypto/ppapi/content_decryption_module.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698