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

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: 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
« no previous file with comments | « ppapi/proxy/ppb_instance_proxy.h ('k') | ppapi/proxy/ppp_content_decryptor_private_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « ppapi/proxy/ppb_instance_proxy.h ('k') | ppapi/proxy/ppp_content_decryptor_private_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698