/*
 * 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 MOZ_BINDING(binding_to, idl, class, XPIDL_nsIQuotaUsageCallback) nsIQuotaUsageCallback : public nsISupports {
 public:

  NS_INLINE_DECL_STATIC_IID(NS_IQUOTAUSAGECALLBACK_IID)

  /* Used by ToJSValue to check which scriptable interface is implemented. */
  using ScriptableInterfaceType = nsIQuotaUsageCallback;

  /* void onUsageResult (in nsIQuotaUsageRequest aRequest); */
  MOZ_BINDING(binding_to, idl, method, XPIDL_nsIQuotaUsageCallback_onUsageResult)
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnUsageResult(nsIQuotaUsageRequest *aRequest) = 0;

};


/* 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 \
  MOZ_BINDING(binding_to, idl, method, XPIDL_nsIQuotaUsageCallback_onUsageResult)\
  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 MOZ_BINDING(binding_to, idl, class, XPIDL_nsIQuotaCallback) nsIQuotaCallback : public nsISupports {
 public:

  NS_INLINE_DECL_STATIC_IID(NS_IQUOTACALLBACK_IID)

  /* Used by ToJSValue to check which scriptable interface is implemented. */
  using ScriptableInterfaceType = nsIQuotaCallback;

  /* void onComplete (in nsIQuotaRequest aRequest); */
  MOZ_BINDING(binding_to, idl, method, XPIDL_nsIQuotaCallback_onComplete)
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD OnComplete(nsIQuotaRequest *aRequest) = 0;

};


/* 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 \
  MOZ_BINDING(binding_to, idl, method, XPIDL_nsIQuotaCallback_onComplete)\
  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__ */
