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

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

Issue 9283022: Exposed Listen and Accept methods to plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added comment, fixed StopListening. Created 8 years, 10 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 uint32 /* socket_id */, 323 uint32 /* socket_id */,
324 bool /* succeeded */, 324 bool /* succeeded */,
325 std::string /* data */, 325 std::string /* data */,
326 PP_NetAddress_Private /* remote_addr */) 326 PP_NetAddress_Private /* remote_addr */)
327 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_SendToACK, 327 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBUDPSocket_SendToACK,
328 uint32 /* plugin_dispatcher_id */, 328 uint32 /* plugin_dispatcher_id */,
329 uint32 /* socket_id */, 329 uint32 /* socket_id */,
330 bool /* succeeded */, 330 bool /* succeeded */,
331 int32_t /* bytes_written */) 331 int32_t /* bytes_written */)
332 332
333 // PPB_TCPServerSocket_Private.
334
335 // |status| == PP_ERROR_NOSPACE means that the socket table is full
336 // and new socket can't be initialized.
337 // |status| == PP_ERROR_FAILED means that socket is correctly
338 // initialized (if needed) but Listen call is failed.
339 // |status| == PP_OK means that socket is correctly initialized (if
340 // needed) and Listen call succeeds.
341 IPC_MESSAGE_ROUTED4(PpapiMsg_PPBTCPServerSocket_ListenACK,
342 uint32 /* plugin_dispatcher_id */,
343 uint32 /* real_socket_id */,
344 uint32 /* temp_socket_id */,
345 int32_t /* status */)
346 IPC_MESSAGE_ROUTED5(PpapiMsg_PPBTCPServerSocket_AcceptACK,
347 uint32 /* plugin_dispatcher_id */,
348 uint32 /* real_server_socket_id */,
349 uint32 /* accepted_socket_id */,
350 PP_NetAddress_Private /* local_addr */,
351 PP_NetAddress_Private /* remote_addr */)
352
333 // PPB_Graphics2D. 353 // PPB_Graphics2D.
334 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, 354 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK,
335 ppapi::HostResource /* graphics_2d */, 355 ppapi::HostResource /* graphics_2d */,
336 int32_t /* pp_error */) 356 int32_t /* pp_error */)
337 357
338 // PPB_Graphics3D. 358 // PPB_Graphics3D.
339 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK, 359 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics3D_SwapBuffersACK,
340 ppapi::HostResource /* graphics_3d */, 360 ppapi::HostResource /* graphics_3d */,
341 int32_t /* pp_error */) 361 int32_t /* pp_error */)
342 362
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBUDPSocket_RecvFrom, 844 IPC_MESSAGE_CONTROL2(PpapiHostMsg_PPBUDPSocket_RecvFrom,
825 uint32 /* socket_id */, 845 uint32 /* socket_id */,
826 int32_t /* num_bytes */) 846 int32_t /* num_bytes */)
827 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_SendTo, 847 IPC_MESSAGE_CONTROL3(PpapiHostMsg_PPBUDPSocket_SendTo,
828 uint32 /* socket_id */, 848 uint32 /* socket_id */,
829 std::string /* data */, 849 std::string /* data */,
830 PP_NetAddress_Private /* net_addr */) 850 PP_NetAddress_Private /* net_addr */)
831 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBUDPSocket_Close, 851 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBUDPSocket_Close,
832 uint32 /* socket_id */) 852 uint32 /* socket_id */)
833 853
854 // PPB_TCPServerSocket_Private.
855 IPC_MESSAGE_CONTROL5(PpapiHostMsg_PPBTCPServerSocket_Listen,
856 int32 /* routing_id */,
857 uint32 /* plugin_dispatcher_id */,
858 uint32 /* temp_socket_id */,
859 PP_NetAddress_Private /* addr */,
860 int32_t /* backlog */)
861 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Accept,
862 uint32 /* real_socket_id */)
863 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBTCPServerSocket_Destroy,
864 uint32 /* real_socket_id */)
865
834 // PPB_Font. 866 // PPB_Font.
835 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies, 867 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies,
836 std::string /* result */) 868 std::string /* result */)
837 869
838 // PPB_Graphics2D. 870 // PPB_Graphics2D.
839 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create, 871 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create,
840 PP_Instance /* instance */, 872 PP_Instance /* instance */,
841 PP_Size /* size */, 873 PP_Size /* size */,
842 PP_Bool /* is_always_opaque */, 874 PP_Bool /* is_always_opaque */,
843 ppapi::HostResource /* result */) 875 ppapi::HostResource /* result */)
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 std::vector<PP_PictureBuffer_Dev> /* picture buffers */) 1169 std::vector<PP_PictureBuffer_Dev> /* picture buffers */)
1138 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, 1170 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer,
1139 ppapi::HostResource /* video_decoder */, 1171 ppapi::HostResource /* video_decoder */,
1140 int32_t /* picture buffer id */) 1172 int32_t /* picture buffer id */)
1141 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, 1173 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush,
1142 ppapi::HostResource /* video_decoder */) 1174 ppapi::HostResource /* video_decoder */)
1143 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, 1175 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset,
1144 ppapi::HostResource /* video_decoder */) 1176 ppapi::HostResource /* video_decoder */)
1145 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, 1177 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy,
1146 ppapi::HostResource /* video_decoder */) 1178 ppapi::HostResource /* video_decoder */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698