/* * DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/quota/nsIQuotaRequests.idl */ #ifndef __gen_nsIQuotaRequests_h__ #define __gen_nsIQuotaRequests_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 nsIPrincipal; /* forward declaration */ class nsIQuotaCallback; /* forward declaration */ class nsIQuotaUsageCallback; /* forward declaration */ class nsIVariant; /* forward declaration */ /* starting interface: nsIQuotaRequestBase */ #define NS_IQUOTAREQUESTBASE_IID_STR "9af54222-0407-48fd-a4ab-9457c986fc49" #define NS_IQUOTAREQUESTBASE_IID \ {0x9af54222, 0x0407, 0x48fd, \ { 0xa4, 0xab, 0x94, 0x57, 0xc9, 0x86, 0xfc, 0x49 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIQuotaRequestBase) nsIQuotaRequestBase : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_IQUOTAREQUESTBASE_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsIQuotaRequestBase; /* readonly attribute nsIPrincipal principal; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIQuotaRequestBase_principal) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPrincipal(nsIPrincipal **aPrincipal) = 0; /* [must_use] readonly attribute nsresult resultCode; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIQuotaRequestBase_resultCode) JS_HAZ_CAN_RUN_SCRIPT [[nodiscard]] NS_IMETHOD GetResultCode(nsresult *aResultCode) = 0; /* [must_use] readonly attribute ACString resultName; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIQuotaRequestBase_resultName) JS_HAZ_CAN_RUN_SCRIPT [[nodiscard]] NS_IMETHOD GetResultName(nsACString& aResultName) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIQUOTAREQUESTBASE \ NS_IMETHOD GetPrincipal(nsIPrincipal **aPrincipal) override; \ [[nodiscard]] NS_IMETHOD GetResultCode(nsresult *aResultCode) override; \ [[nodiscard]] NS_IMETHOD GetResultName(nsACString& aResultName) 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_NSIQUOTAREQUESTBASE \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIQuotaRequestBase_principal)\ nsresult GetPrincipal(nsIPrincipal **aPrincipal); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIQuotaRequestBase_resultCode)\ [[nodiscard]] nsresult GetResultCode(nsresult *aResultCode); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIQuotaRequestBase_resultName)\ [[nodiscard]] nsresult GetResultName(nsACString& aResultName); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIQUOTAREQUESTBASE(_to) \ NS_IMETHOD GetPrincipal(nsIPrincipal **aPrincipal) override { return _to GetPrincipal(aPrincipal); } \ [[nodiscard]] NS_IMETHOD GetResultCode(nsresult *aResultCode) override { return _to GetResultCode(aResultCode); } \ [[nodiscard]] NS_IMETHOD GetResultName(nsACString& aResultName) override { return _to GetResultName(aResultName); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIQUOTAREQUESTBASE(_to) \ NS_IMETHOD GetPrincipal(nsIPrincipal **aPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrincipal(aPrincipal); } \ [[nodiscard]] NS_IMETHOD GetResultCode(nsresult *aResultCode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResultCode(aResultCode); } \ [[nodiscard]] NS_IMETHOD GetResultName(nsACString& aResultName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResultName(aResultName); } /* starting interface: nsIQuotaUsageRequest */ #define NS_IQUOTAUSAGEREQUEST_IID_STR "166e28e6-cf6d-4927-a6d7-b51bca9d3469" #define NS_IQUOTAUSAGEREQUEST_IID \ {0x166e28e6, 0xcf6d, 0x4927, \ { 0xa6, 0xd7, 0xb5, 0x1b, 0xca, 0x9d, 0x34, 0x69 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIQuotaUsageRequest) nsIQuotaUsageRequest : public nsIQuotaRequestBase { public: NS_INLINE_DECL_STATIC_IID(NS_IQUOTAUSAGEREQUEST_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsIQuotaUsageRequest; /* [must_use] readonly attribute nsIVariant result; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIQuotaUsageRequest_result) JS_HAZ_CAN_RUN_SCRIPT [[nodiscard]] NS_IMETHOD GetResult(nsIVariant **aResult) = 0; /* attribute nsIQuotaUsageCallback callback; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIQuotaUsageRequest_callback) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCallback(nsIQuotaUsageCallback **aCallback) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIQuotaUsageRequest_callback) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCallback(nsIQuotaUsageCallback *aCallback) = 0; /* [must_use] void cancel (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIQuotaUsageRequest_cancel) JS_HAZ_CAN_RUN_SCRIPT [[nodiscard]] NS_IMETHOD Cancel(void) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIQUOTAUSAGEREQUEST \ [[nodiscard]] NS_IMETHOD GetResult(nsIVariant **aResult) override; \ NS_IMETHOD GetCallback(nsIQuotaUsageCallback **aCallback) override; \ NS_IMETHOD SetCallback(nsIQuotaUsageCallback *aCallback) override; \ [[nodiscard]] NS_IMETHOD Cancel(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_NSIQUOTAUSAGEREQUEST \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIQuotaUsageRequest_result)\ [[nodiscard]] nsresult GetResult(nsIVariant **aResult); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIQuotaUsageRequest_callback)\ nsresult GetCallback(nsIQuotaUsageCallback **aCallback); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIQuotaUsageRequest_callback)\ nsresult SetCallback(nsIQuotaUsageCallback *aCallback); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIQuotaUsageRequest_cancel)\ [[nodiscard]] nsresult Cancel(void); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIQUOTAUSAGEREQUEST(_to) \ [[nodiscard]] NS_IMETHOD GetResult(nsIVariant **aResult) override { return _to GetResult(aResult); } \ NS_IMETHOD GetCallback(nsIQuotaUsageCallback **aCallback) override { return _to GetCallback(aCallback); } \ NS_IMETHOD SetCallback(nsIQuotaUsageCallback *aCallback) override { return _to SetCallback(aCallback); } \ [[nodiscard]] NS_IMETHOD Cancel(void) override { return _to Cancel(); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIQUOTAUSAGEREQUEST(_to) \ [[nodiscard]] NS_IMETHOD GetResult(nsIVariant **aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); } \ NS_IMETHOD GetCallback(nsIQuotaUsageCallback **aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCallback(aCallback); } \ NS_IMETHOD SetCallback(nsIQuotaUsageCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCallback(aCallback); } \ [[nodiscard]] NS_IMETHOD Cancel(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Cancel(); } /* starting interface: nsIQuotaRequest */ #define NS_IQUOTAREQUEST_IID_STR "22890e3e-ff25-4372-9684-d901060e2f6c" #define NS_IQUOTAREQUEST_IID \ {0x22890e3e, 0xff25, 0x4372, \ { 0x96, 0x84, 0xd9, 0x01, 0x06, 0x0e, 0x2f, 0x6c }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIQuotaRequest) nsIQuotaRequest : public nsIQuotaRequestBase { public: NS_INLINE_DECL_STATIC_IID(NS_IQUOTAREQUEST_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsIQuotaRequest; /* [must_use] readonly attribute nsIVariant result; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIQuotaRequest_result) JS_HAZ_CAN_RUN_SCRIPT [[nodiscard]] NS_IMETHOD GetResult(nsIVariant **aResult) = 0; /* attribute nsIQuotaCallback callback; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIQuotaRequest_callback) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCallback(nsIQuotaCallback **aCallback) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIQuotaRequest_callback) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetCallback(nsIQuotaCallback *aCallback) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIQUOTAREQUEST \ [[nodiscard]] NS_IMETHOD GetResult(nsIVariant **aResult) override; \ NS_IMETHOD GetCallback(nsIQuotaCallback **aCallback) override; \ NS_IMETHOD SetCallback(nsIQuotaCallback *aCallback) 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_NSIQUOTAREQUEST \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIQuotaRequest_result)\ [[nodiscard]] nsresult GetResult(nsIVariant **aResult); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIQuotaRequest_callback)\ nsresult GetCallback(nsIQuotaCallback **aCallback); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsIQuotaRequest_callback)\ nsresult SetCallback(nsIQuotaCallback *aCallback); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIQUOTAREQUEST(_to) \ [[nodiscard]] NS_IMETHOD GetResult(nsIVariant **aResult) override { return _to GetResult(aResult); } \ NS_IMETHOD GetCallback(nsIQuotaCallback **aCallback) override { return _to GetCallback(aCallback); } \ NS_IMETHOD SetCallback(nsIQuotaCallback *aCallback) override { return _to SetCallback(aCallback); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIQUOTAREQUEST(_to) \ [[nodiscard]] NS_IMETHOD GetResult(nsIVariant **aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(aResult); } \ NS_IMETHOD GetCallback(nsIQuotaCallback **aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCallback(aCallback); } \ NS_IMETHOD SetCallback(nsIQuotaCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCallback(aCallback); } #endif /* __gen_nsIQuotaRequests_h__ */