/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/toolkit/xre/nsIASWebAuthSessionRequest.idl
*/
#ifndef __gen_nsIASWebAuthSessionRequest_h__
#define __gen_nsIASWebAuthSessionRequest_h__
#include "nsISupports.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: nsIASWebAuthSessionRequest */
#define NS_IASWEBAUTHSESSIONREQUEST_IID_STR "e54beddf-a7b2-4d37-9348-a1e29549e4dd"
#define NS_IASWEBAUTHSESSIONREQUEST_IID \
{0xe54beddf, 0xa7b2, 0x4d37, \
{ 0x93, 0x48, 0xa1, 0xe2, 0x95, 0x49, 0xe4, 0xdd }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIASWebAuthSessionRequest) nsIASWebAuthSessionRequest : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_IASWEBAUTHSESSIONREQUEST_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIASWebAuthSessionRequest;
/* readonly attribute AString uuid; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIASWebAuthSessionRequest_uuid)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUuid(nsAString& aUuid) = 0;
/* readonly attribute AString url; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIASWebAuthSessionRequest_url)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUrl(nsAString& aUrl) = 0;
/* readonly attribute AString callbackScheme; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIASWebAuthSessionRequest_callbackScheme)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCallbackScheme(nsAString& aCallbackScheme) = 0;
/* readonly attribute boolean hasCallback; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIASWebAuthSessionRequest_hasCallback)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetHasCallback(bool *aHasCallback) = 0;
/* readonly attribute boolean useEphemeralSession; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIASWebAuthSessionRequest_useEphemeralSession)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUseEphemeralSession(bool *aUseEphemeralSession) = 0;
/* readonly attribute Array<AString> additionalHeaderNames; */
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIASWebAuthSessionRequest_additionalHeaderNames)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAdditionalHeaderNames(nsTArray<nsString >& aAdditionalHeaderNames) = 0;
/* AString getAdditionalHeader (in AString name); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIASWebAuthSessionRequest_getAdditionalHeader)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAdditionalHeader(const nsAString& name, nsAString& _retval) = 0;
/* boolean matchesCallbackURL (in AString url); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIASWebAuthSessionRequest_matchesCallbackURL)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD MatchesCallbackURL(const nsAString& url, bool *_retval) = 0;
/* void complete (in AString callbackURL); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIASWebAuthSessionRequest_complete)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Complete(const nsAString& callbackURL) = 0;
/* void cancel (); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIASWebAuthSessionRequest_cancel)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Cancel(void) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIASWEBAUTHSESSIONREQUEST \
NS_IMETHOD GetUuid(nsAString& aUuid) override; \
NS_IMETHOD GetUrl(nsAString& aUrl) override; \
NS_IMETHOD GetCallbackScheme(nsAString& aCallbackScheme) override; \
NS_IMETHOD GetHasCallback(bool *aHasCallback) override; \
NS_IMETHOD GetUseEphemeralSession(bool *aUseEphemeralSession) override; \
NS_IMETHOD GetAdditionalHeaderNames(nsTArray<nsString >& aAdditionalHeaderNames) override; \
NS_IMETHOD GetAdditionalHeader(const nsAString& name, nsAString& _retval) override; \
NS_IMETHOD MatchesCallbackURL(const nsAString& url, bool *_retval) override; \
NS_IMETHOD Complete(const nsAString& callbackURL) 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_NSIASWEBAUTHSESSIONREQUEST \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIASWebAuthSessionRequest_uuid)\
nsresult GetUuid(nsAString& aUuid); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIASWebAuthSessionRequest_url)\
nsresult GetUrl(nsAString& aUrl); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIASWebAuthSessionRequest_callbackScheme)\
nsresult GetCallbackScheme(nsAString& aCallbackScheme); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIASWebAuthSessionRequest_hasCallback)\
nsresult GetHasCallback(bool *aHasCallback); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIASWebAuthSessionRequest_useEphemeralSession)\
nsresult GetUseEphemeralSession(bool *aUseEphemeralSession); \
MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIASWebAuthSessionRequest_additionalHeaderNames)\
nsresult GetAdditionalHeaderNames(nsTArray<nsString >& aAdditionalHeaderNames); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIASWebAuthSessionRequest_getAdditionalHeader)\
nsresult GetAdditionalHeader(const nsAString& name, nsAString& _retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIASWebAuthSessionRequest_matchesCallbackURL)\
nsresult MatchesCallbackURL(const nsAString& url, bool *_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIASWebAuthSessionRequest_complete)\
nsresult Complete(const nsAString& callbackURL); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIASWebAuthSessionRequest_cancel)\
nsresult Cancel(void);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIASWEBAUTHSESSIONREQUEST(_to) \
NS_IMETHOD GetUuid(nsAString& aUuid) override { return _to GetUuid(aUuid); } \
NS_IMETHOD GetUrl(nsAString& aUrl) override { return _to GetUrl(aUrl); } \
NS_IMETHOD GetCallbackScheme(nsAString& aCallbackScheme) override { return _to GetCallbackScheme(aCallbackScheme); } \
NS_IMETHOD GetHasCallback(bool *aHasCallback) override { return _to GetHasCallback(aHasCallback); } \
NS_IMETHOD GetUseEphemeralSession(bool *aUseEphemeralSession) override { return _to GetUseEphemeralSession(aUseEphemeralSession); } \
NS_IMETHOD GetAdditionalHeaderNames(nsTArray<nsString >& aAdditionalHeaderNames) override { return _to GetAdditionalHeaderNames(aAdditionalHeaderNames); } \
NS_IMETHOD GetAdditionalHeader(const nsAString& name, nsAString& _retval) override { return _to GetAdditionalHeader(name, _retval); } \
NS_IMETHOD MatchesCallbackURL(const nsAString& url, bool *_retval) override { return _to MatchesCallbackURL(url, _retval); } \
NS_IMETHOD Complete(const nsAString& callbackURL) override { return _to Complete(callbackURL); } \
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_NSIASWEBAUTHSESSIONREQUEST(_to) \
NS_IMETHOD GetUuid(nsAString& aUuid) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUuid(aUuid); } \
NS_IMETHOD GetUrl(nsAString& aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUrl(aUrl); } \
NS_IMETHOD GetCallbackScheme(nsAString& aCallbackScheme) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCallbackScheme(aCallbackScheme); } \
NS_IMETHOD GetHasCallback(bool *aHasCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHasCallback(aHasCallback); } \
NS_IMETHOD GetUseEphemeralSession(bool *aUseEphemeralSession) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUseEphemeralSession(aUseEphemeralSession); } \
NS_IMETHOD GetAdditionalHeaderNames(nsTArray<nsString >& aAdditionalHeaderNames) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdditionalHeaderNames(aAdditionalHeaderNames); } \
NS_IMETHOD GetAdditionalHeader(const nsAString& name, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAdditionalHeader(name, _retval); } \
NS_IMETHOD MatchesCallbackURL(const nsAString& url, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchesCallbackURL(url, _retval); } \
NS_IMETHOD Complete(const nsAString& callbackURL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Complete(callbackURL); } \
NS_IMETHOD Cancel(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Cancel(); }
#endif /* __gen_nsIASWebAuthSessionRequest_h__ */