| Index: ppapi/proxy/ppb_instance_proxy.cc
|
| diff --git a/ppapi/proxy/ppb_instance_proxy.cc b/ppapi/proxy/ppb_instance_proxy.cc
|
| index d98f79979ff323d35deb8f3283304f9ccc7aca4e..2e0fd825c11aa71b254bb6ac311d813afaf12ace 100644
|
| --- a/ppapi/proxy/ppb_instance_proxy.cc
|
| +++ b/ppapi/proxy/ppb_instance_proxy.cc
|
| @@ -169,6 +169,10 @@ bool PPB_Instance_Proxy::OnMessageReceived(const IPC::Message& msg) {
|
| OnHostMsgDeliverBlock)
|
| IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBInstance_DecoderInitialized,
|
| OnHostMsgDecoderInitialized)
|
| + IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBInstance_DecoderDeinitializeDone,
|
| + OnHostMsgDecoderDeinitializeDone)
|
| + IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBInstance_DecoderResetDone,
|
| + OnHostMsgDecoderResetDone)
|
| IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBInstance_DeliverFrame,
|
| OnHostMsgDeliverFrame)
|
| IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBInstance_DeliverSamples,
|
| @@ -545,6 +549,29 @@ void PPB_Instance_Proxy::DecoderInitialized(PP_Instance instance,
|
| request_id));
|
| }
|
|
|
| +void PPB_Instance_Proxy::DecoderDeinitializeDone(
|
| + PP_Instance instance,
|
| + PP_DecryptorStreamType decoder_type,
|
| + uint32_t request_id) {
|
| + dispatcher()->Send(
|
| + new PpapiHostMsg_PPBInstance_DecoderDeinitializeDone(
|
| + API_ID_PPB_INSTANCE,
|
| + instance,
|
| + decoder_type,
|
| + request_id));
|
| +}
|
| +
|
| +void PPB_Instance_Proxy::DecoderResetDone(PP_Instance instance,
|
| + PP_DecryptorStreamType decoder_type,
|
| + uint32_t request_id) {
|
| + dispatcher()->Send(
|
| + new PpapiHostMsg_PPBInstance_DecoderResetDone(
|
| + API_ID_PPB_INSTANCE,
|
| + instance,
|
| + decoder_type,
|
| + request_id));
|
| +}
|
| +
|
| void PPB_Instance_Proxy::DeliverFrame(PP_Instance instance,
|
| PP_Resource decrypted_frame,
|
| const PP_DecryptedFrameInfo* frame_info) {
|
| @@ -974,6 +1001,26 @@ void PPB_Instance_Proxy::OnHostMsgDecoderInitialized(
|
| enter.functions()->DecoderInitialized(instance, success, request_id);
|
| }
|
|
|
| +void PPB_Instance_Proxy::OnHostMsgDecoderDeinitializeDone(
|
| + PP_Instance instance,
|
| + PP_DecryptorStreamType decoder_type,
|
| + uint32_t request_id) {
|
| + EnterInstanceNoLock enter(instance);
|
| + if (enter.succeeded())
|
| + enter.functions()->DecoderDeinitializeDone(instance,
|
| + decoder_type,
|
| + request_id);
|
| +}
|
| +
|
| +void PPB_Instance_Proxy::OnHostMsgDecoderResetDone(
|
| + PP_Instance instance,
|
| + PP_DecryptorStreamType decoder_type,
|
| + uint32_t request_id) {
|
| + EnterInstanceNoLock enter(instance);
|
| + if (enter.succeeded())
|
| + enter.functions()->DecoderResetDone(instance, decoder_type, request_id);
|
| +}
|
| +
|
| void PPB_Instance_Proxy::OnHostMsgDeliverFrame(
|
| PP_Instance instance,
|
| PP_Resource decrypted_frame,
|
|
|