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

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

Issue 21966004: Pepper: Move FileRef to the "new" resource proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove code duplication Created 7 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/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "ppapi/proxy/ppapi_param_traits.h" 50 #include "ppapi/proxy/ppapi_param_traits.h"
51 #include "ppapi/proxy/ppapi_proxy_export.h" 51 #include "ppapi/proxy/ppapi_proxy_export.h"
52 #include "ppapi/proxy/resource_message_params.h" 52 #include "ppapi/proxy/resource_message_params.h"
53 #include "ppapi/proxy/serialized_flash_menu.h" 53 #include "ppapi/proxy/serialized_flash_menu.h"
54 #include "ppapi/proxy/serialized_handle.h" 54 #include "ppapi/proxy/serialized_handle.h"
55 #include "ppapi/proxy/serialized_structs.h" 55 #include "ppapi/proxy/serialized_structs.h"
56 #include "ppapi/proxy/serialized_var.h" 56 #include "ppapi/proxy/serialized_var.h"
57 #include "ppapi/shared_impl/dir_contents.h" 57 #include "ppapi/shared_impl/dir_contents.h"
58 #include "ppapi/shared_impl/file_path.h" 58 #include "ppapi/shared_impl/file_path.h"
59 #include "ppapi/shared_impl/file_ref_create_info.h" 59 #include "ppapi/shared_impl/file_ref_create_info.h"
60 #include "ppapi/shared_impl/file_ref_detailed_info.h"
60 #include "ppapi/shared_impl/ppapi_nacl_channel_args.h" 61 #include "ppapi/shared_impl/ppapi_nacl_channel_args.h"
61 #include "ppapi/shared_impl/ppapi_preferences.h" 62 #include "ppapi/shared_impl/ppapi_preferences.h"
62 #include "ppapi/shared_impl/ppb_device_ref_shared.h" 63 #include "ppapi/shared_impl/ppb_device_ref_shared.h"
63 #include "ppapi/shared_impl/ppb_input_event_shared.h" 64 #include "ppapi/shared_impl/ppb_input_event_shared.h"
64 #include "ppapi/shared_impl/ppb_network_list_private_shared.h" 65 #include "ppapi/shared_impl/ppb_network_list_private_shared.h"
65 #include "ppapi/shared_impl/ppb_view_shared.h" 66 #include "ppapi/shared_impl/ppb_view_shared.h"
66 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" 67 #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h"
67 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h" 68 #include "ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h"
68 #include "ppapi/shared_impl/socket_option_data.h" 69 #include "ppapi/shared_impl/socket_option_data.h"
69 #include "ppapi/shared_impl/url_request_info_data.h" 70 #include "ppapi/shared_impl/url_request_info_data.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 IPC_STRUCT_TRAITS_END() 204 IPC_STRUCT_TRAITS_END()
204 205
205 IPC_STRUCT_TRAITS_BEGIN(ppapi::FileRef_CreateInfo) 206 IPC_STRUCT_TRAITS_BEGIN(ppapi::FileRef_CreateInfo)
206 IPC_STRUCT_TRAITS_MEMBER(file_system_type) 207 IPC_STRUCT_TRAITS_MEMBER(file_system_type)
207 IPC_STRUCT_TRAITS_MEMBER(internal_path) 208 IPC_STRUCT_TRAITS_MEMBER(internal_path)
208 IPC_STRUCT_TRAITS_MEMBER(display_name) 209 IPC_STRUCT_TRAITS_MEMBER(display_name)
209 IPC_STRUCT_TRAITS_MEMBER(pending_host_resource_id) 210 IPC_STRUCT_TRAITS_MEMBER(pending_host_resource_id)
210 IPC_STRUCT_TRAITS_MEMBER(file_system_plugin_resource) 211 IPC_STRUCT_TRAITS_MEMBER(file_system_plugin_resource)
211 IPC_STRUCT_TRAITS_END() 212 IPC_STRUCT_TRAITS_END()
212 213
214 IPC_STRUCT_TRAITS_BEGIN(ppapi::FileRef_DetailedInfo)
215 IPC_STRUCT_TRAITS_MEMBER(resource)
216 IPC_STRUCT_TRAITS_MEMBER(file_system_type)
217 IPC_STRUCT_TRAITS_MEMBER(file_system_url_spec)
218 IPC_STRUCT_TRAITS_MEMBER(external_path)
219 IPC_STRUCT_TRAITS_END()
220
213 IPC_STRUCT_TRAITS_BEGIN(ppapi::FlashSiteSetting) 221 IPC_STRUCT_TRAITS_BEGIN(ppapi::FlashSiteSetting)
214 IPC_STRUCT_TRAITS_MEMBER(site) 222 IPC_STRUCT_TRAITS_MEMBER(site)
215 IPC_STRUCT_TRAITS_MEMBER(permission) 223 IPC_STRUCT_TRAITS_MEMBER(permission)
216 IPC_STRUCT_TRAITS_END() 224 IPC_STRUCT_TRAITS_END()
217 225
218 IPC_STRUCT_TRAITS_BEGIN(ppapi::ViewData) 226 IPC_STRUCT_TRAITS_BEGIN(ppapi::ViewData)
219 IPC_STRUCT_TRAITS_MEMBER(rect) 227 IPC_STRUCT_TRAITS_MEMBER(rect)
220 IPC_STRUCT_TRAITS_MEMBER(is_fullscreen) 228 IPC_STRUCT_TRAITS_MEMBER(is_fullscreen)
221 IPC_STRUCT_TRAITS_MEMBER(is_page_visible) 229 IPC_STRUCT_TRAITS_MEMBER(is_page_visible)
222 IPC_STRUCT_TRAITS_MEMBER(clip_rect) 230 IPC_STRUCT_TRAITS_MEMBER(clip_rect)
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_upper_threshold) 299 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_upper_threshold)
292 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_lower_threshold) 300 IPC_STRUCT_TRAITS_MEMBER(prefetch_buffer_lower_threshold)
293 IPC_STRUCT_TRAITS_MEMBER(has_custom_user_agent) 301 IPC_STRUCT_TRAITS_MEMBER(has_custom_user_agent)
294 IPC_STRUCT_TRAITS_MEMBER(custom_user_agent) 302 IPC_STRUCT_TRAITS_MEMBER(custom_user_agent)
295 IPC_STRUCT_TRAITS_MEMBER(body) 303 IPC_STRUCT_TRAITS_MEMBER(body)
296 IPC_STRUCT_TRAITS_END() 304 IPC_STRUCT_TRAITS_END()
297 305
298 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData::BodyItem) 306 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLRequestInfoData::BodyItem)
299 IPC_STRUCT_TRAITS_MEMBER(is_file) 307 IPC_STRUCT_TRAITS_MEMBER(is_file)
300 IPC_STRUCT_TRAITS_MEMBER(data) 308 IPC_STRUCT_TRAITS_MEMBER(data)
301 // Note: we don't serialize file_ref. 309 IPC_STRUCT_TRAITS_MEMBER(file_ref_pp_resource)
302 IPC_STRUCT_TRAITS_MEMBER(file_ref_host_resource)
303 IPC_STRUCT_TRAITS_MEMBER(start_offset) 310 IPC_STRUCT_TRAITS_MEMBER(start_offset)
304 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes) 311 IPC_STRUCT_TRAITS_MEMBER(number_of_bytes)
305 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time) 312 IPC_STRUCT_TRAITS_MEMBER(expected_last_modified_time)
306 IPC_STRUCT_TRAITS_END() 313 IPC_STRUCT_TRAITS_END()
307 314
308 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLResponseInfoData) 315 IPC_STRUCT_TRAITS_BEGIN(ppapi::URLResponseInfoData)
309 IPC_STRUCT_TRAITS_MEMBER(url) 316 IPC_STRUCT_TRAITS_MEMBER(url)
310 IPC_STRUCT_TRAITS_MEMBER(headers) 317 IPC_STRUCT_TRAITS_MEMBER(headers)
311 IPC_STRUCT_TRAITS_MEMBER(status_code) 318 IPC_STRUCT_TRAITS_MEMBER(status_code)
312 IPC_STRUCT_TRAITS_MEMBER(status_text) 319 IPC_STRUCT_TRAITS_MEMBER(status_text)
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 // result codes. 486 // result codes.
480 // 487 //
481 // The handler of this message should always close all of the handles passed 488 // The handler of this message should always close all of the handles passed
482 // in, since some could be valid even in the error case. 489 // in, since some could be valid even in the error case.
483 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated, 490 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBAudio_NotifyAudioStreamCreated,
484 ppapi::HostResource /* audio_id */, 491 ppapi::HostResource /* audio_id */,
485 int32_t /* result_code (will be != PP_OK on failure) */, 492 int32_t /* result_code (will be != PP_OK on failure) */,
486 ppapi::proxy::SerializedHandle /* socket_handle */, 493 ppapi::proxy::SerializedHandle /* socket_handle */,
487 ppapi::proxy::SerializedHandle /* handle */) 494 ppapi::proxy::SerializedHandle /* handle */)
488 495
489 // PPB_FileRef.
490 // TODO(teravest): Remove these messages when we've switched over to the "new"
491 // proxy.
492 IPC_MESSAGE_ROUTED3(
493 PpapiMsg_PPBFileRef_CallbackComplete,
494 ppapi::HostResource /* resource */,
495 uint32_t /* callback_id */,
496 int32_t /* result */)
497
498 IPC_MESSAGE_ROUTED4(
499 PpapiMsg_PPBFileRef_QueryCallbackComplete,
500 ppapi::HostResource /* resource */,
501 PP_FileInfo /* file_info */,
502 uint32_t /* callback_id */,
503 int32_t /* result */)
504
505 IPC_MESSAGE_ROUTED5(
506 PpapiMsg_PPBFileRef_ReadDirectoryEntriesCallbackComplete,
507 ppapi::HostResource /* resource */,
508 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */,
509 std::vector<PP_FileType> /* file_types */,
510 uint32_t /* callback_id */,
511 int32_t /* result */)
512
513 // PPB_FileSystem. 496 // PPB_FileSystem.
514 IPC_MESSAGE_ROUTED2( 497 IPC_MESSAGE_ROUTED2(
515 PpapiMsg_PPBFileSystem_OpenComplete, 498 PpapiMsg_PPBFileSystem_OpenComplete,
516 ppapi::HostResource /* filesystem */, 499 ppapi::HostResource /* filesystem */,
517 int32_t /* result */) 500 int32_t /* result */)
518 501
519 // PPB_Graphics3D. 502 // PPB_Graphics3D.
520 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK, 503 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK,
521 ppapi::HostResource /* graphics_3d */, 504 ppapi::HostResource /* graphics_3d */,
522 int32_t /* pp_error */) 505 int32_t /* pp_error */)
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop, 774 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBAudio_StartOrStop,
792 ppapi::HostResource /* audio_id */, 775 ppapi::HostResource /* audio_id */,
793 bool /* play */) 776 bool /* play */)
794 777
795 // PPB_Core. 778 // PPB_Core.
796 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, 779 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource,
797 ppapi::HostResource) 780 ppapi::HostResource)
798 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, 781 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource,
799 ppapi::HostResource) 782 ppapi::HostResource)
800 783
801 // PPB_FileRef.
802 // TODO(teravest): Remove these messages when we've switched over to the "new"
803 // proxy.
804 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBFileRef_Create,
805 PP_Instance /* instance */,
806 PP_Resource /* file_system */,
807 std::string /* path */,
808 ppapi::PPB_FileRef_CreateInfo /* result */)
809 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetParent,
810 ppapi::HostResource /* file_ref */,
811 ppapi::PPB_FileRef_CreateInfo /* result */)
812 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_MakeDirectory,
813 ppapi::HostResource /* file_ref */,
814 PP_Bool /* make_ancestors */,
815 uint32_t /* callback_id */)
816 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBFileRef_Touch,
817 ppapi::HostResource /* file_ref */,
818 PP_Time /* last_access */,
819 PP_Time /* last_modified */,
820 uint32_t /* callback_id */)
821 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Delete,
822 ppapi::HostResource /* file_ref */,
823 uint32_t /* callback_id */)
824 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_Rename,
825 ppapi::HostResource /* file_ref */,
826 ppapi::HostResource /* new_file_ref */,
827 uint32_t /* callback_id */)
828 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Query,
829 ppapi::HostResource /* file_ref */,
830 uint32_t /* callback_id */)
831 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetAbsolutePath,
832 ppapi::HostResource /* file_ref */,
833 ppapi::proxy::SerializedVar /* result */)
834 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_ReadDirectoryEntries,
835 ppapi::HostResource /* file_ref */,
836 uint32_t /* callback_id */)
837
838 // PPB_Graphics3D. 784 // PPB_Graphics3D.
839 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create, 785 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create,
840 PP_Instance /* instance */, 786 PP_Instance /* instance */,
841 ppapi::HostResource /* share_context */, 787 ppapi::HostResource /* share_context */,
842 std::vector<int32_t> /* attrib_list */, 788 std::vector<int32_t> /* attrib_list */,
843 ppapi::HostResource /* result */) 789 ppapi::HostResource /* result */)
844 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer, 790 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer,
845 ppapi::HostResource /* context */, 791 ppapi::HostResource /* context */,
846 int32 /* transfer_buffer_id */) 792 int32 /* transfer_buffer_id */)
847 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBGraphics3D_GetState, 793 IPC_SYNC_MESSAGE_ROUTED1_2(PpapiHostMsg_PPBGraphics3D_GetState,
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 // that of the previous ResourceCall. 1206 // that of the previous ResourceCall.
1261 IPC_MESSAGE_CONTROL2( 1207 IPC_MESSAGE_CONTROL2(
1262 PpapiPluginMsg_ResourceReply, 1208 PpapiPluginMsg_ResourceReply,
1263 ppapi::proxy::ResourceMessageReplyParams /* reply_params */, 1209 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1264 IPC::Message /* nested_msg */) 1210 IPC::Message /* nested_msg */)
1265 IPC_MESSAGE_ROUTED2( 1211 IPC_MESSAGE_ROUTED2(
1266 PpapiHostMsg_InProcessResourceReply, 1212 PpapiHostMsg_InProcessResourceReply,
1267 ppapi::proxy::ResourceMessageReplyParams /* reply_params */, 1213 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1268 IPC::Message /* nested_msg */) 1214 IPC::Message /* nested_msg */)
1269 1215
1270
1271 IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_ResourceSyncCall, 1216 IPC_SYNC_MESSAGE_CONTROL2_2(PpapiHostMsg_ResourceSyncCall,
1272 ppapi::proxy::ResourceMessageCallParams /* call_params */, 1217 ppapi::proxy::ResourceMessageCallParams /* call_params */,
1273 IPC::Message /* nested_msg */, 1218 IPC::Message /* nested_msg */,
1274 ppapi::proxy::ResourceMessageReplyParams /* reply_params */, 1219 ppapi::proxy::ResourceMessageReplyParams /* reply_params */,
1275 IPC::Message /* reply_msg */) 1220 IPC::Message /* reply_msg */)
1276 1221
1277 // This message is sent from the renderer to the browser when it wants to create 1222 // This message is sent from the renderer to the browser when it wants to create
1278 // a ResourceHost in the browser. It contains the process ID of the plugin and 1223 // a ResourceHost in the browser. It contains the process ID of the plugin and
1279 // the instance of the plugin for which to create the resource for. params 1224 // the instance of the plugin for which to create the resource for. params
1280 // contains the sequence number for the message to track the response. 1225 // contains the sequence number for the message to track the response.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 std::string /* fsid */) 1279 std::string /* fsid */)
1335 1280
1336 // File chooser. 1281 // File chooser.
1337 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create) 1282 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileChooser_Create)
1338 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show, 1283 IPC_MESSAGE_CONTROL4(PpapiHostMsg_FileChooser_Show,
1339 bool /* save_as */, 1284 bool /* save_as */,
1340 bool /* open_multiple */, 1285 bool /* open_multiple */,
1341 std::string /* suggested_file_name */, 1286 std::string /* suggested_file_name */,
1342 std::vector<std::string> /* accept_mime_types */) 1287 std::vector<std::string> /* accept_mime_types */)
1343 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply, 1288 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileChooser_ShowReply,
1344 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */) 1289 std::vector<ppapi::FileRef_CreateInfo> /* files */)
1345 1290
1346 // FileIO 1291 // FileIO
1347 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Create) 1292 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Create)
1348 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Open, 1293 IPC_MESSAGE_CONTROL2(PpapiHostMsg_FileIO_Open,
1349 PP_Resource /* file_ref_resource */, 1294 PP_Resource /* file_ref_resource */,
1350 int32_t /* open_flags */) 1295 int32_t /* open_flags */)
1351 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_OpenReply) 1296 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_FileIO_OpenReply)
1352 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Close) 1297 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Close)
1353 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Query) 1298 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FileIO_Query)
1354 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_QueryReply, PP_FileInfo /* info */) 1299 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FileIO_QueryReply, PP_FileInfo /* info */)
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1459 // Reply message for GetHmonitor which contains the HMONITOR as an int64_t. 1404 // Reply message for GetHmonitor which contains the HMONITOR as an int64_t.
1460 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetHmonitorReply, 1405 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetHmonitorReply,
1461 int64_t /* hmonitor */) 1406 int64_t /* hmonitor */)
1462 1407
1463 // Requests the voucher file which is used to verify the integrity of the Flash 1408 // Requests the voucher file which is used to verify the integrity of the Flash
1464 // module. A PPB_FileRef resource will be created. 1409 // module. A PPB_FileRef resource will be created.
1465 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetVoucherFile) 1410 IPC_MESSAGE_CONTROL0(PpapiHostMsg_FlashDRM_GetVoucherFile)
1466 // Reply message for GetVoucherFile which contains the CreateInfo for a 1411 // Reply message for GetVoucherFile which contains the CreateInfo for a
1467 // PPB_FileRef which points to the voucher file. 1412 // PPB_FileRef which points to the voucher file.
1468 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetVoucherFileReply, 1413 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_FlashDRM_GetVoucherFileReply,
1469 ppapi::PPB_FileRef_CreateInfo /* file_info */) 1414 ppapi::FileRef_CreateInfo /* file_info */)
1470 1415
1471 // Gamepad. 1416 // Gamepad.
1472 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create) 1417 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_Create)
1473 1418
1474 // Requests that the gamepad host send the shared memory handle to the plugin 1419 // Requests that the gamepad host send the shared memory handle to the plugin
1475 // process. 1420 // process.
1476 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory) 1421 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Gamepad_RequestMemory)
1477 1422
1478 // Reply to a RequestMemory call. This supplies the shared memory handle. The 1423 // Reply to a RequestMemory call. This supplies the shared memory handle. The
1479 // actual handle is passed in the ReplyParams struct. 1424 // actual handle is passed in the ReplyParams struct.
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1821 int /* routing_id */, 1766 int /* routing_id */,
1822 int /* child_process_id */, 1767 int /* child_process_id */,
1823 int32_t /* sequence */, 1768 int32_t /* sequence */,
1824 std::vector<PP_Resource> /* resources */) 1769 std::vector<PP_Resource> /* resources */)
1825 1770
1826 // Reply to PpapiHostMsg_FileRef_GetInfoForRenderer with a sequence number for 1771 // Reply to PpapiHostMsg_FileRef_GetInfoForRenderer with a sequence number for
1827 // invoking the right callback, |fs_type| which indicates the file system, and 1772 // invoking the right callback, |fs_type| which indicates the file system, and
1828 // path information in either |file_system_url_spec| (for internal file systems) 1773 // path information in either |file_system_url_spec| (for internal file systems)
1829 // or |external_path| (for external file systems). 1774 // or |external_path| (for external file systems).
1830 // Only sent from the browser to the renderer. 1775 // Only sent from the browser to the renderer.
1831 IPC_MESSAGE_ROUTED5(PpapiHostMsg_FileRef_GetInfoForRendererReply, 1776 IPC_MESSAGE_ROUTED2(
1832 int32_t /* sequence */, 1777 PpapiHostMsg_FileRef_GetInfoForRendererReply,
1833 std::vector<PP_Resource> /* resources */, 1778 int32_t /* sequence */,
1834 std::vector<PP_FileSystemType> /* fs_type */, 1779 std::vector<ppapi::FileRef_DetailedInfo> /* detailed_info */)
1835 std::vector<std::string> /* file_system_url_spec */, 1780
1836 std::vector<base::FilePath> /* external_path */) 1781 // A synchronous version of the two above messages. This is required to support
1782 // some URL loading routes which must be executed synchronously.
1783 IPC_SYNC_MESSAGE_ROUTED2_1(
1784 PpapiHostMsg_FileRef_SyncGetInfoForRenderer,
1785 int /* child_process_id */,
1786 std::vector<PP_Resource> /* resources */,
1787 std::vector<ppapi::FileRef_DetailedInfo> /* detailed_info */)
1837 1788
1838 // Flash ----------------------------------------------------------------------- 1789 // Flash -----------------------------------------------------------------------
1839 1790
1840 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create) 1791 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_Create)
1841 1792
1842 // Message to notify the browser to register an update in system activity. 1793 // Message to notify the browser to register an update in system activity.
1843 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_UpdateActivity) 1794 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Flash_UpdateActivity)
1844 1795
1845 // Query the browser for the proxy server to use for the given URL. 1796 // Query the browser for the proxy server to use for the given URL.
1846 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetProxyForURL, std::string /* url */) 1797 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Flash_GetProxyForURL, std::string /* url */)
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
2057 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, 2008 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission,
2058 PP_TalkPermission /* permission */) 2009 PP_TalkPermission /* permission */)
2059 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) 2010 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply)
2060 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) 2011 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting)
2061 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) 2012 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply)
2062 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) 2013 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting)
2063 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) 2014 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply)
2064 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) 2015 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */)
2065 2016
2066 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 2017 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698