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

Unified Diff: ppapi/proxy/ppapi_messages.h

Issue 10827280: Add PPAPI decryptor implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Partially address xhwang's comments, and fix some StringVar crashiness Created 8 years, 4 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/ppapi_messages.h
diff --git a/ppapi/proxy/ppapi_messages.h b/ppapi/proxy/ppapi_messages.h
index a72dfd8819d7f0f9adfeabd94363387e3c413705..e52338423370adb3d1d99251502ba64903ce767d 100644
--- a/ppapi/proxy/ppapi_messages.h
+++ b/ppapi/proxy/ppapi_messages.h
@@ -575,6 +575,27 @@ IPC_MESSAGE_ROUTED3(
IPC::PlatformFileForTransit /* handle */,
int32_t /* result */)
+// PPP_ContentDecryptor_Dev
+IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_GenerateKeyRequest,
+ PP_Instance /* instance */,
+ ppapi::proxy::SerializedVar /* key_system, String */,
+ ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */)
+IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_AddKey,
+ PP_Instance /* instance */,
+ ppapi::proxy::SerializedVar /* session_id, String */,
+ ppapi::proxy::SerializedVar /* key, ArrayBuffer */)
+IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_CancelKeyRequest,
+ PP_Instance /* instance */,
+ ppapi::proxy::SerializedVar /* session_id, String */)
+IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt,
+ PP_Instance /* instance */,
+ ppapi::HostResource /* encrypted_block, PPB_Buffer_Dev */,
+ int32_t /* request_id */)
+IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_DecryptAndDecode,
+ PP_Instance /* instance */,
+ ppapi::HostResource /* encrypted_block, PPB_Buffer_Dev */,
+ int32_t /* request_id */)
+
// PPB_NetworkMonitor_Private.
IPC_MESSAGE_ROUTED2(PpapiMsg_PPBNetworkMonitor_NetworkList,
uint32 /* plugin_dispatcher_id */,
@@ -1136,6 +1157,41 @@ IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create,
ppapi::HostResource /* result_resource */,
base::SharedMemoryHandle /* result_shm_handle */)
+// PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy.
+IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_NeedKey,
+ PP_Instance /* instance */,
+ ppapi::proxy::SerializedVar /* key_system, String */,
+ ppapi::proxy::SerializedVar /* session_id, String */,
+ ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */)
+IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_KeyAdded,
+ PP_Instance /* instance */,
+ ppapi::proxy::SerializedVar /* key_system, String */,
+ ppapi::proxy::SerializedVar /* session_id, String */)
+IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_KeyMessage,
+ PP_Instance /* instance */,
+ ppapi::proxy::SerializedVar /* key_system, String */,
+ ppapi::proxy::SerializedVar /* session_id, String */,
+ PP_Resource /* message, PPB_Buffer_Dev */,
+ ppapi::proxy::SerializedVar /* default_url, String */)
+IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_KeyError,
+ PP_Instance /* instance */,
+ ppapi::proxy::SerializedVar /* key_system, String */,
+ ppapi::proxy::SerializedVar /* session_id, String */,
+ int32_t /* media_error */,
+ int32_t /* system_code */)
+IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock,
+ PP_Instance /* instance */,
+ PP_Resource /* decrypted_block, PPB_Buffer_Dev */,
+ int32_t /* request_id */)
+IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverFrame,
+ PP_Instance /* instance */,
+ PP_Resource /* decrypted_frame, PPB_Buffer_Dev */,
+ int32_t /* request_id */)
+IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverSamples,
+ PP_Instance /* instance */,
+ PP_Resource /* decrypted_samples, PPB_Buffer_Dev */,
+ int32_t /* request_id */)
+
// PPB_NetworkMonitor_Private.
IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start,
uint32 /* plugin_dispatcher_id */)

Powered by Google App Engine
This is Rietveld 408576698