Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/quota/nsIQuotaCallbacks.idl
*/
#ifndef __gen_nsIQuotaCallbacks_h__
#define __gen_nsIQuotaCallbacks_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 nsIQuotaRequest; /* forward declaration */
class nsIQuotaUsageRequest; /* forward declaration */
/* starting interface: nsIQuotaUsageCallback */
#define NS_IQUOTAUSAGECALLBACK_IID_STR "c8a21a2a-17b9-4b63-ad95-e0fbcff5de18"
#define NS_IQUOTAUSAGECALLBACK_IID \
{0xc8a21a2a, 0x17b9, 0x4b63, \
{ 0xad, 0x95, 0xe0, 0xfb, 0xcf, 0xf5, 0xde, 0x18 }}
class NS_NO_VTABLE nsIQuotaUsageCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IQUOTAUSAGECALLBACK_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIQuotaUsageCallback;
/* void onUsageResult (in nsIQuotaUsageRequest aRequest); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnUsageResult(nsIQuotaUsageRequest *aRequest) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIQuotaUsageCallback, NS_IQUOTAUSAGECALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIQUOTAUSAGECALLBACK \
NS_IMETHOD OnUsageResult(nsIQuotaUsageRequest *aRequest) 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_NSIQUOTAUSAGECALLBACK \
nsresult OnUsageResult(nsIQuotaUsageRequest *aRequest);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIQUOTAUSAGECALLBACK(_to) \
NS_IMETHOD OnUsageResult(nsIQuotaUsageRequest *aRequest) override { return _to OnUsageResult(aRequest); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIQUOTAUSAGECALLBACK(_to) \
NS_IMETHOD OnUsageResult(nsIQuotaUsageRequest *aRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnUsageResult(aRequest); }
/* starting interface: nsIQuotaCallback */
#define NS_IQUOTACALLBACK_IID_STR "a08a28e2-5a74-4c84-8070-ed45a07eb013"
#define NS_IQUOTACALLBACK_IID \
{0xa08a28e2, 0x5a74, 0x4c84, \
{ 0x80, 0x70, 0xed, 0x45, 0xa0, 0x7e, 0xb0, 0x13 }}
class NS_NO_VTABLE nsIQuotaCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IQUOTACALLBACK_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIQuotaCallback;
/* void onComplete (in nsIQuotaRequest aRequest); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnComplete(nsIQuotaRequest *aRequest) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIQuotaCallback, NS_IQUOTACALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIQUOTACALLBACK \
NS_IMETHOD OnComplete(nsIQuotaRequest *aRequest) 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_NSIQUOTACALLBACK \
nsresult OnComplete(nsIQuotaRequest *aRequest);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIQUOTACALLBACK(_to) \
NS_IMETHOD OnComplete(nsIQuotaRequest *aRequest) override { return _to OnComplete(aRequest); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIQUOTACALLBACK(_to) \
NS_IMETHOD OnComplete(nsIQuotaRequest *aRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnComplete(aRequest); }
#endif /* __gen_nsIQuotaCallbacks_h__ */