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

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

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: Finish first pass. 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.cc
diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.cc b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
index e6d0eeeef7bc34e270c52e5f11db130db19aee18..d90a931f4aa9d8eb339030011b4500d4b3a48d1f 100644
--- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc
+++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
@@ -1546,6 +1546,24 @@ bool PluginInstance::Decrypt(
return true;
}
+bool PluginInstance::ResetVideoDecoder() {
+ if (!LoadContentDecryptorInterface())
+ return false;
+
+ // TODO(tomfinegan): Add video decoder reset request tracking.
+ plugin_decryption_interface_->ResetVideoDecoder(pp_instance(), 0);
+ return true;
+}
+
+bool PluginInstance::StopVideoDecoder() {
+ if (!LoadContentDecryptorInterface())
+ return false;
+
+ // TODO(tomfinegan): Add video decoder stop request tracking.
+ plugin_decryption_interface_->StopVideoDecoder(pp_instance(), 0);
+ return true;
+}
+
// Note: this method can be used with an unencrypted frame.
bool PluginInstance::DecryptAndDecodeFrame(
const scoped_refptr<media::DecoderBuffer>& encrypted_frame,
@@ -2279,6 +2297,15 @@ void PluginInstance::KeyError(PP_Instance instance,
system_code);
}
+void PluginInstance::DecoderReset(PP_Instance instance, uint32_t request_id) {
+ // TODO(tomfinegan): Add decoder reset completion handling.
+}
+
+void PluginInstance::DecoderStopped(PP_Instance instance,
+ uint32_t request_id) {
+ // TODO(tomfinegan): Add decoder stop completion handling.
+}
+
void PluginInstance::DeliverBlock(PP_Instance instance,
PP_Resource decrypted_block,
const PP_DecryptedBlockInfo* block_info) {

Powered by Google App Engine
This is Rietveld 408576698