| 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..dc3411d30ce2d768b035902dbeac111c7ffdf6c2 100644
|
| --- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
| +++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc
|
| @@ -1546,6 +1546,30 @@ bool PluginInstance::Decrypt(
|
| return true;
|
| }
|
|
|
| +bool PluginInstance::DeinitializeDecoder() {
|
| + if (!LoadContentDecryptorInterface())
|
| + return false;
|
| +
|
| + // TODO(tomfinegan): Add decoder deinitialize request tracking, and get
|
| + // stream type from media stack.
|
| + plugin_decryption_interface_->DeinitializeDecoder(pp_instance(),
|
| + PP_STREAMTYPE_VIDEO,
|
| + 0);
|
| + return true;
|
| +}
|
| +
|
| +bool PluginInstance::ResetDecoder() {
|
| + if (!LoadContentDecryptorInterface())
|
| + return false;
|
| +
|
| + // TODO(tomfinegan): Add decoder reset request tracking, and get
|
| + // stream type from media stack.
|
| + plugin_decryption_interface_->ResetDecoder(pp_instance(),
|
| + PP_STREAMTYPE_VIDEO,
|
| + 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 +2303,18 @@ void PluginInstance::KeyError(PP_Instance instance,
|
| system_code);
|
| }
|
|
|
| +void PluginInstance::DecoderDeinitializeDone(PP_Instance instance,
|
| + PP_StreamType decoder_type,
|
| + uint32_t request_id) {
|
| + // TODO(tomfinegan): Add decoder stop completion handling.
|
| +}
|
| +
|
| +void PluginInstance::DecoderResetDone(PP_Instance instance,
|
| + PP_StreamType decoder_type,
|
| + uint32_t request_id) {
|
| + // TODO(tomfinegan): Add decoder reset completion handling.
|
| +}
|
| +
|
| void PluginInstance::DeliverBlock(PP_Instance instance,
|
| PP_Resource decrypted_block,
|
| const PP_DecryptedBlockInfo* block_info) {
|
|
|