Generated file

Copy as Markdown

Other Tools

/*
* 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 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); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Init(nsIContentClassifierService *aService, ::mozilla::dom::Promise * * _retval) = 0;
/* void shutdown (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Shutdown(void) = 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;
/* 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 \
nsresult Init(nsIContentClassifierService *aService, ::mozilla::dom::Promise * * _retval); \
nsresult Shutdown(void);
/* 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(); }
/* 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(); }
// %{C++:31-31
#define NS_CONTENTCLASSIFIERREMOTESETTINGSCLIENT_CONTRACTID "@mozilla.org/content-classifier-rs-client;1"
// %}
#endif /* __gen_nsIContentClassifierRemoteSettingsClient_h__ */