| 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" |
| (...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 std::string /* data */) | 722 std::string /* data */) |
| 723 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBTCPSocket_WriteACK, | 723 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBTCPSocket_WriteACK, |
| 724 uint32 /* plugin_dispatcher_id */, | 724 uint32 /* plugin_dispatcher_id */, |
| 725 uint32 /* socket_id */, | 725 uint32 /* socket_id */, |
| 726 int32_t /* result */) | 726 int32_t /* result */) |
| 727 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBTCPSocket_SetOptionACK, | 727 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBTCPSocket_SetOptionACK, |
| 728 uint32 /* plugin_dispatcher_id */, | 728 uint32 /* plugin_dispatcher_id */, |
| 729 uint32 /* socket_id */, | 729 uint32 /* socket_id */, |
| 730 int32_t /* result */) | 730 int32_t /* result */) |
| 731 | 731 |
| 732 // PPB_TCPServerSocket_Private. | |
| 733 | |
| 734 // |socket_resource| should not be used as Resource in browser. The | |
| 735 // only purpose of this argument is to be echoed back. | |
| 736 // |status| == PP_ERROR_NOSPACE means that the socket table is full | |
| 737 // and new socket can't be initialized. | |
| 738 // |status| == PP_ERROR_FAILED means that socket is correctly | |
| 739 // initialized (if needed) but Listen call is failed. | |
| 740 // |status| == PP_OK means that socket is correctly initialized (if | |
| 741 // needed) and Listen call succeeds. | |
| 742 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPServerSocket_ListenACK, | |
| 743 uint32 /* plugin_dispatcher_id */, | |
| 744 PP_Resource /* socket_resource */, | |
| 745 uint32 /* socket_id */, | |
| 746 PP_NetAddress_Private /* local_addr */, | |
| 747 int32_t /* status */) | |
| 748 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPServerSocket_AcceptACK, | |
| 749 uint32 /* plugin_dispatcher_id */, | |
| 750 uint32 /* server_socket_id */, | |
| 751 uint32 /* accepted_socket_id */, | |
| 752 PP_NetAddress_Private /* local_addr */, | |
| 753 PP_NetAddress_Private /* remote_addr */) | |
| 754 | |
| 755 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 732 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
| 756 // PPP_Instance_Private. | 733 // PPP_Instance_Private. |
| 757 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, | 734 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, |
| 758 PP_Instance /* instance */, | 735 PP_Instance /* instance */, |
| 759 ppapi::proxy::SerializedVar /* result */) | 736 ppapi::proxy::SerializedVar /* result */) |
| 760 | 737 |
| 761 // PPB_VideoDecoder_Dev. | 738 // PPB_VideoDecoder_Dev. |
| 762 // (Messages from renderer to plugin to notify it to run callbacks.) | 739 // (Messages from renderer to plugin to notify it to run callbacks.) |
| 763 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK, | 740 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK, |
| 764 ppapi::HostResource /* video_decoder */, | 741 ppapi::HostResource /* video_decoder */, |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1219 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Write, | 1196 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Write, |
| 1220 uint32 /* socket_id */, | 1197 uint32 /* socket_id */, |
| 1221 std::string /* data */) | 1198 std::string /* data */) |
| 1222 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPSocket_Disconnect, | 1199 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPSocket_Disconnect, |
| 1223 uint32 /* socket_id */) | 1200 uint32 /* socket_id */) |
| 1224 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBTCPSocket_SetOption, | 1201 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBTCPSocket_SetOption, |
| 1225 uint32 /* socket_id */, | 1202 uint32 /* socket_id */, |
| 1226 PP_TCPSocket_Option /* name */, | 1203 PP_TCPSocket_Option /* name */, |
| 1227 ppapi::SocketOptionData /* value */) | 1204 ppapi::SocketOptionData /* value */) |
| 1228 | 1205 |
| 1229 // PPB_TCPServerSocket_Private. | |
| 1230 IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBTCPServerSocket_Listen, | |
| 1231 int32 /* routing_id */, | |
| 1232 uint32 /* plugin_dispatcher_id */, | |
| 1233 PP_Resource /* socket_resource */, | |
| 1234 PP_NetAddress_Private /* addr */, | |
| 1235 int32_t /* backlog */) | |
| 1236 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPServerSocket_Accept, | |
| 1237 int32 /* tcp_client_socket_routing_id */, | |
| 1238 uint32 /* server_socket_id */) | |
| 1239 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Destroy, | |
| 1240 uint32 /* socket_id */) | |
| 1241 | |
| 1242 // PPB_X509Certificate_Private | 1206 // PPB_X509Certificate_Private |
| 1243 IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER, | 1207 IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER, |
| 1244 std::vector<char> /* der */, | 1208 std::vector<char> /* der */, |
| 1245 bool /* succeeded */, | 1209 bool /* succeeded */, |
| 1246 ppapi::PPB_X509Certificate_Fields /* result */) | 1210 ppapi::PPB_X509Certificate_Fields /* result */) |
| 1247 | 1211 |
| 1248 //----------------------------------------------------------------------------- | 1212 //----------------------------------------------------------------------------- |
| 1249 // Resource call/reply messages. | 1213 // Resource call/reply messages. |
| 1250 // | 1214 // |
| 1251 // These are the new-style resource implementations where the resource is only | 1215 // These are the new-style resource implementations where the resource is only |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1581 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolver_ResolveReply, | 1545 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolver_ResolveReply, |
| 1582 std::string /* canonical_name */, | 1546 std::string /* canonical_name */, |
| 1583 std::vector<PP_NetAddress_Private> /* net_address_list */) | 1547 std::vector<PP_NetAddress_Private> /* net_address_list */) |
| 1584 | 1548 |
| 1585 // Printing. | 1549 // Printing. |
| 1586 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) | 1550 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) |
| 1587 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) | 1551 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) |
| 1588 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, | 1552 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, |
| 1589 PP_PrintSettings_Dev /* print_settings */) | 1553 PP_PrintSettings_Dev /* print_settings */) |
| 1590 | 1554 |
| 1555 // TCP Server Socket ----------------------------------------------------------- |
| 1556 // Creates a PPB_TCPServerSocket_Private resource. |
| 1557 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_CreatePrivate) |
| 1558 |
| 1559 IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPServerSocket_Listen, |
| 1560 PP_NetAddress_Private /* addr */, |
| 1561 int32_t /* backlog */) |
| 1562 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPServerSocket_ListenReply, |
| 1563 PP_NetAddress_Private /* local_addr */) |
| 1564 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPServerSocket_Accept, |
| 1565 uint32 /* plugin_dispatcher_id */) |
| 1566 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPServerSocket_AcceptReply, |
| 1567 uint32 /* accepted_socket_id */, |
| 1568 PP_NetAddress_Private /* local_addr */, |
| 1569 PP_NetAddress_Private /* remote_addr */) |
| 1570 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_StopListening) |
| 1571 |
| 1591 // UDP Socket ------------------------------------------------------------------ | 1572 // UDP Socket ------------------------------------------------------------------ |
| 1592 // Creates a PPB_UDPSocket resource. | 1573 // Creates a PPB_UDPSocket resource. |
| 1593 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Create) | 1574 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Create) |
| 1594 | 1575 |
| 1595 // Creates a PPB_UDPSocket_Private resource. | 1576 // Creates a PPB_UDPSocket_Private resource. |
| 1596 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_CreatePrivate) | 1577 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_CreatePrivate) |
| 1597 | 1578 |
| 1598 IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SetOption, | 1579 IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SetOption, |
| 1599 PP_UDPSocket_Option /* name */, | 1580 PP_UDPSocket_Option /* name */, |
| 1600 ppapi::SocketOptionData /* value */) | 1581 ppapi::SocketOptionData /* value */) |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2058 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, | 2039 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, |
| 2059 PP_TalkPermission /* permission */) | 2040 PP_TalkPermission /* permission */) |
| 2060 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) | 2041 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) |
| 2061 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) | 2042 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) |
| 2062 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) | 2043 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) |
| 2063 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) | 2044 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) |
| 2064 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) | 2045 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) |
| 2065 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) | 2046 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) |
| 2066 | 2047 |
| 2067 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 2048 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
| OLD | NEW |