2020-04-29 23:12:34 +00:00
|
|
|
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
|
|
|
|
/* 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 http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2023-03-16 12:50:27 +00:00
|
|
|
import { RemotePageChild } from "resource://gre/actors/RemotePageChild.sys.mjs";
|
2020-04-29 23:12:34 +00:00
|
|
|
|
2022-10-17 17:51:57 +00:00
|
|
|
export class AboutProtectionsChild extends RemotePageChild {
|
2020-04-29 23:12:34 +00:00
|
|
|
actorCreated() {
|
|
|
|
super.actorCreated();
|
|
|
|
|
2024-09-27 11:48:58 +00:00
|
|
|
this.exportFunctions(["RPMRecordGleanEvent"]);
|
2020-04-29 23:12:34 +00:00
|
|
|
}
|
|
|
|
|
2024-09-27 11:48:58 +00:00
|
|
|
RPMRecordGleanEvent(category, name, extra) {
|
|
|
|
Glean[category]?.[name]?.record(extra);
|
2020-04-29 23:12:34 +00:00
|
|
|
}
|
|
|
|
}
|