tor-browser

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

constants.js (811B)


      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
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 "use strict";
      6 
      7 /**
      8 * Set of protocol messages that affect thread state, and the
      9 * state the actor is in after each message.
     10 */
     11 const ThreadStateTypes = {
     12  paused: "paused",
     13  resumed: "attached",
     14  running: "attached",
     15 };
     16 
     17 /**
     18 * Set of protocol messages that are sent by the server without a prior request
     19 * by the client. This only applies to Actors for which we are not using a
     20 * protocol.js Front and instead use DevToolsClient directly.
     21 */
     22 const UnsolicitedNotifications = {
     23  networkEventUpdate: "networkEventUpdate",
     24 };
     25 
     26 module.exports = {
     27  ThreadStateTypes,
     28  UnsolicitedNotifications,
     29 };