Copy as Markdown

Other Tools

/*
* 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"
/* 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 nsIWebAuthnRegisterPromise : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBAUTHNREGISTERPROMISE_IID)
/* [noscript] void resolve (in nsIWebAuthnRegisterResult aResult); */
NS_IMETHOD Resolve(nsIWebAuthnRegisterResult *aResult) = 0;
/* [noscript] void reject (in nsresult error); */
NS_IMETHOD Reject(nsresult error) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebAuthnRegisterPromise, NS_IWEBAUTHNREGISTERPROMISE_IID)namespace mozilla::detail {
template <>
class InterfaceNeedsThreadSafeRefCnt<nsIWebAuthnRegisterPromise> : 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 \
nsresult Resolve(nsIWebAuthnRegisterResult *aResult); \
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 nsIWebAuthnSignPromise : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBAUTHNSIGNPROMISE_IID)
/* [noscript] void resolve (in nsIWebAuthnSignResult aResult); */
NS_IMETHOD Resolve(nsIWebAuthnSignResult *aResult) = 0;
/* [noscript] void reject (in nsresult error); */
NS_IMETHOD Reject(nsresult error) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebAuthnSignPromise, NS_IWEBAUTHNSIGNPROMISE_IID)namespace mozilla::detail {
template <>
class InterfaceNeedsThreadSafeRefCnt<nsIWebAuthnSignPromise> : 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 \
nsresult Resolve(nsIWebAuthnSignResult *aResult); \
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); }
#endif /* __gen_nsIWebAuthnPromise_h__ */