michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "domstubs.idl" michael@0: #include "nsIDOMTCPServerSocket.idl" michael@0: michael@0: interface nsITCPServerSocketInternal; michael@0: michael@0: /** michael@0: * Interface to allow the content process server socket to reach the IPC bridge. michael@0: * It is used in the server socket implementation on the child side. michael@0: */ michael@0: michael@0: [scriptable, uuid(41a77ec8-fd86-409e-aea9-af2ca407ef8e)] michael@0: interface nsITCPServerSocketChild : nsISupports michael@0: { michael@0: /** michael@0: * Tell the chrome process to listen on the port with the given parameters. michael@0: * michael@0: * @param serverSocket michael@0: * The server socket generated in the listen of nsIDOMTCPSocket michael@0: * on the child side. michael@0: * @param port michael@0: * The port of the server socket. michael@0: * @param backlog michael@0: * The maximum length the queue of pending connections may grow to. michael@0: * @param binaryType michael@0: * "arraybuffer" to use UInt8 array instances or "string" to use String. michael@0: */ michael@0: [implicit_jscontext] michael@0: void listen(in nsITCPServerSocketInternal serverSocket, in unsigned short port, michael@0: in unsigned short backlog, in DOMString binaryType); michael@0: michael@0: /** michael@0: * Tell the chrome process to close the server socket. michael@0: */ michael@0: void close(); michael@0: };