Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/antitracking/nsIContentBlockingAllowList.idl
*/
#ifndef __gen_nsIContentBlockingAllowList_h__
#define __gen_nsIContentBlockingAllowList_h__
#include "nsISupports.h"
#include "nsIPrincipal.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: nsIContentBlockingAllowList */
#define NS_ICONTENTBLOCKINGALLOWLIST_IID_STR "00ed5d73-9de5-42cf-868c-e739a94f6b37"
#define NS_ICONTENTBLOCKINGALLOWLIST_IID \
{0x00ed5d73, 0x9de5, 0x42cf, \
{ 0x86, 0x8c, 0xe7, 0x39, 0xa9, 0x4f, 0x6b, 0x37 }}
class NS_NO_VTABLE nsIContentBlockingAllowList : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENTBLOCKINGALLOWLIST_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIContentBlockingAllowList;
/* nsIPrincipal computeContentBlockingAllowListPrincipal (in nsIPrincipal aPrincipal); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ComputeContentBlockingAllowListPrincipal(nsIPrincipal *aPrincipal, nsIPrincipal **_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIContentBlockingAllowList, NS_ICONTENTBLOCKINGALLOWLIST_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICONTENTBLOCKINGALLOWLIST \
NS_IMETHOD ComputeContentBlockingAllowListPrincipal(nsIPrincipal *aPrincipal, nsIPrincipal **_retval) 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_NSICONTENTBLOCKINGALLOWLIST \
nsresult ComputeContentBlockingAllowListPrincipal(nsIPrincipal *aPrincipal, nsIPrincipal **_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICONTENTBLOCKINGALLOWLIST(_to) \
NS_IMETHOD ComputeContentBlockingAllowListPrincipal(nsIPrincipal *aPrincipal, nsIPrincipal **_retval) override { return _to ComputeContentBlockingAllowListPrincipal(aPrincipal, _retval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICONTENTBLOCKINGALLOWLIST(_to) \
NS_IMETHOD ComputeContentBlockingAllowListPrincipal(nsIPrincipal *aPrincipal, nsIPrincipal **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ComputeContentBlockingAllowListPrincipal(aPrincipal, _retval); }
#endif /* __gen_nsIContentBlockingAllowList_h__ */