Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: ppapi/proxy/ppapi_messages.h

Issue 22923014: TCPSockets are switched to the new Pepper proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/ppb_tcp_socket_private_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 PP_Instance /* instance */, 679 PP_Instance /* instance */,
680 PP_DecryptorStreamType /* decoder_type */, 680 PP_DecryptorStreamType /* decoder_type */,
681 uint32_t /* request_id */) 681 uint32_t /* request_id */)
682 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_DecryptAndDecode, 682 IPC_MESSAGE_ROUTED4(PpapiMsg_PPPContentDecryptor_DecryptAndDecode,
683 PP_Instance /* instance */, 683 PP_Instance /* instance */,
684 PP_DecryptorStreamType /* decoder_type */, 684 PP_DecryptorStreamType /* decoder_type */,
685 ppapi::proxy::PPPDecryptor_Buffer /* buffer */, 685 ppapi::proxy::PPPDecryptor_Buffer /* buffer */,
686 std::string /* serialized_block_info */) 686 std::string /* serialized_block_info */)
687 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 687 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
688 688
689 // PPB_TCPSocket and PPB_TCPSocket_Private.
690 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPSocket_ConnectACK,
691 uint32 /* plugin_dispatcher_id */,
692 uint32 /* socket_id */,
693 int32_t /* result */,
694 PP_NetAddress_Private /* local_addr */,
695 PP_NetAddress_Private /* remote_addr */)
696 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_SSLHandshakeACK,
697 uint32 /* plugin_dispatcher_id */,
698 uint32 /* socket_id */,
699 bool /* succeeded */,
700 ppapi::PPB_X509Certificate_Fields /* certificate_fields */)
701 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPSocket_ReadACK,
702 uint32 /* plugin_dispatcher_id */,
703 uint32 /* socket_id */,
704 int32_t /* result */,
705 std::string /* data */)
706 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBTCPSocket_WriteACK,
707 uint32 /* plugin_dispatcher_id */,
708 uint32 /* socket_id */,
709 int32_t /* result */)
710 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBTCPSocket_SetOptionACK,
711 uint32 /* plugin_dispatcher_id */,
712 uint32 /* socket_id */,
713 int32_t /* result */)
714
715 #if !defined(OS_NACL) && !defined(NACL_WIN64) 689 #if !defined(OS_NACL) && !defined(NACL_WIN64)
716 // PPP_Instance_Private. 690 // PPP_Instance_Private.
717 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject, 691 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiMsg_PPPInstancePrivate_GetInstanceObject,
718 PP_Instance /* instance */, 692 PP_Instance /* instance */,
719 ppapi::proxy::SerializedVar /* result */) 693 ppapi::proxy::SerializedVar /* result */)
720 694
721 // PPB_VideoDecoder_Dev. 695 // PPB_VideoDecoder_Dev.
722 // (Messages from renderer to plugin to notify it to run callbacks.) 696 // (Messages from renderer to plugin to notify it to run callbacks.)
723 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK, 697 IPC_MESSAGE_ROUTED3(PpapiMsg_PPBVideoDecoder_EndOfBitstreamACK,
724 ppapi::HostResource /* video_decoder */, 698 ppapi::HostResource /* video_decoder */,
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create, 1077 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Create,
1104 PP_Instance /* instance */, 1078 PP_Instance /* instance */,
1105 ppapi::HostResource /* result */) 1079 ppapi::HostResource /* result */)
1106 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Run, 1080 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBFlashMessageLoop_Run,
1107 ppapi::HostResource /* flash_message_loop */, 1081 ppapi::HostResource /* flash_message_loop */,
1108 int32_t /* result */) 1082 int32_t /* result */)
1109 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlashMessageLoop_Quit, 1083 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBFlashMessageLoop_Quit,
1110 ppapi::HostResource /* flash_message_loop */) 1084 ppapi::HostResource /* flash_message_loop */)
1111 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1085 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
1112 1086
1113 // PPB_TCPSocket and PPB_TCPSocket_Private.
1114 // Creates a PPB_TCPSocket resource.
1115 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBTCPSocket_Create,
1116 int32 /* routing_id */,
1117 uint32 /* plugin_dispatcher_id */,
1118 uint32 /* socket_id */)
1119 // Creates a PPB_TCPSocket_Private resource.
1120 IPC_SYNC_MESSAGE_CONTROL2_1(PpapiHostMsg_PPBTCPSocket_CreatePrivate,
1121 int32 /* routing_id */,
1122 uint32 /* plugin_dispatcher_id */,
1123 uint32 /* socket_id */)
1124 IPC_MESSAGE_CONTROL4(PpapiHostMsg_PPBTCPSocket_Connect,
1125 int32 /* routing_id */,
1126 uint32 /* socket_id */,
1127 std::string /* host */,
1128 uint16_t /* port */)
1129 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBTCPSocket_ConnectWithNetAddress,
1130 int32 /* routing_id */,
1131 uint32 /* socket_id */,
1132 PP_NetAddress_Private /* net_addr */)
1133 IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBTCPSocket_SSLHandshake,
1134 uint32 /* socket_id */,
1135 std::string /* server_name */,
1136 uint16_t /* server_port */,
1137 std::vector<std::vector<char> > /* trusted_certs */,
1138 std::vector<std::vector<char> > /* untrusted_certs */)
1139 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Read,
1140 uint32 /* socket_id */,
1141 int32_t /* bytes_to_read */)
1142 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPSocket_Write,
1143 uint32 /* socket_id */,
1144 std::string /* data */)
1145 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPSocket_Disconnect,
1146 uint32 /* socket_id */)
1147 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBTCPSocket_SetOption,
1148 uint32 /* socket_id */,
1149 PP_TCPSocket_Option /* name */,
1150 ppapi::SocketOptionData /* value */)
1151
1152 // PPB_X509Certificate_Private 1087 // PPB_X509Certificate_Private
1153 IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER, 1088 IPC_SYNC_MESSAGE_CONTROL1_2(PpapiHostMsg_PPBX509Certificate_ParseDER,
1154 std::vector<char> /* der */, 1089 std::vector<char> /* der */,
1155 bool /* succeeded */, 1090 bool /* succeeded */,
1156 ppapi::PPB_X509Certificate_Fields /* result */) 1091 ppapi::PPB_X509Certificate_Fields /* result */)
1157 1092
1158 //----------------------------------------------------------------------------- 1093 //-----------------------------------------------------------------------------
1159 // Resource call/reply messages. 1094 // Resource call/reply messages.
1160 // 1095 //
1161 // These are the new-style resource implementations where the resource is only 1096 // These are the new-style resource implementations where the resource is only
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1501 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolver_ResolveReply, 1436 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_HostResolver_ResolveReply,
1502 std::string /* canonical_name */, 1437 std::string /* canonical_name */,
1503 std::vector<PP_NetAddress_Private> /* net_address_list */) 1438 std::vector<PP_NetAddress_Private> /* net_address_list */)
1504 1439
1505 // Printing. 1440 // Printing.
1506 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create) 1441 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_Create)
1507 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings) 1442 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Printing_GetDefaultPrintSettings)
1508 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply, 1443 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Printing_GetDefaultPrintSettingsReply,
1509 PP_PrintSettings_Dev /* print_settings */) 1444 PP_PrintSettings_Dev /* print_settings */)
1510 1445
1446 // TCP Socket ------------------------------------------------------------------
1447 // Creates a PPB_TCPSocket resource.
1448 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_Create)
1449
1450 // Creates a PPB_TCPSocket_Private resource.
1451 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_CreatePrivate)
1452
1453 IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPSocket_Connect,
1454 std::string /* host */,
1455 uint16_t /* port */)
1456 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_ConnectWithNetAddress,
1457 PP_NetAddress_Private /* net_addr */)
1458 IPC_MESSAGE_CONTROL2(PpapiPluginMsg_TCPSocket_ConnectReply,
1459 PP_NetAddress_Private /* local_addr */,
1460 PP_NetAddress_Private /* remote_addr */)
1461 IPC_MESSAGE_CONTROL4(PpapiHostMsg_TCPSocket_SSLHandshake,
1462 std::string /* server_name */,
1463 uint16_t /* server_port */,
1464 std::vector<std::vector<char> > /* trusted_certs */,
1465 std::vector<std::vector<char> > /* untrusted_certs */)
1466 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_SSLHandshakeReply,
1467 ppapi::PPB_X509Certificate_Fields /* certificate_fields */)
1468 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Read,
1469 int32_t /* bytes_to_read */)
1470 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPSocket_ReadReply,
1471 std::string /* data */)
1472 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPSocket_Write,
1473 std::string /* data */)
1474 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_WriteReply)
1475 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPSocket_Disconnect)
1476 IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPSocket_SetOption,
1477 PP_TCPSocket_Option /* name */,
1478 ppapi::SocketOptionData /* value */)
1479 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_TCPSocket_SetOptionReply)
1480
1511 // TCP Server Socket ----------------------------------------------------------- 1481 // TCP Server Socket -----------------------------------------------------------
1512 // Creates a PPB_TCPServerSocket_Private resource. 1482 // Creates a PPB_TCPServerSocket_Private resource.
1513 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_CreatePrivate) 1483 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_CreatePrivate)
1514 1484
1515 IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPServerSocket_Listen, 1485 IPC_MESSAGE_CONTROL2(PpapiHostMsg_TCPServerSocket_Listen,
1516 PP_NetAddress_Private /* addr */, 1486 PP_NetAddress_Private /* addr */,
1517 int32_t /* backlog */) 1487 int32_t /* backlog */)
1518 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPServerSocket_ListenReply, 1488 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_TCPServerSocket_ListenReply,
1519 PP_NetAddress_Private /* local_addr */) 1489 PP_NetAddress_Private /* local_addr */)
1520 IPC_MESSAGE_CONTROL1(PpapiHostMsg_TCPServerSocket_Accept, 1490 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_Accept)
1521 uint32 /* plugin_dispatcher_id */)
1522 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPServerSocket_AcceptReply, 1491 IPC_MESSAGE_CONTROL3(PpapiPluginMsg_TCPServerSocket_AcceptReply,
1523 uint32 /* accepted_socket_id */, 1492 int /* pending_resource_id */,
1524 PP_NetAddress_Private /* local_addr */, 1493 PP_NetAddress_Private /* local_addr */,
1525 PP_NetAddress_Private /* remote_addr */) 1494 PP_NetAddress_Private /* remote_addr */)
1526 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_StopListening) 1495 IPC_MESSAGE_CONTROL0(PpapiHostMsg_TCPServerSocket_StopListening)
1527 1496
1528 // UDP Socket ------------------------------------------------------------------ 1497 // UDP Socket ------------------------------------------------------------------
1529 // Creates a PPB_UDPSocket resource. 1498 // Creates a PPB_UDPSocket resource.
1530 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Create) 1499 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_Create)
1531 1500
1532 // Creates a PPB_UDPSocket_Private resource. 1501 // Creates a PPB_UDPSocket_Private resource.
1533 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_CreatePrivate) 1502 IPC_MESSAGE_CONTROL0(PpapiHostMsg_UDPSocket_CreatePrivate)
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
2003 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission, 1972 IPC_MESSAGE_CONTROL1(PpapiHostMsg_Talk_RequestPermission,
2004 PP_TalkPermission /* permission */) 1973 PP_TalkPermission /* permission */)
2005 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply) 1974 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_RequestPermissionReply)
2006 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting) 1975 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StartRemoting)
2007 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply) 1976 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StartRemotingReply)
2008 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting) 1977 IPC_MESSAGE_CONTROL0(PpapiHostMsg_Talk_StopRemoting)
2009 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply) 1978 IPC_MESSAGE_CONTROL0(PpapiPluginMsg_Talk_StopRemotingReply)
2010 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */) 1979 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_Talk_NotifyEvent, PP_TalkEvent /* event */)
2011 1980
2012 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) 1981 #endif // !defined(OS_NACL) && !defined(NACL_WIN64)
OLDNEW
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/ppb_tcp_socket_private_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698