/* * DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/webauthn/nsIWebAuthnPromise.idl */ #ifndef __gen_nsIWebAuthnPromise_h__ #define __gen_nsIWebAuthnPromise_h__ #include "nsISupports.h" #include "nsIWebAuthnResult.h" #include "nsTArray.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 /* starting interface: nsIWebAuthnRegisterPromise */ #define NS_IWEBAUTHNREGISTERPROMISE_IID_STR "3c969aec-e0e0-4aa4-9422-394b321e6918" #define NS_IWEBAUTHNREGISTERPROMISE_IID \ {0x3c969aec, 0xe0e0, 0x4aa4, \ { 0x94, 0x22, 0x39, 0x4b, 0x32, 0x1e, 0x69, 0x18 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIWebAuthnRegisterPromise) nsIWebAuthnRegisterPromise : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_IWEBAUTHNREGISTERPROMISE_IID) /* [noscript] void resolve (in nsIWebAuthnRegisterResult aResult); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWebAuthnRegisterPromise_resolve) NS_IMETHOD Resolve(nsIWebAuthnRegisterResult *aResult) = 0; /* [noscript] void reject (in nsresult error); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWebAuthnRegisterPromise_reject) NS_IMETHOD Reject(nsresult error) = 0; }; namespace mozilla::detail { template <> class InterfaceNeedsThreadSafeRefCnt : public std::true_type {}; } /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIWEBAUTHNREGISTERPROMISE \ NS_IMETHOD Resolve(nsIWebAuthnRegisterResult *aResult) override; \ NS_IMETHOD Reject(nsresult error) 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_NSIWEBAUTHNREGISTERPROMISE \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWebAuthnRegisterPromise_resolve)\ nsresult Resolve(nsIWebAuthnRegisterResult *aResult); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWebAuthnRegisterPromise_reject)\ nsresult Reject(nsresult error); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIWEBAUTHNREGISTERPROMISE(_to) \ NS_IMETHOD Resolve(nsIWebAuthnRegisterResult *aResult) override { return _to Resolve(aResult); } \ NS_IMETHOD Reject(nsresult error) override { return _to Reject(error); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIWEBAUTHNREGISTERPROMISE(_to) \ NS_IMETHOD Resolve(nsIWebAuthnRegisterResult *aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Resolve(aResult); } \ NS_IMETHOD Reject(nsresult error) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Reject(error); } /* starting interface: nsIWebAuthnSignPromise */ #define NS_IWEBAUTHNSIGNPROMISE_IID_STR "35e35bdc-5369-4bfe-8d5c-bdf7b782b735" #define NS_IWEBAUTHNSIGNPROMISE_IID \ {0x35e35bdc, 0x5369, 0x4bfe, \ { 0x8d, 0x5c, 0xbd, 0xf7, 0xb7, 0x82, 0xb7, 0x35 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIWebAuthnSignPromise) nsIWebAuthnSignPromise : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_IWEBAUTHNSIGNPROMISE_IID) /* [noscript] void resolve (in nsIWebAuthnSignResult aResult); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWebAuthnSignPromise_resolve) NS_IMETHOD Resolve(nsIWebAuthnSignResult *aResult) = 0; /* [noscript] void reject (in nsresult error); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWebAuthnSignPromise_reject) NS_IMETHOD Reject(nsresult error) = 0; }; namespace mozilla::detail { template <> class InterfaceNeedsThreadSafeRefCnt : public std::true_type {}; } /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIWEBAUTHNSIGNPROMISE \ NS_IMETHOD Resolve(nsIWebAuthnSignResult *aResult) override; \ NS_IMETHOD Reject(nsresult error) 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_NSIWEBAUTHNSIGNPROMISE \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWebAuthnSignPromise_resolve)\ nsresult Resolve(nsIWebAuthnSignResult *aResult); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWebAuthnSignPromise_reject)\ nsresult Reject(nsresult error); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIWEBAUTHNSIGNPROMISE(_to) \ NS_IMETHOD Resolve(nsIWebAuthnSignResult *aResult) override { return _to Resolve(aResult); } \ NS_IMETHOD Reject(nsresult error) override { return _to Reject(error); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIWEBAUTHNSIGNPROMISE(_to) \ NS_IMETHOD Resolve(nsIWebAuthnSignResult *aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Resolve(aResult); } \ NS_IMETHOD Reject(nsresult error) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Reject(error); } class nsIWebAuthnAutoFillEntry; /* forward declaration */ /* starting interface: nsIWebAuthnAutoFillEntriesCallback */ #define NS_IWEBAUTHNAUTOFILLENTRIESCALLBACK_IID_STR "8a4d4f7b-7c39-4f7e-9ad5-2f3c1d4a9b0c" #define NS_IWEBAUTHNAUTOFILLENTRIESCALLBACK_IID \ {0x8a4d4f7b, 0x7c39, 0x4f7e, \ { 0x9a, 0xd5, 0x2f, 0x3c, 0x1d, 0x4a, 0x9b, 0x0c }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIWebAuthnAutoFillEntriesCallback) nsIWebAuthnAutoFillEntriesCallback : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_IWEBAUTHNAUTOFILLENTRIESCALLBACK_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsIWebAuthnAutoFillEntriesCallback; /* void resolve (in Array entries); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWebAuthnAutoFillEntriesCallback_resolve) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Resolve(const nsTArray>& entries) = 0; /* void reject (in nsresult error); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWebAuthnAutoFillEntriesCallback_reject) JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Reject(nsresult error) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIWEBAUTHNAUTOFILLENTRIESCALLBACK \ NS_IMETHOD Resolve(const nsTArray>& entries) override; \ NS_IMETHOD Reject(nsresult error) 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_NSIWEBAUTHNAUTOFILLENTRIESCALLBACK \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWebAuthnAutoFillEntriesCallback_resolve)\ nsresult Resolve(const nsTArray>& entries); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIWebAuthnAutoFillEntriesCallback_reject)\ nsresult Reject(nsresult error); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIWEBAUTHNAUTOFILLENTRIESCALLBACK(_to) \ NS_IMETHOD Resolve(const nsTArray>& entries) override { return _to Resolve(entries); } \ NS_IMETHOD Reject(nsresult error) override { return _to Reject(error); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIWEBAUTHNAUTOFILLENTRIESCALLBACK(_to) \ NS_IMETHOD Resolve(const nsTArray>& entries) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Resolve(entries); } \ NS_IMETHOD Reject(nsresult error) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Reject(error); } #endif /* __gen_nsIWebAuthnPromise_h__ */