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 "nsITCPSocketParent.idl" michael@0: michael@0: interface nsIDOMTCPServerSocket; michael@0: michael@0: /** michael@0: * Interface required to allow the TCP server-socket object in the parent process michael@0: * to talk to the parent IPC actor. michael@0: * It is used in the server socket implementation on the parent side. michael@0: */ michael@0: [scriptable, uuid(161ffc9f-54d3-4f21-a536-4166003d0e1d)] michael@0: interface nsITCPServerSocketParent : nsISupports michael@0: { michael@0: /** michael@0: * Trigger a callback in the content process when the socket accepts any request. michael@0: * michael@0: * @param socket michael@0: * The socket generated in accepting any open request on the parent side. michael@0: */ michael@0: void sendCallbackAccept(in nsITCPSocketParent socket); michael@0: michael@0: /** michael@0: * Trigger a callback in the content process when an error occurs. michael@0: * michael@0: * @param message michael@0: * The error message. michael@0: * @param filename michael@0: * The file name in which the error occured. michael@0: * @param lineNumber michael@0: * The line number in which the error occured. michael@0: * @param columnNumber michael@0: * The column number in which the error occured. michael@0: */ michael@0: void sendCallbackError(in DOMString message, michael@0: in DOMString filename, michael@0: in uint32_t lineNumber, michael@0: in uint32_t columnNumber); michael@0: };