Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/cookiebanners/nsICookieBannerListService.idl
*/
#ifndef __gen_nsICookieBannerListService_h__
#define __gen_nsICookieBannerListService_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: nsICookieBannerListService */
#define NS_ICOOKIEBANNERLISTSERVICE_IID_STR "1d8d9470-97d3-4885-a108-44a5c4fb36e2"
#define NS_ICOOKIEBANNERLISTSERVICE_IID \
{0x1d8d9470, 0x97d3, 0x4885, \
{ 0xa1, 0x08, 0x44, 0xa5, 0xc4, 0xfb, 0x36, 0xe2 }}
class NS_NO_VTABLE nsICookieBannerListService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOOKIEBANNERLISTSERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsICookieBannerListService;
/* void init (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(void) = 0;
/* Promise initForTest (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD InitForTest(::mozilla::dom::Promise * * _retval) = 0;
/* void shutdown (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Shutdown(void) = 0;
/* void importAllRules (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ImportAllRules(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsICookieBannerListService, NS_ICOOKIEBANNERLISTSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSICOOKIEBANNERLISTSERVICE \
NS_IMETHOD Init(void) override; \
NS_IMETHOD InitForTest(::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD Shutdown(void) override; \
NS_IMETHOD ImportAllRules(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_NSICOOKIEBANNERLISTSERVICE \
nsresult Init(void); \
nsresult InitForTest(::mozilla::dom::Promise * * _retval); \
nsresult Shutdown(void); \
nsresult ImportAllRules(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSICOOKIEBANNERLISTSERVICE(_to) \
NS_IMETHOD Init(void) override { return _to Init(); } \
NS_IMETHOD InitForTest(::mozilla::dom::Promise * * _retval) override { return _to InitForTest(_retval); } \
NS_IMETHOD Shutdown(void) override { return _to Shutdown(); } \
NS_IMETHOD ImportAllRules(void) override { return _to ImportAllRules(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSICOOKIEBANNERLISTSERVICE(_to) \
NS_IMETHOD Init(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \
NS_IMETHOD InitForTest(::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitForTest(_retval); } \
NS_IMETHOD Shutdown(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); } \
NS_IMETHOD ImportAllRules(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ImportAllRules(); }
#define NS_COOKIEBANNERLISTSERVICE_CONTRACTID "@mozilla.org/cookie-banner-list-service;1"
#endif /* __gen_nsICookieBannerListService_h__ */