gecko-dev/dom/privateattribution/nsIPrivateAttributionService.idl
Can Berk Güder 25039a4673 Bug 1901109 - Add initial unit tests for Private Attribution implementation. r=mt,simonf
* Allow mocking DAPTelemetrySender to test measurements without having
  to decrypt payloads
* Allow mocking Date.now to test expiration conditions

Also:

* Stop swallowing errors in DAPTelemetrySender
* Correct typo loopbackDays -> lookbackDays

Differential Revision: https://phabricator.services.mozilla.com/D212957
2024-07-11 22:09:09 +00:00

15 lines
763 B
Plaintext

/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* 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/. */
#include "nsISupports.idl"
[scriptable, uuid(c7e7fc54-4133-4191-bd40-cc2b77fd21bc)]
interface nsIPrivateAttributionService : nsISupports
{
void onAttributionEvent(in ACString sourceHost, in ACString type, in uint32_t index, in AString ad, in ACString targetHost);
void onAttributionConversion(in ACString targetHost, in AString task, in uint32_t histogramSize, in uint32_t lookbackDays, in ACString impressionType, in Array<AString> ads, in Array<ACString> sourceHosts);
};