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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1582 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolver_ResolveReply, | 1546 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolver_ResolveReply, |
1583 std::string /* canonical_name */, | 1547 std::string /* canonical_name */, |
1584 std::vector<PP_NetAddress_Private> /* net_address_list */) | 1548 std::vector<PP_NetAddress_Private> /* net_address_list */) |
1585 | 1549 |
1586 // Printing. | 1550 // Printing. |
1587 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) | 1551 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) |
1588 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) | 1552 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) |
1589 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, | 1553 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, |
1590 PP_PrintSettings_Dev /* print_settings */) | 1554 PP_PrintSettings_Dev /* print_settings */) |
1591 | 1555 |
| 1556 // TCP Server Socket ----------------------------------------------------------- |
| 1557 // Creates a PPB_TCPServerSocket_Private resource. |
| 1558 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_CreatePrivate) |
| 1559 |
| 1560 IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPServerSocket_Listen, |
| 1561 PP_NetAddress_Private /* addr */, |
| 1562 int32_t /* backlog */) |
| 1563 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPServerSocket_ListenReply, |
| 1564 PP_NetAddress_Private /* local_addr */) |
| 1565 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPServerSocket_Accept, |
| 1566 uint32 /* plugin_dispatcher_id */) |
| 1567 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPServerSocket_AcceptReply, |
| 1568 uint32 /* accepted_socket_id */, |
| 1569 PP_NetAddress_Private /* local_addr */, |
| 1570 PP_NetAddress_Private /* remote_addr */) |
| 1571 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_StopListening) |
| 1572 |
1592 // UDP Socket ------------------------------------------------------------------ | 1573 // UDP Socket ------------------------------------------------------------------ |
1593 // Creates a PPB_UDPSocket resource. | 1574 // Creates a PPB_UDPSocket resource. |
1594 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Create) | 1575 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Create) |
1595 | 1576 |
1596 // Creates a PPB_UDPSocket_Private resource. | 1577 // Creates a PPB_UDPSocket_Private resource. |
1597 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_CreatePrivate) | 1578 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_CreatePrivate) |
1598 | 1579 |
1599 IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SetOption, | 1580 IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SetOption, |
1600 PP_UDPSocket_Option /* name */, | 1581 PP_UDPSocket_Option /* name */, |
1601 ppapi::SocketOptionData /* value */) | 1582 ppapi::SocketOptionData /* value */) |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2059 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, | 2040 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, |
2060 PP_TalkPermission /* permission */) | 2041 PP_TalkPermission /* permission */) |
2061 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) | 2042 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) |
2062 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) | 2043 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) |
2063 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) | 2044 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) |
2064 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) | 2045 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) |
2065 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) | 2046 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) |
2066 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) | 2047 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) |
2067 | 2048 |
2068 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 2049 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |