/* * DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/components/content-classifier/nsIContentClassifierRemoteSettingsClient.idl */ #ifndef __gen_nsIContentClassifierRemoteSettingsClient_h__ #define __gen_nsIContentClassifierRemoteSettingsClient_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 nsIContentClassifierService; /* forward declaration */ /* starting interface: nsIContentClassifierRemoteSettingsClient */ #define NS_ICONTENTCLASSIFIERREMOTESETTINGSCLIENT_IID_STR "c7dddbf2-8bc4-41a1-ac90-5144bec5abdf" #define NS_ICONTENTCLASSIFIERREMOTESETTINGSCLIENT_IID \ {0xc7dddbf2, 0x8bc4, 0x41a1, \ { 0xac, 0x90, 0x51, 0x44, 0xbe, 0xc5, 0xab, 0xdf }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIContentClassifierRemoteSettingsClient) nsIContentClassifierRemoteSettingsClient : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_ICONTENTCLASSIFIERREMOTESETTINGSCLIENT_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsIContentClassifierRemoteSettingsClient; /* Promise init (in nsIContentClassifierService aService); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentClassifierRemoteSettingsClient_init) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(nsIContentClassifierService *aService, ::mozilla::dom::Promise * * _retval) = 0; /* void shutdown (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentClassifierRemoteSettingsClient_shutdown) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Shutdown(void) = 0; /* Promise getListBytes (in ACString aName); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentClassifierRemoteSettingsClient_getListBytes) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetListBytes(const nsACString& aName, ::mozilla::dom::Promise * * _retval) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSICONTENTCLASSIFIERREMOTESETTINGSCLIENT \ NS_IMETHOD Init(nsIContentClassifierService *aService, ::mozilla::dom::Promise * * _retval) override; \ NS_IMETHOD Shutdown(void) override; \ NS_IMETHOD GetListBytes(const nsACString& aName, ::mozilla::dom::Promise * * _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_NSICONTENTCLASSIFIERREMOTESETTINGSCLIENT \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentClassifierRemoteSettingsClient_init)\ nsresult Init(nsIContentClassifierService *aService, ::mozilla::dom::Promise * * _retval); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentClassifierRemoteSettingsClient_shutdown)\ nsresult Shutdown(void); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIContentClassifierRemoteSettingsClient_getListBytes)\ nsresult GetListBytes(const nsACString& aName, ::mozilla::dom::Promise * * _retval); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSICONTENTCLASSIFIERREMOTESETTINGSCLIENT(_to) \ NS_IMETHOD Init(nsIContentClassifierService *aService, ::mozilla::dom::Promise * * _retval) override { return _to Init(aService, _retval); } \ NS_IMETHOD Shutdown(void) override { return _to Shutdown(); } \ NS_IMETHOD GetListBytes(const nsACString& aName, ::mozilla::dom::Promise * * _retval) override { return _to GetListBytes(aName, _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_NSICONTENTCLASSIFIERREMOTESETTINGSCLIENT(_to) \ NS_IMETHOD Init(nsIContentClassifierService *aService, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aService, _retval); } \ NS_IMETHOD Shutdown(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); } \ NS_IMETHOD GetListBytes(const nsACString& aName, ::mozilla::dom::Promise * * _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListBytes(aName, _retval); } // %{C++:39-39 #define NS_CONTENTCLASSIFIERREMOTESETTINGSCLIENT_CONTRACTID "@mozilla.org/content-classifier-rs-client;1" // %} #endif /* __gen_nsIContentClassifierRemoteSettingsClient_h__ */