Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/url-classifier/nsIUrlClassifierExceptionList.idl
*/
#ifndef __gen_nsIUrlClassifierExceptionList_h__
#define __gen_nsIUrlClassifierExceptionList_h__
#include "nsISupports.h"
#include "nsIURI.h"
#include "nsIUrlClassifierExceptionListEntry.h"
#include "nsTArray.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: nsIUrlClassifierExceptionList */
#define NS_IURLCLASSIFIEREXCEPTIONLIST_IID_STR "807535bf-018e-4300-b8d3-4a6405fb9f65"
#define NS_IURLCLASSIFIEREXCEPTIONLIST_IID \
{0x807535bf, 0x018e, 0x4300, \
{ 0xb8, 0xd3, 0x4a, 0x64, 0x05, 0xfb, 0x9f, 0x65 }}
class NS_NO_VTABLE nsIUrlClassifierExceptionList : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURLCLASSIFIEREXCEPTIONLIST_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIUrlClassifierExceptionList;
/* void init (in ACString aFeature); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(const nsACString& aFeature) = 0;
/* void addEntry (in nsIUrlClassifierExceptionListEntry aEntry); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddEntry(nsIUrlClassifierExceptionListEntry *aEntry) = 0;
/* boolean matches (in nsIURI aURI, in nsIURI aTopLevelURI, in boolean aIsPrivateBrowsing); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Matches(nsIURI *aURI, nsIURI *aTopLevelURI, bool aIsPrivateBrowsing, bool *_retval) = 0;
/* Array<nsIUrlClassifierExceptionListEntry> testGetEntries (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TestGetEntries(nsTArray<RefPtr<nsIUrlClassifierExceptionListEntry>>& _retval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIUrlClassifierExceptionList, NS_IURLCLASSIFIEREXCEPTIONLIST_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIURLCLASSIFIEREXCEPTIONLIST \
NS_IMETHOD Init(const nsACString& aFeature) override; \
NS_IMETHOD AddEntry(nsIUrlClassifierExceptionListEntry *aEntry) override; \
NS_IMETHOD Matches(nsIURI *aURI, nsIURI *aTopLevelURI, bool aIsPrivateBrowsing, bool *_retval) override; \
NS_IMETHOD TestGetEntries(nsTArray<RefPtr<nsIUrlClassifierExceptionListEntry>>& _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_NSIURLCLASSIFIEREXCEPTIONLIST \
nsresult Init(const nsACString& aFeature); \
nsresult AddEntry(nsIUrlClassifierExceptionListEntry *aEntry); \
nsresult Matches(nsIURI *aURI, nsIURI *aTopLevelURI, bool aIsPrivateBrowsing, bool *_retval); \
nsresult TestGetEntries(nsTArray<RefPtr<nsIUrlClassifierExceptionListEntry>>& _retval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIURLCLASSIFIEREXCEPTIONLIST(_to) \
NS_IMETHOD Init(const nsACString& aFeature) override { return _to Init(aFeature); } \
NS_IMETHOD AddEntry(nsIUrlClassifierExceptionListEntry *aEntry) override { return _to AddEntry(aEntry); } \
NS_IMETHOD Matches(nsIURI *aURI, nsIURI *aTopLevelURI, bool aIsPrivateBrowsing, bool *_retval) override { return _to Matches(aURI, aTopLevelURI, aIsPrivateBrowsing, _retval); } \
NS_IMETHOD TestGetEntries(nsTArray<RefPtr<nsIUrlClassifierExceptionListEntry>>& _retval) override { return _to TestGetEntries(_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_NSIURLCLASSIFIEREXCEPTIONLIST(_to) \
NS_IMETHOD Init(const nsACString& aFeature) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aFeature); } \
NS_IMETHOD AddEntry(nsIUrlClassifierExceptionListEntry *aEntry) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddEntry(aEntry); } \
NS_IMETHOD Matches(nsIURI *aURI, nsIURI *aTopLevelURI, bool aIsPrivateBrowsing, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Matches(aURI, aTopLevelURI, aIsPrivateBrowsing, _retval); } \
NS_IMETHOD TestGetEntries(nsTArray<RefPtr<nsIUrlClassifierExceptionListEntry>>& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TestGetEntries(_retval); }
#endif /* __gen_nsIUrlClassifierExceptionList_h__ */