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

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

Issue 9669038: Added out-of-process support for server sockets. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync. Created 8 years, 9 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
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/file_path.h" 10 #include "base/file_path.h"
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 std::string /* data */, 330 std::string /* data */,
331 PP_NetAddress_Private /* remote_addr */) 331 PP_NetAddress_Private /* remote_addr */)
332 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_SendToACK, 332 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_SendToACK,
333 uint32 /* plugin_dispatcher_id */, 333 uint32 /* plugin_dispatcher_id */,
334 uint32 /* socket_id */, 334 uint32 /* socket_id */,
335 bool /* succeeded */, 335 bool /* succeeded */,
336 int32_t /* bytes_written */) 336 int32_t /* bytes_written */)
337 337
338 // PPB_TCPServerSocket_Private. 338 // PPB_TCPServerSocket_Private.
339 339
340 // |socket_resource| should not be used as Resource in browser. The
341 // only purpose of this argument is to be echoed back.
340 // |status| == PP_ERROR_NOSPACE means that the socket table is full 342 // |status| == PP_ERROR_NOSPACE means that the socket table is full
341 // and new socket can't be initialized. 343 // and new socket can't be initialized.
342 // |status| == PP_ERROR_FAILED means that socket is correctly 344 // |status| == PP_ERROR_FAILED means that socket is correctly
343 // initialized (if needed) but Listen call is failed. 345 // initialized (if needed) but Listen call is failed.
344 // |status| == PP_OK means that socket is correctly initialized (if 346 // |status| == PP_OK means that socket is correctly initialized (if
345 // needed) and Listen call succeeds. 347 // needed) and Listen call succeeds.
346 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPServerSocket_ListenACK, 348 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPServerSocket_ListenACK,
347 uint32 /* plugin_dispatcher_id */, 349 uint32 /* plugin_dispatcher_id */,
350 PP_Resource /* socket_resource */,
348 uint32 /* real_socket_id */, 351 uint32 /* real_socket_id */,
yzshen1 2012/03/13 17:46:32 Please remove 'real' (several places in this file.
ygorshenin1 2012/03/14 11:36:18 Done.
349 uint32 /* temp_socket_id */,
350 int32_t /* status */) 352 int32_t /* status */)
351 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPServerSocket_AcceptACK, 353 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPServerSocket_AcceptACK,
352 uint32 /* plugin_dispatcher_id */, 354 uint32 /* plugin_dispatcher_id */,
353 uint32 /* real_server_socket_id */, 355 uint32 /* real_socket_id */,
354 uint32 /* accepted_socket_id */, 356 uint32 /* accepted_socket_id */,
355 PP_NetAddress_Private /* local_addr */, 357 PP_NetAddress_Private /* local_addr */,
356 PP_NetAddress_Private /* remote_addr */) 358 PP_NetAddress_Private /* remote_addr */)
357 359
358 // PPB_Graphics2D. 360 // PPB_Graphics2D.
359 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, 361 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK,
360 ppapi::HostResource /* graphics_2d */, 362 ppapi::HostResource /* graphics_2d */,
361 int32_t /* pp_error */) 363 int32_t /* pp_error */)
362 364
363 // PPB_Graphics3D. 365 // PPB_Graphics3D.
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
1240 uint32 /* socket_id */, 1242 uint32 /* socket_id */,
1241 std::string /* data */, 1243 std::string /* data */,
1242 PP_NetAddress_Private /* net_addr */) 1244 PP_NetAddress_Private /* net_addr */)
1243 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBUDPSocket_Close, 1245 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBUDPSocket_Close,
1244 uint32 /* socket_id */) 1246 uint32 /* socket_id */)
1245 1247
1246 // PPB_TCPServerSocket_Private. 1248 // PPB_TCPServerSocket_Private.
1247 IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBTCPServerSocket_Listen, 1249 IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBTCPServerSocket_Listen,
1248 int32 /* routing_id */, 1250 int32 /* routing_id */,
1249 uint32 /* plugin_dispatcher_id */, 1251 uint32 /* plugin_dispatcher_id */,
1250 uint32 /* temp_socket_id */, 1252 PP_Resource /* socket_resource */,
1251 PP_NetAddress_Private /* addr */, 1253 PP_NetAddress_Private /* addr */,
1252 int32_t /* backlog */) 1254 int32_t /* backlog */)
1253 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Accept, 1255 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBTCPServerSocket_Accept,
1256 int32 /* tcp_client_sockets_routing_id */,
1254 uint32 /* real_socket_id */) 1257 uint32 /* real_socket_id */)
1255 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Destroy, 1258 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Destroy,
1256 uint32 /* real_socket_id */) 1259 uint32 /* real_socket_id */)
1257 1260
1258 // PPB_Font. 1261 // PPB_Font.
1259 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies, 1262 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies,
1260 std::string /* result */) 1263 std::string /* result */)
1261 #endif // !defined(OS_NACL) 1264 #endif // !defined(OS_NACL)
1262
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698