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

Side by Side Diff: ppapi/proxy/ppapi_messages.h

Issue 10827280: Add PPAPI decryptor implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed NeedKey, addressed all comments (excluding one of dmichael's). 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included message header, no traditional include guard. 5 // Multiply-included message header, no traditional include guard.
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 IPC_STRUCT_TRAITS_END() 238 IPC_STRUCT_TRAITS_END()
239 239
240 IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo) 240 IPC_STRUCT_TRAITS_BEGIN(ppapi::NetworkInfo)
241 IPC_STRUCT_TRAITS_MEMBER(name) 241 IPC_STRUCT_TRAITS_MEMBER(name)
242 IPC_STRUCT_TRAITS_MEMBER(type) 242 IPC_STRUCT_TRAITS_MEMBER(type)
243 IPC_STRUCT_TRAITS_MEMBER(state) 243 IPC_STRUCT_TRAITS_MEMBER(state)
244 IPC_STRUCT_TRAITS_MEMBER(addresses) 244 IPC_STRUCT_TRAITS_MEMBER(addresses)
245 IPC_STRUCT_TRAITS_MEMBER(display_name) 245 IPC_STRUCT_TRAITS_MEMBER(display_name)
246 IPC_STRUCT_TRAITS_MEMBER(mtu) 246 IPC_STRUCT_TRAITS_MEMBER(mtu)
247 IPC_STRUCT_TRAITS_END() 247 IPC_STRUCT_TRAITS_END()
248
249 // TODO(tomfinegan): This is identical to PPPVideoCapture_Buffer, maybe replace
250 // both with a single type?
251 IPC_STRUCT_TRAITS_BEGIN(ppapi::proxy::PPPDecryptor_Buffer)
252 IPC_STRUCT_TRAITS_MEMBER(resource)
253 IPC_STRUCT_TRAITS_MEMBER(handle)
254 IPC_STRUCT_TRAITS_MEMBER(size)
255 IPC_STRUCT_TRAITS_END()
256
248 #endif // !defined(OS_NACL) 257 #endif // !defined(OS_NACL)
249 258
250 // These are from the browser to the plugin. 259 // These are from the browser to the plugin.
251 // Loads the given plugin. 260 // Loads the given plugin.
252 IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */) 261 IPC_MESSAGE_CONTROL1(PpapiMsg_LoadPlugin, FilePath /* path */)
253 262
254 // Creates a channel to talk to a renderer. The plugin will respond with 263 // Creates a channel to talk to a renderer. The plugin will respond with
255 // PpapiHostMsg_ChannelCreated. 264 // PpapiHostMsg_ChannelCreated.
256 IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel, 265 IPC_MESSAGE_CONTROL2(PpapiMsg_CreateChannel,
257 int /* renderer_id */, 266 int /* renderer_id */,
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 ppapi::HostResource /* loader */, 577 ppapi::HostResource /* loader */,
569 int32_t /* result */) 578 int32_t /* result */)
570 #if !defined(OS_NACL) 579 #if !defined(OS_NACL)
571 // PPB_Broker. 580 // PPB_Broker.
572 IPC_MESSAGE_ROUTED3( 581 IPC_MESSAGE_ROUTED3(
573 PpapiMsg_PPBBroker_ConnectComplete, 582 PpapiMsg_PPBBroker_ConnectComplete,
574 ppapi::HostResource /* broker */, 583 ppapi::HostResource /* broker */,
575 IPC::PlatformFileForTransit /* handle */, 584 IPC::PlatformFileForTransit /* handle */,
576 int32_t /* result */) 585 int32_t /* result */)
577 586
587 // PPP_ContentDecryptor_Dev
588 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_GenerateKeyRequest,
589 PP_Instance /* instance */,
590 ppapi::proxy::SerializedVar /* key_system, String */,
591 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */)
592 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_AddKey,
593 PP_Instance /* instance */,
594 ppapi::proxy::SerializedVar /* session_id, String */,
595 ppapi::proxy::SerializedVar /* key, ArrayBuffer */)
596 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPContentDecryptor_CancelKeyRequest,
597 PP_Instance /* instance */,
598 ppapi::proxy::SerializedVar /* session_id, String */)
599 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_Decrypt,
600 PP_Instance /* instance */,
601 ppapi::proxy::PPPDecryptor_Buffer /* buffer */,
602 int32_t /* request_id */)
603 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPContentDecryptor_DecryptAndDecode,
604 PP_Instance /* instance */,
605 ppapi::HostResource /* encrypted_block, PPB_Buffer_Dev */,
606 int32_t /* request_id */)
607
578 // PPB_NetworkMonitor_Private. 608 // PPB_NetworkMonitor_Private.
579 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBNetworkMonitor_NetworkList, 609 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBNetworkMonitor_NetworkList,
580 uint32 /* plugin_dispatcher_id */, 610 uint32 /* plugin_dispatcher_id */,
581 ppapi::NetworkList /* network_list */) 611 ppapi::NetworkList /* network_list */)
582 612
583 // PPB_Talk 613 // PPB_Talk
584 IPC_MESSAGE_ROUTED3( 614 IPC_MESSAGE_ROUTED3(
585 PpapiMsg_PPBTalk_GetPermissionACK, 615 PpapiMsg_PPBTalk_GetPermissionACK,
586 uint32 /* plugin_dispatcher_id */, 616 uint32 /* plugin_dispatcher_id */,
587 PP_Resource /* resource */, 617 PP_Resource /* resource */,
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1129 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect, 1159 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBBroker_Connect,
1130 ppapi::HostResource /* broker */) 1160 ppapi::HostResource /* broker */)
1131 1161
1132 // PPB_Buffer. 1162 // PPB_Buffer.
1133 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create, 1163 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create,
1134 PP_Instance /* instance */, 1164 PP_Instance /* instance */,
1135 uint32_t /* size */, 1165 uint32_t /* size */,
1136 ppapi::HostResource /* result_resource */, 1166 ppapi::HostResource /* result_resource */,
1137 base::SharedMemoryHandle /* result_shm_handle */) 1167 base::SharedMemoryHandle /* result_shm_handle */)
1138 1168
1169 // PPB_ContentDecryptor_Dev messages handled in PPB_Instance_Proxy.
1170 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBInstance_NeedKey,
1171 PP_Instance /* instance */,
1172 ppapi::proxy::SerializedVar /* key_system, String */,
1173 ppapi::proxy::SerializedVar /* session_id, String */,
1174 ppapi::proxy::SerializedVar /* init_data, ArrayBuffer */)
1175 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_KeyAdded,
1176 PP_Instance /* instance */,
1177 ppapi::proxy::SerializedVar /* key_system, String */,
1178 ppapi::proxy::SerializedVar /* session_id, String */)
1179 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_KeyMessage,
1180 PP_Instance /* instance */,
1181 ppapi::proxy::SerializedVar /* key_system, String */,
1182 ppapi::proxy::SerializedVar /* session_id, String */,
1183 PP_Resource /* message, PPB_Buffer_Dev */,
1184 ppapi::proxy::SerializedVar /* default_url, String */)
1185 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBInstance_KeyError,
1186 PP_Instance /* instance */,
1187 ppapi::proxy::SerializedVar /* key_system, String */,
1188 ppapi::proxy::SerializedVar /* session_id, String */,
1189 int32_t /* media_error */,
1190 int32_t /* system_code */)
1191 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverBlock,
1192 PP_Instance /* instance */,
1193 PP_Resource /* decrypted_block, PPB_Buffer_Dev */,
1194 int32_t /* request_id */)
1195 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverFrame,
1196 PP_Instance /* instance */,
1197 PP_Resource /* decrypted_frame, PPB_Buffer_Dev */,
1198 int32_t /* request_id */)
1199 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBInstance_DeliverSamples,
1200 PP_Instance /* instance */,
1201 PP_Resource /* decrypted_samples, PPB_Buffer_Dev */,
1202 int32_t /* request_id */)
1203
1139 // PPB_NetworkMonitor_Private. 1204 // PPB_NetworkMonitor_Private.
1140 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start, 1205 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Start,
1141 uint32 /* plugin_dispatcher_id */) 1206 uint32 /* plugin_dispatcher_id */)
1142 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop, 1207 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBNetworkMonitor_Stop,
1143 uint32 /* plugin_dispatcher_id */) 1208 uint32 /* plugin_dispatcher_id */)
1144 1209
1145 // PPB_HostResolver_Private. 1210 // PPB_HostResolver_Private.
1146 IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBHostResolver_Resolve, 1211 IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBHostResolver_Resolve,
1147 int32 /* routing_id */, 1212 int32 /* routing_id */,
1148 uint32 /* plugin_dispatcher_id */, 1213 uint32 /* plugin_dispatcher_id */,
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1453 1518
1454 // File chooser. 1519 // File chooser.
1455 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) 1520 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create)
1456 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, 1521 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show,
1457 bool /* save_as */, 1522 bool /* save_as */,
1458 bool /* open_multiple */, 1523 bool /* open_multiple */,
1459 std::string /* suggested_file_name */, 1524 std::string /* suggested_file_name */,
1460 std::vector<std::string> /* accept_mime_types */) 1525 std::vector<std::string> /* accept_mime_types */)
1461 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, 1526 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply,
1462 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) 1527 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698