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

Unified Diff: ppapi/proxy/ppb_instance_proxy.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: Renaming and generalizing done... 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: ppapi/proxy/ppb_instance_proxy.cc
diff --git a/ppapi/proxy/ppb_instance_proxy.cc b/ppapi/proxy/ppb_instance_proxy.cc
index 5f0c163306a624c15b495279a352d5f0dbb66d92..ae7707d9c7339072b3d378640cefc62ecfc8e0ab 100644
--- a/ppapi/proxy/ppb_instance_proxy.cc
+++ b/ppapi/proxy/ppb_instance_proxy.cc
@@ -165,6 +165,10 @@ bool PPB_Instance_Proxy::OnMessageReceived(const IPC::Message& msg) {
OnHostMsgKeyError)
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBInstance_DeliverBlock,
OnHostMsgDeliverBlock)
+ 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,
@@ -508,6 +512,28 @@ void PPB_Instance_Proxy::DeliverBlock(PP_Instance instance,
serialized_block_info));
}
+void PPB_Instance_Proxy::DecoderDeinitializeDone(PP_Instance instance,
+ PP_StreamType 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_StreamType 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) {
@@ -928,6 +954,25 @@ void PPB_Instance_Proxy::OnHostMsgDeliverBlock(
enter.functions()->DeliverBlock(instance, decrypted_block, &block_info);
}
+void PPB_Instance_Proxy::OnHostMsgDecoderDeinitializeDone(
+ PP_Instance instance,
+ PP_StreamType 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_StreamType 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,

Powered by Google App Engine
This is Rietveld 408576698