Copy as Markdown
Other Tools
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/resistfingerprinting/nsIFingerprintingWebCompatService.idl
*/
#ifndef __gen_nsIFingerprintingWebCompatService_h__
#define __gen_nsIFingerprintingWebCompatService_h__
#include "nsISupports.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: nsIFingerprintingOverride */
#define NS_IFINGERPRINTINGOVERRIDE_IID_STR "07f45442-1806-44be-9230-12eb79de9bac"
#define NS_IFINGERPRINTINGOVERRIDE_IID \
{0x07f45442, 0x1806, 0x44be, \
{ 0x92, 0x30, 0x12, 0xeb, 0x79, 0xde, 0x9b, 0xac }}
class NS_NO_VTABLE nsIFingerprintingOverride : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFINGERPRINTINGOVERRIDE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIFingerprintingOverride;
/* readonly attribute ACString firstPartyDomain; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFirstPartyDomain(nsACString& aFirstPartyDomain) = 0;
/* readonly attribute ACString thirdPartyDomain; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetThirdPartyDomain(nsACString& aThirdPartyDomain) = 0;
/* readonly attribute ACString overrides; */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOverrides(nsACString& aOverrides) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIFingerprintingOverride, NS_IFINGERPRINTINGOVERRIDE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFINGERPRINTINGOVERRIDE \
NS_IMETHOD GetFirstPartyDomain(nsACString& aFirstPartyDomain) override; \
NS_IMETHOD GetThirdPartyDomain(nsACString& aThirdPartyDomain) override; \
NS_IMETHOD GetOverrides(nsACString& aOverrides) 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_NSIFINGERPRINTINGOVERRIDE \
nsresult GetFirstPartyDomain(nsACString& aFirstPartyDomain); \
nsresult GetThirdPartyDomain(nsACString& aThirdPartyDomain); \
nsresult GetOverrides(nsACString& aOverrides);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFINGERPRINTINGOVERRIDE(_to) \
NS_IMETHOD GetFirstPartyDomain(nsACString& aFirstPartyDomain) override { return _to GetFirstPartyDomain(aFirstPartyDomain); } \
NS_IMETHOD GetThirdPartyDomain(nsACString& aThirdPartyDomain) override { return _to GetThirdPartyDomain(aThirdPartyDomain); } \
NS_IMETHOD GetOverrides(nsACString& aOverrides) override { return _to GetOverrides(aOverrides); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIFINGERPRINTINGOVERRIDE(_to) \
NS_IMETHOD GetFirstPartyDomain(nsACString& aFirstPartyDomain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstPartyDomain(aFirstPartyDomain); } \
NS_IMETHOD GetThirdPartyDomain(nsACString& aThirdPartyDomain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThirdPartyDomain(aThirdPartyDomain); } \
NS_IMETHOD GetOverrides(nsACString& aOverrides) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOverrides(aOverrides); }
/* starting interface: nsIFingerprintingWebCompatService */
#define NS_IFINGERPRINTINGWEBCOMPATSERVICE_IID_STR "e7b1da06-2594-4670-aea4-131070baca4c"
#define NS_IFINGERPRINTINGWEBCOMPATSERVICE_IID \
{0xe7b1da06, 0x2594, 0x4670, \
{ 0xae, 0xa4, 0x13, 0x10, 0x70, 0xba, 0xca, 0x4c }}
class NS_NO_VTABLE nsIFingerprintingWebCompatService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFINGERPRINTINGWEBCOMPATSERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIFingerprintingWebCompatService;
/* void init (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(void) = 0;
/* void shutdown (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Shutdown(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIFingerprintingWebCompatService, NS_IFINGERPRINTINGWEBCOMPATSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFINGERPRINTINGWEBCOMPATSERVICE \
NS_IMETHOD Init(void) override; \
NS_IMETHOD Shutdown(void) 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_NSIFINGERPRINTINGWEBCOMPATSERVICE \
nsresult Init(void); \
nsresult Shutdown(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFINGERPRINTINGWEBCOMPATSERVICE(_to) \
NS_IMETHOD Init(void) override { return _to Init(); } \
NS_IMETHOD Shutdown(void) override { return _to Shutdown(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIFINGERPRINTINGWEBCOMPATSERVICE(_to) \
NS_IMETHOD Init(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \
NS_IMETHOD Shutdown(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); }
#define NS_FINGERPRINTINGWEBCOMPATSERVICE_CONTRACTID "@mozilla.org/fingerprinting-webcompat-service;1"
#endif /* __gen_nsIFingerprintingWebCompatService_h__ */