Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/privateattribution/nsIPrivateAttributionService.idl
*/
#ifndef __gen_nsIPrivateAttributionService_h__
#define __gen_nsIPrivateAttributionService_h__
#include "nsISupports.h"
#include "nsTArray.h"
#include "js/GCAnnotations.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
/* starting interface: nsIPrivateAttributionService */
#define NS_IPRIVATEATTRIBUTIONSERVICE_IID_STR "c7e7fc54-4133-4191-bd40-cc2b77fd21bc"
#define NS_IPRIVATEATTRIBUTIONSERVICE_IID \
{0xc7e7fc54, 0x4133, 0x4191, \
{ 0xbd, 0x40, 0xcc, 0x2b, 0x77, 0xfd, 0x21, 0xbc }}
class NS_NO_VTABLE nsIPrivateAttributionService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRIVATEATTRIBUTIONSERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIPrivateAttributionService;
/* void onAttributionEvent (in ACString sourceHost, in ACString type, in uint32_t index, in AString ad, in ACString targetHost); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnAttributionEvent(const nsACString& sourceHost, const nsACString& type, uint32_t index, const nsAString& ad, const nsACString& targetHost) = 0;
/* 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); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnAttributionConversion(const nsACString& targetHost, const nsAString& task, uint32_t histogramSize, uint32_t lookbackDays, const nsACString& impressionType, const nsTArray<nsString >& ads, const nsTArray<nsCString >& sourceHosts) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIPrivateAttributionService, NS_IPRIVATEATTRIBUTIONSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPRIVATEATTRIBUTIONSERVICE \
NS_IMETHOD OnAttributionEvent(const nsACString& sourceHost, const nsACString& type, uint32_t index, const nsAString& ad, const nsACString& targetHost) override; \
NS_IMETHOD OnAttributionConversion(const nsACString& targetHost, const nsAString& task, uint32_t histogramSize, uint32_t lookbackDays, const nsACString& impressionType, const nsTArray<nsString >& ads, const nsTArray<nsCString >& sourceHosts) override;
/* Use this macro when declaring the members of this interface when the
class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIPRIVATEATTRIBUTIONSERVICE \
nsresult OnAttributionEvent(const nsACString& sourceHost, const nsACString& type, uint32_t index, const nsAString& ad, const nsACString& targetHost); \
nsresult OnAttributionConversion(const nsACString& targetHost, const nsAString& task, uint32_t histogramSize, uint32_t lookbackDays, const nsACString& impressionType, const nsTArray<nsString >& ads, const nsTArray<nsCString >& sourceHosts);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPRIVATEATTRIBUTIONSERVICE(_to) \
NS_IMETHOD OnAttributionEvent(const nsACString& sourceHost, const nsACString& type, uint32_t index, const nsAString& ad, const nsACString& targetHost) override { return _to OnAttributionEvent(sourceHost, type, index, ad, targetHost); } \
NS_IMETHOD OnAttributionConversion(const nsACString& targetHost, const nsAString& task, uint32_t histogramSize, uint32_t lookbackDays, const nsACString& impressionType, const nsTArray<nsString >& ads, const nsTArray<nsCString >& sourceHosts) override { return _to OnAttributionConversion(targetHost, task, histogramSize, lookbackDays, impressionType, ads, sourceHosts); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPRIVATEATTRIBUTIONSERVICE(_to) \
NS_IMETHOD OnAttributionEvent(const nsACString& sourceHost, const nsACString& type, uint32_t index, const nsAString& ad, const nsACString& targetHost) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAttributionEvent(sourceHost, type, index, ad, targetHost); } \
NS_IMETHOD OnAttributionConversion(const nsACString& targetHost, const nsAString& task, uint32_t histogramSize, uint32_t lookbackDays, const nsACString& impressionType, const nsTArray<nsString >& ads, const nsTArray<nsCString >& sourceHosts) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAttributionConversion(targetHost, task, histogramSize, lookbackDays, impressionType, ads, sourceHosts); }
#endif /* __gen_nsIPrivateAttributionService_h__ */