dom/network/interfaces/nsITCPServerSocketChild.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #include "domstubs.idl"
michael@0 6 #include "nsIDOMTCPServerSocket.idl"
michael@0 7
michael@0 8 interface nsITCPServerSocketInternal;
michael@0 9
michael@0 10 /**
michael@0 11 * Interface to allow the content process server socket to reach the IPC bridge.
michael@0 12 * It is used in the server socket implementation on the child side.
michael@0 13 */
michael@0 14
michael@0 15 [scriptable, uuid(41a77ec8-fd86-409e-aea9-af2ca407ef8e)]
michael@0 16 interface nsITCPServerSocketChild : nsISupports
michael@0 17 {
michael@0 18 /**
michael@0 19 * Tell the chrome process to listen on the port with the given parameters.
michael@0 20 *
michael@0 21 * @param serverSocket
michael@0 22 * The server socket generated in the listen of nsIDOMTCPSocket
michael@0 23 * on the child side.
michael@0 24 * @param port
michael@0 25 * The port of the server socket.
michael@0 26 * @param backlog
michael@0 27 * The maximum length the queue of pending connections may grow to.
michael@0 28 * @param binaryType
michael@0 29 * "arraybuffer" to use UInt8 array instances or "string" to use String.
michael@0 30 */
michael@0 31 [implicit_jscontext]
michael@0 32 void listen(in nsITCPServerSocketInternal serverSocket, in unsigned short port,
michael@0 33 in unsigned short backlog, in DOMString binaryType);
michael@0 34
michael@0 35 /**
michael@0 36 * Tell the chrome process to close the server socket.
michael@0 37 */
michael@0 38 void close();
michael@0 39 };

mercurial