summaryrefslogtreecommitdiffstats
path: root/dom/workers/nsIWorkerDebuggerManager.idl
blob: ce047cfdc922ba973bfb60e1134b05bc89ab876d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */

#include "nsISupports.idl"

interface nsISimpleEnumerator;
interface nsIWorkerDebugger;

[scriptable, uuid(d2aa74ee-6b98-4d5d-8173-4e23422daf1e)]
interface nsIWorkerDebuggerManagerListener : nsISupports
{
  void onRegister(in nsIWorkerDebugger aDebugger);

  void onUnregister(in nsIWorkerDebugger aDebugger);
};

[scriptable, builtinclass, uuid(056d7918-dc86-452a-b4e6-86da3405f015)]
interface nsIWorkerDebuggerManager : nsISupports
{
  nsISimpleEnumerator getWorkerDebuggerEnumerator();

  void addListener(in nsIWorkerDebuggerManagerListener listener);

  void removeListener(in nsIWorkerDebuggerManagerListener listener);
};