dom/network/interfaces/nsITCPServerSocketChild.idl

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     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 "nsIDOMTCPServerSocket.idl"
     8 interface nsITCPServerSocketInternal;
    10 /**
    11  * Interface to allow the content process server socket to reach the IPC bridge.
    12  * It is used in the server socket implementation on the child side.
    13  */
    15 [scriptable, uuid(41a77ec8-fd86-409e-aea9-af2ca407ef8e)]
    16 interface nsITCPServerSocketChild : nsISupports
    17 {
    18   /**
    19    * Tell the chrome process to listen on the port with the given parameters.
    20    *
    21    * @param serverSocket
    22    *        The server socket generated in the listen of nsIDOMTCPSocket
    23    *        on the child side.
    24    * @param port
    25    *        The port of the server socket.
    26    * @param backlog 
    27    *        The maximum length the queue of pending connections may grow to.
    28    * @param binaryType
    29    *        "arraybuffer" to use UInt8 array instances or "string" to use String.
    30    */
    31   [implicit_jscontext]
    32   void listen(in nsITCPServerSocketInternal serverSocket, in unsigned short port,
    33               in unsigned short backlog, in DOMString binaryType);
    35   /**
    36    * Tell the chrome process to close the server socket.
    37    */
    38   void close();
    39 };

mercurial