Generated file

Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/dom/webauthn/nsIWebAuthnRelatedOriginFetcher.idl
*/
#ifndef __gen_nsIWebAuthnRelatedOriginFetcher_h__
#define __gen_nsIWebAuthnRelatedOriginFetcher_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
namespace mozilla {
namespace dom {
class WindowGlobalParent; /* webidl WindowGlobalParent */
} // namespace dom
} // namespace mozilla
/* starting interface: nsIWebAuthnRelatedOriginCheckCallback */
#define NS_IWEBAUTHNRELATEDORIGINCHECKCALLBACK_IID_STR "06915a3a-5f1b-43cc-a692-3e3058da2201"
#define NS_IWEBAUTHNRELATEDORIGINCHECKCALLBACK_IID \
{0x06915a3a, 0x5f1b, 0x43cc, \
{ 0xa6, 0x92, 0x3e, 0x30, 0x58, 0xda, 0x22, 0x01 }}
class NS_NO_VTABLE nsIWebAuthnRelatedOriginCheckCallback : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_IWEBAUTHNRELATEDORIGINCHECKCALLBACK_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIWebAuthnRelatedOriginCheckCallback;
/* void resolved (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Resolved(void) = 0;
/* void rejected (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Rejected(void) = 0;
/* void userCancel (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UserCancel(void) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWEBAUTHNRELATEDORIGINCHECKCALLBACK \
NS_IMETHOD Resolved(void) override; \
NS_IMETHOD Rejected(void) override; \
NS_IMETHOD UserCancel(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_NSIWEBAUTHNRELATEDORIGINCHECKCALLBACK \
nsresult Resolved(void); \
nsresult Rejected(void); \
nsresult UserCancel(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWEBAUTHNRELATEDORIGINCHECKCALLBACK(_to) \
NS_IMETHOD Resolved(void) override { return _to Resolved(); } \
NS_IMETHOD Rejected(void) override { return _to Rejected(); } \
NS_IMETHOD UserCancel(void) override { return _to UserCancel(); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWEBAUTHNRELATEDORIGINCHECKCALLBACK(_to) \
NS_IMETHOD Resolved(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Resolved(); } \
NS_IMETHOD Rejected(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Rejected(); } \
NS_IMETHOD UserCancel(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UserCancel(); }
/* starting interface: nsIWebAuthnRelatedOriginFetcher */
#define NS_IWEBAUTHNRELATEDORIGINFETCHER_IID_STR "cfa801b0-b89d-441c-bead-9ba08ebbd107"
#define NS_IWEBAUTHNRELATEDORIGINFETCHER_IID \
{0xcfa801b0, 0xb89d, 0x441c, \
{ 0xbe, 0xad, 0x9b, 0xa0, 0x8e, 0xbb, 0xd1, 0x07 }}
class NS_NO_VTABLE nsIWebAuthnRelatedOriginFetcher : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_IWEBAUTHNRELATEDORIGINFETCHER_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIWebAuthnRelatedOriginFetcher;
enum {
MODE_DISABLED = 0U,
MODE_NO_PROMPT = 1U,
MODE_PROMPT = 2U
};
/* void checkRelatedOriginRequest (in WindowGlobalParent aManager, in ACString aRpId, in boolean aIsCreate, in boolean aShowPrompt, in nsIWebAuthnRelatedOriginCheckCallback aCallback); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CheckRelatedOriginRequest(mozilla::dom::WindowGlobalParent *aManager, const nsACString& aRpId, bool aIsCreate, bool aShowPrompt, nsIWebAuthnRelatedOriginCheckCallback *aCallback) = 0;
/* void cancel (); */
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Cancel(void) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWEBAUTHNRELATEDORIGINFETCHER \
NS_IMETHOD CheckRelatedOriginRequest(mozilla::dom::WindowGlobalParent *aManager, const nsACString& aRpId, bool aIsCreate, bool aShowPrompt, nsIWebAuthnRelatedOriginCheckCallback *aCallback) override; \
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_NSIWEBAUTHNRELATEDORIGINFETCHER \
nsresult CheckRelatedOriginRequest(mozilla::dom::WindowGlobalParent *aManager, const nsACString& aRpId, bool aIsCreate, bool aShowPrompt, nsIWebAuthnRelatedOriginCheckCallback *aCallback); \
nsresult Cancel(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWEBAUTHNRELATEDORIGINFETCHER(_to) \
NS_IMETHOD CheckRelatedOriginRequest(mozilla::dom::WindowGlobalParent *aManager, const nsACString& aRpId, bool aIsCreate, bool aShowPrompt, nsIWebAuthnRelatedOriginCheckCallback *aCallback) override { return _to CheckRelatedOriginRequest(aManager, aRpId, aIsCreate, aShowPrompt, aCallback); } \
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_NSIWEBAUTHNRELATEDORIGINFETCHER(_to) \
NS_IMETHOD CheckRelatedOriginRequest(mozilla::dom::WindowGlobalParent *aManager, const nsACString& aRpId, bool aIsCreate, bool aShowPrompt, nsIWebAuthnRelatedOriginCheckCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckRelatedOriginRequest(aManager, aRpId, aIsCreate, aShowPrompt, aCallback); } \
NS_IMETHOD Cancel(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Cancel(); }
#endif /* __gen_nsIWebAuthnRelatedOriginFetcher_h__ */