dom/network/interfaces/nsITCPServerSocketParent.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

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     3  * You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #include "domstubs.idl"
     6 #include "nsITCPSocketParent.idl"
     8 interface nsIDOMTCPServerSocket;
    10 /** 
    11  * Interface required to allow the TCP server-socket object in the parent process
    12  * to talk to the parent IPC actor.
    13  * It is used in the server socket implementation on the parent side.
    14  */
    15 [scriptable, uuid(161ffc9f-54d3-4f21-a536-4166003d0e1d)]
    16 interface nsITCPServerSocketParent : nsISupports
    17 {
    18   /**
    19    * Trigger a callback in the content process when the socket accepts any request.
    20    *
    21    * @param socket
    22    *        The socket generated in accepting any open request on the parent side.
    23    */
    24   void sendCallbackAccept(in nsITCPSocketParent socket);
    26   /**
    27    * Trigger a callback in the content process when an error occurs.
    28    *
    29    * @param message
    30    *        The error message.
    31    * @param filename
    32    *        The file name in which the error occured.
    33    * @param lineNumber
    34    *        The line number in which the error occured.
    35    * @param columnNumber
    36    *        The column number in which the error occured.
    37    */
    38   void sendCallbackError(in DOMString message,
    39                          in DOMString filename,
    40                          in uint32_t lineNumber,
    41                          in uint32_t columnNumber);
    42 };

mercurial