tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsIUtilityProcessTest.idl (1670B)


      1 /* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this
      4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 #include "nsISupports.idl"
      7 
      8 [scriptable, uuid(0a4478f4-c5ae-4fb1-8686-d5b09fb99afb)]
      9 interface nsIUtilityProcessTest : nsISupports
     10 {
     11  /**
     12   * ** Test-only Method **
     13   *
     14   * Start a generic utility process from JS code.
     15   *
     16   * actorsToAdd: An array of actor names, taken from WebIDLUtilityActorName.
     17   * Unlike normal utility processes, test processes launched this way do not
     18   * have any associated actor names unless specified here.  Empty by default.
     19   */
     20  [implicit_jscontext]
     21  Promise startProcess([optional] in Array<ACString> actorsToAdd);
     22 
     23  /**
     24   * ** Test-only Method **
     25   *
     26   * Report when a child process is actually dead (as opposed to merely having
     27   * been removed from our internal list of child processes). Must be called
     28   * while the process is still live.
     29   *
     30   * Only implemented on Windows.
     31   */
     32  [implicit_jscontext]
     33  Promise untilChildProcessDead(in uint32_t pid);
     34 
     35  /**
     36   * ** Test-only Method **
     37   *
     38   * Note that we are going to manually crash a process
     39   */
     40  void noteIntentionalCrash(in unsigned long pid);
     41 
     42  /**
     43   * ** Test-only Method **
     44   *
     45   * Allowing to stop Utility Process from JS code.
     46   * Default behavior is to stop any utility process.
     47   */
     48  void stopProcess([optional] in string utilityActorName);
     49 
     50  /**
     51   * ** Test-only Method **
     52   *
     53   * Sending Telemetry probes
     54   */
     55  void testTelemetryProbes();
     56 };