Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/antitracking/bouncetrackingprotection/nsIBTPRemoteExceptionList.idl
*/
#ifndef __gen_nsIBTPRemoteExceptionList_h__
#define __gen_nsIBTPRemoteExceptionList_h__
#include "nsISupports.h"
#include "nsIBounceTrackingProtection.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: nsIBTPRemoteExceptionList */
#define NS_IBTPREMOTEEXCEPTIONLIST_IID_STR "06f13674-fb28-4dfc-bf25-342c83705b2f"
#define NS_IBTPREMOTEEXCEPTIONLIST_IID \
{0x06f13674, 0xfb28, 0x4dfc, \
{ 0xbf, 0x25, 0x34, 0x2c, 0x83, 0x70, 0x5b, 0x2f }}
class NS_NO_VTABLE nsIBTPRemoteExceptionList : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBTPREMOTEEXCEPTIONLIST_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIBTPRemoteExceptionList;
/* Promise init (in nsIBounceTrackingProtection aProtection); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(nsIBounceTrackingProtection *aProtection, ::mozilla::dom::Promise * * _retval) = 0;
/* void shutdown (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Shutdown(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIBTPRemoteExceptionList, NS_IBTPREMOTEEXCEPTIONLIST_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIBTPREMOTEEXCEPTIONLIST \
NS_IMETHOD Init(nsIBounceTrackingProtection *aProtection, ::mozilla::dom::Promise * * _retval) 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_NSIBTPREMOTEEXCEPTIONLIST \
nsresult Init(nsIBounceTrackingProtection *aProtection, ::mozilla::dom::Promise * * _retval); \
nsresult Shutdown(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIBTPREMOTEEXCEPTIONLIST(_to) \
NS_IMETHOD Init(nsIBounceTrackingProtection *aProtection, ::mozilla::dom::Promise * * _retval) override { return _to Init(aProtection, _retval); } \
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_NSIBTPREMOTEEXCEPTIONLIST(_to) \
NS_IMETHOD Init(nsIBounceTrackingProtection *aProtection, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aProtection, _retval); } \
NS_IMETHOD Shutdown(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); }
#define NS_NSIBTPEXCEPTIONLISTSERVICE_CONTRACTID "@mozilla.org/btp-remote-exception-list;1"
#endif /* __gen_nsIBTPRemoteExceptionList_h__ */