1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/network/interfaces/nsITCPServerSocketChild.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,39 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file, 1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "domstubs.idl" 1.9 +#include "nsIDOMTCPServerSocket.idl" 1.10 + 1.11 +interface nsITCPServerSocketInternal; 1.12 + 1.13 +/** 1.14 + * Interface to allow the content process server socket to reach the IPC bridge. 1.15 + * It is used in the server socket implementation on the child side. 1.16 + */ 1.17 + 1.18 +[scriptable, uuid(41a77ec8-fd86-409e-aea9-af2ca407ef8e)] 1.19 +interface nsITCPServerSocketChild : nsISupports 1.20 +{ 1.21 + /** 1.22 + * Tell the chrome process to listen on the port with the given parameters. 1.23 + * 1.24 + * @param serverSocket 1.25 + * The server socket generated in the listen of nsIDOMTCPSocket 1.26 + * on the child side. 1.27 + * @param port 1.28 + * The port of the server socket. 1.29 + * @param backlog 1.30 + * The maximum length the queue of pending connections may grow to. 1.31 + * @param binaryType 1.32 + * "arraybuffer" to use UInt8 array instances or "string" to use String. 1.33 + */ 1.34 + [implicit_jscontext] 1.35 + void listen(in nsITCPServerSocketInternal serverSocket, in unsigned short port, 1.36 + in unsigned short backlog, in DOMString binaryType); 1.37 + 1.38 + /** 1.39 + * Tell the chrome process to close the server socket. 1.40 + */ 1.41 + void close(); 1.42 +};