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

Side by Side Diff: ppapi/api/private/ppb_tcp_server_socket_private.idl

Issue 9283022: Exposed Listen and Accept methods to plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added shared declaration of GetPPB_TCPServerSocketPrivate_0_1_Thunk. 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
(Empty)
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
3 * found in the LICENSE file.
4 */
5
6 /**
7 * This file defines the <code>PPB_TCPServerSocket_Private</code> interface.
8 */
9
10 label Chrome {
11 M18 = 0.1
12 };
13
14 /**
15 * The <code>PPB_TCPServerSocket_Private</code> interface provides TCP
16 * server socket operations.
17 */
18 interface PPB_TCPServerSocket_Private {
19 /**
20 * Allocates a TCP server socket resource.
21 */
22 PP_Resource Create([in] PP_Instance instance);
23
24 /**
25 * Determines if a given resource is TCP server socket.
26 */
27 PP_Bool IsTCPServerSocket([in] PP_Resource resource);
28
29 /**
30 * Binds the socket and starts listening.
31 */
32 int32_t Listen([in] PP_Resource tcp_server_socket,
brettw 2012/02/07 00:15:22 These functions need documentation.
ygorshenin1 2012/02/07 13:42:59 Done.
33 [in] PP_NetAddress_Private addr,
34 [in] int32_t backlog,
35 [in] PP_CompletionCallback callback);
36
37 /**
38 * Accept connection. Callback is called when new connection is
39 * accepted.
40 */
41 int32_t Accept([in] PP_Resource tcp_server_socket,
42 [out] PP_Resource tcp_socket,
43 [in] PP_CompletionCallback callback);
44
45 /**
46 * Cancels all pending callbacks reporting PP_Error_Aborted and
47 * closes the socket. Note: this method is implicitly called when
48 * server socket is destroyed.
49 */
50 void StopListening([in] PP_Resource tcp_server_socket);
51 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698