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 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 PP_Instance /* instance */, | 696 PP_Instance /* instance */, |
697 PP_DecryptorStreamType /* decoder_type */, | 697 PP_DecryptorStreamType /* decoder_type */, |
698 uint32_t /* request_id */) | 698 uint32_t /* request_id */) |
699 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_DecryptAndDecode, | 699 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_DecryptAndDecode, |
700 PP_Instance /* instance */, | 700 PP_Instance /* instance */, |
701 PP_DecryptorStreamType /* decoder_type */, | 701 PP_DecryptorStreamType /* decoder_type */, |
702 ppapi::proxy::PPPDecryptor_Buffer /* buffer */, | 702 ppapi::proxy::PPPDecryptor_Buffer /* buffer */, |
703 std::string /* serialized_block_info */) | 703 std::string /* serialized_block_info */) |
704 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 704 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
705 | 705 |
706 // PPB_TCPSocket and PPB_TCPSocket_Private. | |
707 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPSocket_ConnectACK, | |
708 uint32 /* plugin_dispatcher_id */, | |
709 uint32 /* socket_id */, | |
710 int32_t /* result */, | |
711 PP_NetAddress_Private /* local_addr */, | |
712 PP_NetAddress_Private /* remote_addr */) | |
713 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_SSLHandshakeACK, | |
714 uint32 /* plugin_dispatcher_id */, | |
715 uint32 /* socket_id */, | |
716 bool /* succeeded */, | |
717 ppapi::PPB_X509Certificate_Fields /* certificate_fields */) | |
718 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_ReadACK, | |
719 uint32 /* plugin_dispatcher_id */, | |
720 uint32 /* socket_id */, | |
721 int32_t /* result */, | |
722 std::string /* data */) | |
723 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBTCPSocket_WriteACK, | |
724 uint32 /* plugin_dispatcher_id */, | |
725 uint32 /* socket_id */, | |
726 int32_t /* result */) | |
727 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBTCPSocket_SetOptionACK, | |
728 uint32 /* plugin_dispatcher_id */, | |
729 uint32 /* socket_id */, | |
730 int32_t /* result */) | |
731 | |
732 #if !defined(OS_NACL) && !defined(NACL_WIN64) | 706 #if !defined(OS_NACL) && !defined(NACL_WIN64) |
733 // PPP_Instance_Private. | 707 // PPP_Instance_Private. |
734 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, | 708 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, |
735 PP_Instance /* instance */, | 709 PP_Instance /* instance */, |
736 ppapi::proxy::SerializedVar /* result */) | 710 ppapi::proxy::SerializedVar /* result */) |
737 | 711 |
738 // PPB_VideoDecoder_Dev. | 712 // PPB_VideoDecoder_Dev. |
739 // (Messages from renderer to plugin to notify it to run callbacks.) | 713 // (Messages from renderer to plugin to notify it to run callbacks.) |
740 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK, | 714 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK, |
741 ppapi::HostResource /* video_decoder */, | 715 ppapi::HostResource /* video_decoder */, |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create, | 1131 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create, |
1158 PP_Instance /* instance */, | 1132 PP_Instance /* instance */, |
1159 ppapi::HostResource /* result */) | 1133 ppapi::HostResource /* result */) |
1160 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Run, | 1134 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Run, |
1161 ppapi::HostResource /* flash_message_loop */, | 1135 ppapi::HostResource /* flash_message_loop */, |
1162 int32_t /* result */) | 1136 int32_t /* result */) |
1163 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlashMessageLoop_Quit, | 1137 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlashMessageLoop_Quit, |
1164 ppapi::HostResource /* flash_message_loop */) | 1138 ppapi::HostResource /* flash_message_loop */) |
1165 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 1139 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
1166 | 1140 |
1167 // PPB_TCPSocket and PPB_TCPSocket_Private. | |
1168 // Creates a PPB_TCPSocket resource. | |
1169 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBTCPSocket_Create, | |
1170 int32 /* routing_id */, | |
1171 uint32 /* plugin_dispatcher_id */, | |
1172 uint32 /* socket_id */) | |
1173 // Creates a PPB_TCPSocket_Private resource. | |
1174 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBTCPSocket_CreatePrivate, | |
1175 int32 /* routing_id */, | |
1176 uint32 /* plugin_dispatcher_id */, | |
1177 uint32 /* socket_id */) | |
1178 IPC_MESSAGE_CONTROL4(PpapiHostMsg_PPBTCPSocket_Connect, | |
1179 int32 /* routing_id */, | |
1180 uint32 /* socket_id */, | |
1181 std::string /* host */, | |
1182 uint16_t /* port */) | |
1183 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBTCPSocket_ConnectWithNetAddress, | |
1184 int32 /* routing_id */, | |
1185 uint32 /* socket_id */, | |
1186 PP_NetAddress_Private /* net_addr */) | |
1187 IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBTCPSocket_SSLHandshake, | |
1188 uint32 /* socket_id */, | |
1189 std::string /* server_name */, | |
1190 uint16_t /* server_port */, | |
1191 std::vector<std::vector<char> > /* trusted_certs */, | |
1192 std::vector<std::vector<char> > /* untrusted_certs */) | |
1193 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Read, | |
1194 uint32 /* socket_id */, | |
1195 int32_t /* bytes_to_read */) | |
1196 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Write, | |
1197 uint32 /* socket_id */, | |
1198 std::string /* data */) | |
1199 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPSocket_Disconnect, | |
1200 uint32 /* socket_id */) | |
1201 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBTCPSocket_SetOption, | |
1202 uint32 /* socket_id */, | |
1203 PP_TCPSocket_Option /* name */, | |
1204 ppapi::SocketOptionData /* value */) | |
1205 | |
1206 // PPB_X509Certificate_Private | 1141 // PPB_X509Certificate_Private |
1207 IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER, | 1142 IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER, |
1208 std::vector<char> /* der */, | 1143 std::vector<char> /* der */, |
1209 bool /* succeeded */, | 1144 bool /* succeeded */, |
1210 ppapi::PPB_X509Certificate_Fields /* result */) | 1145 ppapi::PPB_X509Certificate_Fields /* result */) |
1211 | 1146 |
1212 //----------------------------------------------------------------------------- | 1147 //----------------------------------------------------------------------------- |
1213 // Resource call/reply messages. | 1148 // Resource call/reply messages. |
1214 // | 1149 // |
1215 // These are the new-style resource implementations where the resource is only | 1150 // These are the new-style resource implementations where the resource is only |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1555 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolver_ResolveReply, | 1490 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolver_ResolveReply, |
1556 std::string /* canonical_name */, | 1491 std::string /* canonical_name */, |
1557 std::vector<PP_NetAddress_Private> /* net_address_list */) | 1492 std::vector<PP_NetAddress_Private> /* net_address_list */) |
1558 | 1493 |
1559 // Printing. | 1494 // Printing. |
1560 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) | 1495 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) |
1561 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) | 1496 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) |
1562 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, | 1497 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, |
1563 PP_PrintSettings_Dev /* print_settings */) | 1498 PP_PrintSettings_Dev /* print_settings */) |
1564 | 1499 |
| 1500 // TCP Socket ------------------------------------------------------------------ |
| 1501 // Creates a PPB_TCPSocket resource. |
| 1502 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_Create) |
| 1503 |
| 1504 // Creates a PPB_TCPSocket_Private resource. |
| 1505 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_CreatePrivate) |
| 1506 |
| 1507 IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPSocket_Connect, |
| 1508 std::string /* host */, |
| 1509 uint16_t /* port */) |
| 1510 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_ConnectWithNetAddress, |
| 1511 PP_NetAddress_Private /* net_addr */) |
| 1512 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_TCPSocket_ConnectReply, |
| 1513 PP_NetAddress_Private /* local_addr */, |
| 1514 PP_NetAddress_Private /* remote_addr */) |
| 1515 IPC_MESSAGE_CONTROL4(PpapiHostMsg_TCPSocket_SSLHandshake, |
| 1516 std::string /* server_name */, |
| 1517 uint16_t /* server_port */, |
| 1518 std::vector<std::vector<char> > /* trusted_certs */, |
| 1519 std::vector<std::vector<char> > /* untrusted_certs */) |
| 1520 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_SSLHandshakeReply, |
| 1521 ppapi::PPB_X509Certificate_Fields /* certificate_fields */) |
| 1522 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Read, |
| 1523 int32_t /* bytes_to_read */) |
| 1524 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_ReadReply, |
| 1525 std::string /* data */) |
| 1526 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Write, |
| 1527 std::string /* data */) |
| 1528 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_WriteReply) |
| 1529 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_Disconnect) |
| 1530 IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPSocket_SetOption, |
| 1531 PP_TCPSocket_Option /* name */, |
| 1532 ppapi::SocketOptionData /* value */) |
| 1533 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_SetOptionReply) |
| 1534 |
1565 // TCP Server Socket ----------------------------------------------------------- | 1535 // TCP Server Socket ----------------------------------------------------------- |
1566 // Creates a PPB_TCPServerSocket_Private resource. | 1536 // Creates a PPB_TCPServerSocket_Private resource. |
1567 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_CreatePrivate) | 1537 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_CreatePrivate) |
1568 | 1538 |
1569 IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPServerSocket_Listen, | 1539 IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPServerSocket_Listen, |
1570 PP_NetAddress_Private /* addr */, | 1540 PP_NetAddress_Private /* addr */, |
1571 int32_t /* backlog */) | 1541 int32_t /* backlog */) |
1572 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPServerSocket_ListenReply, | 1542 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPServerSocket_ListenReply, |
1573 PP_NetAddress_Private /* local_addr */) | 1543 PP_NetAddress_Private /* local_addr */) |
1574 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPServerSocket_Accept, | 1544 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_Accept) |
1575 uint32 /* plugin_dispatcher_id */) | |
1576 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPServerSocket_AcceptReply, | 1545 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPServerSocket_AcceptReply, |
1577 uint32 /* accepted_socket_id */, | 1546 int /* pending_resource_id */, |
1578 PP_NetAddress_Private /* local_addr */, | 1547 PP_NetAddress_Private /* local_addr */, |
1579 PP_NetAddress_Private /* remote_addr */) | 1548 PP_NetAddress_Private /* remote_addr */) |
1580 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_StopListening) | 1549 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_StopListening) |
1581 | 1550 |
1582 // UDP Socket ------------------------------------------------------------------ | 1551 // UDP Socket ------------------------------------------------------------------ |
1583 // Creates a PPB_UDPSocket resource. | 1552 // Creates a PPB_UDPSocket resource. |
1584 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Create) | 1553 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Create) |
1585 | 1554 |
1586 // Creates a PPB_UDPSocket_Private resource. | 1555 // Creates a PPB_UDPSocket_Private resource. |
1587 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_CreatePrivate) | 1556 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_CreatePrivate) |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2051 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, | 2020 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, |
2052 PP_TalkPermission /* permission */) | 2021 PP_TalkPermission /* permission */) |
2053 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) | 2022 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) |
2054 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) | 2023 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) |
2055 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) | 2024 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) |
2056 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) | 2025 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) |
2057 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) | 2026 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) |
2058 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) | 2027 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) |
2059 | 2028 |
2060 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 2029 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |