OLD | NEW |
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" |
11 #include "base/process.h" | 11 #include "base/process.h" |
12 #include "base/shared_memory.h" | 12 #include "base/shared_memory.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 #include "base/sync_socket.h" | 14 #include "base/sync_socket.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "gpu/command_buffer/common/command_buffer.h" | 16 #include "gpu/command_buffer/common/command_buffer.h" |
17 #include "gpu/ipc/gpu_command_buffer_traits.h" | 17 #include "gpu/ipc/gpu_command_buffer_traits.h" |
18 #include "ipc/ipc_channel_handle.h" | 18 #include "ipc/ipc_channel_handle.h" |
19 #include "ipc/ipc_message_macros.h" | 19 #include "ipc/ipc_message_macros.h" |
20 #include "ipc/ipc_message_utils.h" | 20 #include "ipc/ipc_message_utils.h" |
21 #include "ipc/ipc_platform_file.h" | 21 #include "ipc/ipc_platform_file.h" |
22 #include "ppapi/c/dev/pp_video_capture_dev.h" | 22 #include "ppapi/c/dev/pp_video_capture_dev.h" |
23 #include "ppapi/c/dev/pp_video_dev.h" | 23 #include "ppapi/c/dev/pp_video_dev.h" |
24 #include "ppapi/c/dev/ppb_directory_reader_dev.h" | |
25 #include "ppapi/c/dev/ppb_text_input_dev.h" | 24 #include "ppapi/c/dev/ppb_text_input_dev.h" |
26 #include "ppapi/c/dev/ppb_truetype_font_dev.h" | 25 #include "ppapi/c/dev/ppb_truetype_font_dev.h" |
27 #include "ppapi/c/dev/ppb_url_util_dev.h" | 26 #include "ppapi/c/dev/ppb_url_util_dev.h" |
28 #include "ppapi/c/dev/ppp_printing_dev.h" | 27 #include "ppapi/c/dev/ppp_printing_dev.h" |
29 #include "ppapi/c/pp_bool.h" | 28 #include "ppapi/c/pp_bool.h" |
30 #include "ppapi/c/pp_file_info.h" | 29 #include "ppapi/c/pp_file_info.h" |
31 #include "ppapi/c/pp_instance.h" | 30 #include "ppapi/c/pp_instance.h" |
32 #include "ppapi/c/pp_module.h" | 31 #include "ppapi/c/pp_module.h" |
33 #include "ppapi/c/pp_point.h" | 32 #include "ppapi/c/pp_point.h" |
34 #include "ppapi/c/pp_rect.h" | 33 #include "ppapi/c/pp_rect.h" |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 uint32_t /* callback_id */, | 466 uint32_t /* callback_id */, |
468 int32_t /* result */) | 467 int32_t /* result */) |
469 | 468 |
470 IPC_MESSAGE_ROUTED4( | 469 IPC_MESSAGE_ROUTED4( |
471 PpapiMsg_PPBFileRef_QueryCallbackComplete, | 470 PpapiMsg_PPBFileRef_QueryCallbackComplete, |
472 ppapi::HostResource /* resource */, | 471 ppapi::HostResource /* resource */, |
473 PP_FileInfo /* file_info */, | 472 PP_FileInfo /* file_info */, |
474 uint32_t /* callback_id */, | 473 uint32_t /* callback_id */, |
475 int32_t /* result */) | 474 int32_t /* result */) |
476 | 475 |
| 476 IPC_MESSAGE_ROUTED5( |
| 477 PpapiMsg_PPBFileRef_ReadDirectoryEntriesCallbackComplete, |
| 478 ppapi::HostResource /* resource */, |
| 479 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */, |
| 480 std::vector<PP_FileType> /* file_types */, |
| 481 uint32_t /* callback_id */, |
| 482 int32_t /* result */) |
| 483 |
477 // PPB_FileSystem. | 484 // PPB_FileSystem. |
478 IPC_MESSAGE_ROUTED2( | 485 IPC_MESSAGE_ROUTED2( |
479 PpapiMsg_PPBFileSystem_OpenComplete, | 486 PpapiMsg_PPBFileSystem_OpenComplete, |
480 ppapi::HostResource /* filesystem */, | 487 ppapi::HostResource /* filesystem */, |
481 int32_t /* result */) | 488 int32_t /* result */) |
482 | 489 |
483 // PPB_Graphics3D. | 490 // PPB_Graphics3D. |
484 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK, | 491 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK, |
485 ppapi::HostResource /* graphics_3d */, | 492 ppapi::HostResource /* graphics_3d */, |
486 int32_t /* pp_error */) | 493 int32_t /* pp_error */) |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_Rename, | 834 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBFileRef_Rename, |
828 ppapi::HostResource /* file_ref */, | 835 ppapi::HostResource /* file_ref */, |
829 ppapi::HostResource /* new_file_ref */, | 836 ppapi::HostResource /* new_file_ref */, |
830 uint32_t /* callback_id */) | 837 uint32_t /* callback_id */) |
831 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Query, | 838 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_Query, |
832 ppapi::HostResource /* file_ref */, | 839 ppapi::HostResource /* file_ref */, |
833 uint32_t /* callback_id */) | 840 uint32_t /* callback_id */) |
834 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetAbsolutePath, | 841 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFileRef_GetAbsolutePath, |
835 ppapi::HostResource /* file_ref */, | 842 ppapi::HostResource /* file_ref */, |
836 ppapi::proxy::SerializedVar /* result */) | 843 ppapi::proxy::SerializedVar /* result */) |
| 844 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBFileRef_ReadDirectoryEntries, |
| 845 ppapi::HostResource /* file_ref */, |
| 846 uint32_t /* callback_id */) |
837 | 847 |
838 // PPB_Graphics3D. | 848 // PPB_Graphics3D. |
839 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create, | 849 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Create, |
840 PP_Instance /* instance */, | 850 PP_Instance /* instance */, |
841 ppapi::HostResource /* share_context */, | 851 ppapi::HostResource /* share_context */, |
842 std::vector<int32_t> /* attrib_list */, | 852 std::vector<int32_t> /* attrib_list */, |
843 ppapi::HostResource /* result */) | 853 ppapi::HostResource /* result */) |
844 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer, | 854 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer, |
845 ppapi::HostResource /* context */) | 855 ppapi::HostResource /* context */) |
846 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer, | 856 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_SetGetBuffer, |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1323 // Messages for resources using call/reply above. | 1333 // Messages for resources using call/reply above. |
1324 | 1334 |
1325 // Broker ---------------------------------------------------------------------- | 1335 // Broker ---------------------------------------------------------------------- |
1326 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_Create) | 1336 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_Create) |
1327 | 1337 |
1328 // Queries whether the plugin has permission to connect to the Pepper broker. | 1338 // Queries whether the plugin has permission to connect to the Pepper broker. |
1329 // The response is contained in the error value of the | 1339 // The response is contained in the error value of the |
1330 // ResourceMessageReplyParams in the reply message. | 1340 // ResourceMessageReplyParams in the reply message. |
1331 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_IsAllowed) | 1341 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Broker_IsAllowed) |
1332 | 1342 |
1333 // Directory reader. | |
1334 IPC_MESSAGE_CONTROL0(PpapiHostMsg_DirectoryReader_Create) | |
1335 IPC_MESSAGE_CONTROL1(PpapiHostMsg_DirectoryReader_GetEntries, | |
1336 ppapi::HostResource /* file_ref_resource */) | |
1337 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_DirectoryReader_GetEntriesReply, | |
1338 std::vector<ppapi::PPB_FileRef_CreateInfo> /* files */, | |
1339 std::vector<PP_FileType> /* file_types */) | |
1340 | |
1341 // Extensions common ----------------------------------------------------------- | 1343 // Extensions common ----------------------------------------------------------- |
1342 IPC_MESSAGE_CONTROL0(PpapiHostMsg_ExtensionsCommon_Create) | 1344 IPC_MESSAGE_CONTROL0(PpapiHostMsg_ExtensionsCommon_Create) |
1343 | 1345 |
1344 // Starts an extension API request which doesn't expect a response. | 1346 // Starts an extension API request which doesn't expect a response. |
1345 // |request_name| is an API function name. |args| is a list of input arguments. | 1347 // |request_name| is an API function name. |args| is a list of input arguments. |
1346 IPC_MESSAGE_CONTROL2(PpapiHostMsg_ExtensionsCommon_Post, | 1348 IPC_MESSAGE_CONTROL2(PpapiHostMsg_ExtensionsCommon_Post, |
1347 std::string /* request_name */, | 1349 std::string /* request_name */, |
1348 base::ListValue /* args */) | 1350 base::ListValue /* args */) |
1349 | 1351 |
1350 // Starts an extension API request which expects a response sent back using a | 1352 // Starts an extension API request which expects a response sent back using a |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1836 std::vector<ppapi::HostResource> /* buffers */, | 1838 std::vector<ppapi::HostResource> /* buffers */, |
1837 uint32_t /* buffer_size */) | 1839 uint32_t /* buffer_size */) |
1838 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 1840 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
1839 uint32_t /* status */) | 1841 uint32_t /* status */) |
1840 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 1842 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
1841 uint32_t /* error */) | 1843 uint32_t /* error */) |
1842 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 1844 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
1843 uint32_t /* buffer */) | 1845 uint32_t /* buffer */) |
1844 | 1846 |
1845 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1847 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |