dom/network/interfaces/nsITCPServerSocketParent.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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