Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/antitracking/nsIURLQueryStrippingListService.idl
*/
#ifndef __gen_nsIURLQueryStrippingListService_h__
#define __gen_nsIURLQueryStrippingListService_h__
#include "nsISupports.h"
#include "nsTArray.h"
#include "js/Value.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: nsIURLQueryStrippingListObserver */
#define NS_IURLQUERYSTRIPPINGLISTOBSERVER_IID_STR "ef56ae12-b1bb-43e6-b1d8-16459cb98dfd"
#define NS_IURLQUERYSTRIPPINGLISTOBSERVER_IID \
{0xef56ae12, 0xb1bb, 0x43e6, \
{ 0xb1, 0xd8, 0x16, 0x45, 0x9c, 0xb9, 0x8d, 0xfd }}
class NS_NO_VTABLE nsIURLQueryStrippingListObserver : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURLQUERYSTRIPPINGLISTOBSERVER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIURLQueryStrippingListObserver;
/* void onQueryStrippingListUpdate (in ACString aStripList, in ACString aAllowList); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnQueryStrippingListUpdate(const nsACString& aStripList, const nsACString& aAllowList) = 0;
/* [implicit_jscontext] void onStripOnShareUpdate (in Array<AString> aStripRules); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnStripOnShareUpdate(const nsTArray<nsString >& aStripRules, JSContext* cx) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIURLQueryStrippingListObserver, NS_IURLQUERYSTRIPPINGLISTOBSERVER_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIURLQUERYSTRIPPINGLISTOBSERVER \
NS_IMETHOD OnQueryStrippingListUpdate(const nsACString& aStripList, const nsACString& aAllowList) override; \
NS_IMETHOD OnStripOnShareUpdate(const nsTArray<nsString >& aStripRules, JSContext* cx) 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_NSIURLQUERYSTRIPPINGLISTOBSERVER \
nsresult OnQueryStrippingListUpdate(const nsACString& aStripList, const nsACString& aAllowList); \
nsresult OnStripOnShareUpdate(const nsTArray<nsString >& aStripRules, JSContext* cx);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIURLQUERYSTRIPPINGLISTOBSERVER(_to) \
NS_IMETHOD OnQueryStrippingListUpdate(const nsACString& aStripList, const nsACString& aAllowList) override { return _to OnQueryStrippingListUpdate(aStripList, aAllowList); } \
NS_IMETHOD OnStripOnShareUpdate(const nsTArray<nsString >& aStripRules, JSContext* cx) override { return _to OnStripOnShareUpdate(aStripRules, cx); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIURLQUERYSTRIPPINGLISTOBSERVER(_to) \
NS_IMETHOD OnQueryStrippingListUpdate(const nsACString& aStripList, const nsACString& aAllowList) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnQueryStrippingListUpdate(aStripList, aAllowList); } \
NS_IMETHOD OnStripOnShareUpdate(const nsTArray<nsString >& aStripRules, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStripOnShareUpdate(aStripRules, cx); }
/* starting interface: nsIURLQueryStrippingListService */
#define NS_IURLQUERYSTRIPPINGLISTSERVICE_IID_STR "afff16f0-3fd2-4153-9ccd-c6d9abd879e4"
#define NS_IURLQUERYSTRIPPINGLISTSERVICE_IID \
{0xafff16f0, 0x3fd2, 0x4153, \
{ 0x9c, 0xcd, 0xc6, 0xd9, 0xab, 0xd8, 0x79, 0xe4 }}
class NS_NO_VTABLE nsIURLQueryStrippingListService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURLQUERYSTRIPPINGLISTSERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIURLQueryStrippingListService;
/* void registerAndRunObserver (in nsIURLQueryStrippingListObserver aObserver); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RegisterAndRunObserver(nsIURLQueryStrippingListObserver *aObserver) = 0;
/* void registerAndRunObserverStripOnShare (in nsIURLQueryStrippingListObserver aObserver); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RegisterAndRunObserverStripOnShare(nsIURLQueryStrippingListObserver *aObserver) = 0;
/* void unregisterObserver (in nsIURLQueryStrippingListObserver aObserver); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UnregisterObserver(nsIURLQueryStrippingListObserver *aObserver) = 0;
/* void unregisterStripOnShareObserver (in nsIURLQueryStrippingListObserver aObserver); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UnregisterStripOnShareObserver(nsIURLQueryStrippingListObserver *aObserver) = 0;
/* void clearLists (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ClearLists(void) = 0;
/* Promise testWaitForInit (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TestWaitForInit(::mozilla::dom::Promise * * _retval) = 0;
/* Promise testSetList (in jsval testFile); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TestSetList(JS::Handle<JS::Value> testFile, ::mozilla::dom::Promise * * _retval) = 0;
/* boolean testHasStripOnShareObservers (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TestHasStripOnShareObservers(bool *_retval) = 0;
/* boolean testHasQPSObservers (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TestHasQPSObservers(bool *_retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIURLQueryStrippingListService, NS_IURLQUERYSTRIPPINGLISTSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIURLQUERYSTRIPPINGLISTSERVICE \
NS_IMETHOD RegisterAndRunObserver(nsIURLQueryStrippingListObserver *aObserver) override; \
NS_IMETHOD RegisterAndRunObserverStripOnShare(nsIURLQueryStrippingListObserver *aObserver) override; \
NS_IMETHOD UnregisterObserver(nsIURLQueryStrippingListObserver *aObserver) override; \
NS_IMETHOD UnregisterStripOnShareObserver(nsIURLQueryStrippingListObserver *aObserver) override; \
NS_IMETHOD ClearLists(void) override; \
NS_IMETHOD TestWaitForInit(::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD TestSetList(JS::Handle<JS::Value> testFile, ::mozilla::dom::Promise * * _retval) override; \
NS_IMETHOD TestHasStripOnShareObservers(bool *_retval) override; \
NS_IMETHOD TestHasQPSObservers(bool *_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_NSIURLQUERYSTRIPPINGLISTSERVICE \
nsresult RegisterAndRunObserver(nsIURLQueryStrippingListObserver *aObserver); \
nsresult RegisterAndRunObserverStripOnShare(nsIURLQueryStrippingListObserver *aObserver); \
nsresult UnregisterObserver(nsIURLQueryStrippingListObserver *aObserver); \
nsresult UnregisterStripOnShareObserver(nsIURLQueryStrippingListObserver *aObserver); \
nsresult ClearLists(void); \
nsresult TestWaitForInit(::mozilla::dom::Promise * * _retval); \
nsresult TestSetList(JS::Handle<JS::Value> testFile, ::mozilla::dom::Promise * * _retval); \
nsresult TestHasStripOnShareObservers(bool *_retval); \
nsresult TestHasQPSObservers(bool *_retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIURLQUERYSTRIPPINGLISTSERVICE(_to) \
NS_IMETHOD RegisterAndRunObserver(nsIURLQueryStrippingListObserver *aObserver) override { return _to RegisterAndRunObserver(aObserver); } \
NS_IMETHOD RegisterAndRunObserverStripOnShare(nsIURLQueryStrippingListObserver *aObserver) override { return _to RegisterAndRunObserverStripOnShare(aObserver); } \
NS_IMETHOD UnregisterObserver(nsIURLQueryStrippingListObserver *aObserver) override { return _to UnregisterObserver(aObserver); } \
NS_IMETHOD UnregisterStripOnShareObserver(nsIURLQueryStrippingListObserver *aObserver) override { return _to UnregisterStripOnShareObserver(aObserver); } \
NS_IMETHOD ClearLists(void) override { return _to ClearLists(); } \
NS_IMETHOD TestWaitForInit(::mozilla::dom::Promise * * _retval) override { return _to TestWaitForInit(_retval); } \
NS_IMETHOD TestSetList(JS::Handle<JS::Value> testFile, ::mozilla::dom::Promise * * _retval) override { return _to TestSetList(testFile, _retval); } \
NS_IMETHOD TestHasStripOnShareObservers(bool *_retval) override { return _to TestHasStripOnShareObservers(_retval); } \
NS_IMETHOD TestHasQPSObservers(bool *_retval) override { return _to TestHasQPSObservers(_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_NSIURLQUERYSTRIPPINGLISTSERVICE(_to) \
NS_IMETHOD RegisterAndRunObserver(nsIURLQueryStrippingListObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterAndRunObserver(aObserver); } \
NS_IMETHOD RegisterAndRunObserverStripOnShare(nsIURLQueryStrippingListObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterAndRunObserverStripOnShare(aObserver); } \
NS_IMETHOD UnregisterObserver(nsIURLQueryStrippingListObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterObserver(aObserver); } \
NS_IMETHOD UnregisterStripOnShareObserver(nsIURLQueryStrippingListObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterStripOnShareObserver(aObserver); } \
NS_IMETHOD ClearLists(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearLists(); } \
NS_IMETHOD TestWaitForInit(::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TestWaitForInit(_retval); } \
NS_IMETHOD TestSetList(JS::Handle<JS::Value> testFile, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TestSetList(testFile, _retval); } \
NS_IMETHOD TestHasStripOnShareObservers(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TestHasStripOnShareObservers(_retval); } \
NS_IMETHOD TestHasQPSObservers(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TestHasQPSObservers(_retval); }
#endif /* __gen_nsIURLQueryStrippingListService_h__ */