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

Unified 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, 11 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/api/private/ppb_tcp_server_socket_private.idl
diff --git a/ppapi/api/private/ppb_tcp_server_socket_private.idl b/ppapi/api/private/ppb_tcp_server_socket_private.idl
new file mode 100644
index 0000000000000000000000000000000000000000..950d9d5a286fddb6a386680790d6d5d1782eb8c7
--- /dev/null
+++ b/ppapi/api/private/ppb_tcp_server_socket_private.idl
@@ -0,0 +1,51 @@
+/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/**
+ * This file defines the <code>PPB_TCPServerSocket_Private</code> interface.
+ */
+
+label Chrome {
+ M18 = 0.1
+};
+
+/**
+ * The <code>PPB_TCPServerSocket_Private</code> interface provides TCP
+ * server socket operations.
+ */
+interface PPB_TCPServerSocket_Private {
+ /**
+ * Allocates a TCP server socket resource.
+ */
+ PP_Resource Create([in] PP_Instance instance);
+
+ /**
+ * Determines if a given resource is TCP server socket.
+ */
+ PP_Bool IsTCPServerSocket([in] PP_Resource resource);
+
+ /**
+ * Binds the socket and starts listening.
+ */
+ 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.
+ [in] PP_NetAddress_Private addr,
+ [in] int32_t backlog,
+ [in] PP_CompletionCallback callback);
+
+ /**
+ * Accept connection. Callback is called when new connection is
+ * accepted.
+ */
+ int32_t Accept([in] PP_Resource tcp_server_socket,
+ [out] PP_Resource tcp_socket,
+ [in] PP_CompletionCallback callback);
+
+ /**
+ * Cancels all pending callbacks reporting PP_Error_Aborted and
+ * closes the socket. Note: this method is implicitly called when
+ * server socket is destroyed.
+ */
+ void StopListening([in] PP_Resource tcp_server_socket);
+};

Powered by Google App Engine
This is Rietveld 408576698