summaryrefslogtreecommitdiffstats
path: root/devtools/server/tests/xpcshell/post_init_target_scoped_actors.js
blob: 9b0b4c053e20aa500993f2198816474f478079ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */

"use strict";

const { Actor } = require("resource://devtools/shared/protocol/Actor.js");

class PostInitTargetScopedActor extends Actor {
  constructor(conn) {
    super(conn, { typeName: "postInitTargetScoped", methods: [] });

    this.requestTypes = {
      ping: this.onPing,
    };
  }

  onPing() {
    return { message: "pong" };
  }
}

exports.PostInitTargetScopedActor = PostInitTargetScopedActor;