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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1597 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolver_ResolveReply, | 1561 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolver_ResolveReply, |
1598 std::string /* canonical_name */, | 1562 std::string /* canonical_name */, |
1599 std::vector<PP_NetAddress_Private> /* net_address_list */) | 1563 std::vector<PP_NetAddress_Private> /* net_address_list */) |
1600 | 1564 |
1601 // Printing. | 1565 // Printing. |
1602 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) | 1566 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) |
1603 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) | 1567 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) |
1604 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, | 1568 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, |
1605 PP_PrintSettings_Dev /* print_settings */) | 1569 PP_PrintSettings_Dev /* print_settings */) |
1606 | 1570 |
| 1571 // TCP Server Socket ----------------------------------------------------------- |
| 1572 // Creates a PPB_TCPServerSocket_Private resource. |
| 1573 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_CreatePrivate) |
| 1574 |
| 1575 IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPServerSocket_Listen, |
| 1576 PP_NetAddress_Private /* addr */, |
| 1577 int32_t /* backlog */) |
| 1578 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPServerSocket_ListenReply, |
| 1579 PP_NetAddress_Private /* local_addr */) |
| 1580 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPServerSocket_Accept, |
| 1581 uint32 /* plugin_dispatcher_id */) |
| 1582 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPServerSocket_AcceptReply, |
| 1583 uint32 /* accepted_socket_id */, |
| 1584 PP_NetAddress_Private /* local_addr */, |
| 1585 PP_NetAddress_Private /* remote_addr */) |
| 1586 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_StopListening) |
| 1587 |
1607 // UDP Socket ------------------------------------------------------------------ | 1588 // UDP Socket ------------------------------------------------------------------ |
1608 // Creates a PPB_UDPSocket resource. | 1589 // Creates a PPB_UDPSocket resource. |
1609 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Create) | 1590 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Create) |
1610 | 1591 |
1611 // Creates a PPB_UDPSocket_Private resource. | 1592 // Creates a PPB_UDPSocket_Private resource. |
1612 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_CreatePrivate) | 1593 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_CreatePrivate) |
1613 | 1594 |
1614 IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SetOption, | 1595 IPC_MESSAGE_CONTROL2(PpapiHostMsg_UDPSocket_SetOption, |
1615 PP_UDPSocket_Option /* name */, | 1596 PP_UDPSocket_Option /* name */, |
1616 ppapi::SocketOptionData /* value */) | 1597 ppapi::SocketOptionData /* value */) |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2076 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, | 2057 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, |
2077 PP_TalkPermission /* permission */) | 2058 PP_TalkPermission /* permission */) |
2078 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) | 2059 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) |
2079 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) | 2060 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) |
2080 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) | 2061 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) |
2081 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) | 2062 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) |
2082 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) | 2063 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) |
2083 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) | 2064 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) |
2084 | 2065 |
2085 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 2066 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |