dom/network/interfaces/nsITCPServerSocketParent.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/network/interfaces/nsITCPServerSocketParent.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,42 @@
     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 "nsITCPSocketParent.idl"
    1.10 +
    1.11 +interface nsIDOMTCPServerSocket;
    1.12 +
    1.13 +/** 
    1.14 + * Interface required to allow the TCP server-socket object in the parent process
    1.15 + * to talk to the parent IPC actor.
    1.16 + * It is used in the server socket implementation on the parent side.
    1.17 + */
    1.18 +[scriptable, uuid(161ffc9f-54d3-4f21-a536-4166003d0e1d)]
    1.19 +interface nsITCPServerSocketParent : nsISupports
    1.20 +{
    1.21 +  /**
    1.22 +   * Trigger a callback in the content process when the socket accepts any request.
    1.23 +   *
    1.24 +   * @param socket
    1.25 +   *        The socket generated in accepting any open request on the parent side.
    1.26 +   */
    1.27 +  void sendCallbackAccept(in nsITCPSocketParent socket);
    1.28 +
    1.29 +  /**
    1.30 +   * Trigger a callback in the content process when an error occurs.
    1.31 +   *
    1.32 +   * @param message
    1.33 +   *        The error message.
    1.34 +   * @param filename
    1.35 +   *        The file name in which the error occured.
    1.36 +   * @param lineNumber
    1.37 +   *        The line number in which the error occured.
    1.38 +   * @param columnNumber
    1.39 +   *        The column number in which the error occured.
    1.40 +   */
    1.41 +  void sendCallbackError(in DOMString message,
    1.42 +                         in DOMString filename,
    1.43 +                         in uint32_t lineNumber,
    1.44 +                         in uint32_t columnNumber);
    1.45 +};

mercurial