Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/url-classifier/nsIUrlClassifierRemoteSettingsService.idl
*/
#ifndef __gen_nsIUrlClassifierRemoteSettingsService_h__
#define __gen_nsIUrlClassifierRemoteSettingsService_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
class nsIStreamListener; /* forward declaration */
/* starting interface: nsIUrlClassifierRemoteSettingsService */
#define NS_IURLCLASSIFIERREMOTESETTINGSSERVICE_IID_STR "26a445a4-0d00-4b20-ba5f-1297d3344a25"
#define NS_IURLCLASSIFIERREMOTESETTINGSSERVICE_IID \
{0x26a445a4, 0x0d00, 0x4b20, \
{ 0xba, 0x5f, 0x12, 0x97, 0xd3, 0x34, 0x4a, 0x25 }}
class NS_NO_VTABLE nsIUrlClassifierRemoteSettingsService : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IURLCLASSIFIERREMOTESETTINGSSERVICE_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIUrlClassifierRemoteSettingsService;
/* void fetchList (in ACString aPayload, in nsIStreamListener aListener); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FetchList(const nsACString& aPayload, nsIStreamListener *aListener) = 0;
/* void clear (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Clear(void) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIUrlClassifierRemoteSettingsService, NS_IURLCLASSIFIERREMOTESETTINGSSERVICE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIURLCLASSIFIERREMOTESETTINGSSERVICE \
NS_IMETHOD FetchList(const nsACString& aPayload, nsIStreamListener *aListener) override; \
NS_IMETHOD Clear(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_NSIURLCLASSIFIERREMOTESETTINGSSERVICE \
nsresult FetchList(const nsACString& aPayload, nsIStreamListener *aListener); \
nsresult Clear(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIURLCLASSIFIERREMOTESETTINGSSERVICE(_to) \
NS_IMETHOD FetchList(const nsACString& aPayload, nsIStreamListener *aListener) override { return _to FetchList(aPayload, aListener); } \
NS_IMETHOD Clear(void) override { return _to Clear(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIURLCLASSIFIERREMOTESETTINGSSERVICE(_to) \
NS_IMETHOD FetchList(const nsACString& aPayload, nsIStreamListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FetchList(aPayload, aListener); } \
NS_IMETHOD Clear(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Clear(); }
#endif /* __gen_nsIUrlClassifierRemoteSettingsService_h__ */