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/. */
7 ChromeUtils.defineESModuleGetters(lazy, {
8 SearchSERPTelemetry: "resource:///modules/SearchSERPTelemetry.sys.mjs",
11 export class SearchSERPTelemetryParent extends JSWindowActorParent {
13 let browser = this.browsingContext.top.embedderElement;
16 case "SearchTelemetry:PageInfo": {
17 lazy.SearchSERPTelemetry.reportPageWithAds(msg.data, browser);
20 case "SearchTelemetry:AdImpressions": {
21 lazy.SearchSERPTelemetry.reportPageWithAdImpressions(msg.data, browser);
24 case "SearchTelemetry:Action": {
25 lazy.SearchSERPTelemetry.reportPageAction(msg.data, browser);
28 case "SearchTelemetry:PageImpression": {
29 lazy.SearchSERPTelemetry.reportPageImpression(msg.data, browser);
32 case "SearchTelemetry:Domains": {
33 lazy.SearchSERPTelemetry.reportPageDomains(msg.data, browser);