Files
tubestation/dom/webidl/PrivateAttribution.webidl
Ted Campbell b473163b79 Bug 1918736 - Replace PrivateAttribution origin trial with PrivateAttributionV2 r=emilio
The PrivateAttribution API has gone through a number of changes (particually
around OHTTP) since the trial was first added to tree, so issue a new trial so
that only updated versions of the API will be targetted. This also removes
support for the old trial.

Differential Revision: https://phabricator.services.mozilla.com/D222159
2024-09-13 18:15:18 +00:00

30 lines
1.0 KiB
Plaintext

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 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/. */
enum PrivateAttributionImpressionType { "view", "click" };
dictionary PrivateAttributionImpressionOptions {
PrivateAttributionImpressionType type = "view";
required unsigned long index;
required DOMString ad;
required UTF8String target;
};
dictionary PrivateAttributionConversionOptions {
required DOMString task;
required unsigned long histogramSize;
unsigned long lookbackDays;
PrivateAttributionImpressionType impression;
sequence<DOMString> ads = [];
sequence<UTF8String> sources = [];
};
[Trial="PrivateAttributionV2", SecureContext, Exposed=Window]
interface PrivateAttribution {
[Throws] undefined saveImpression(PrivateAttributionImpressionOptions options);
[Throws] undefined measureConversion(PrivateAttributionConversionOptions options);
};