/* * DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/protocol/http/nsIHttpAuthEntry.idl */ #ifndef __gen_nsIHttpAuthEntry_h__ #define __gen_nsIHttpAuthEntry_h__ #include "nsISupports.h" /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #define NS_NO_VTABLE #endif /* starting interface: nsIHttpAuthIdentity */ #define NS_IHTTPAUTHIDENTITY_IID_STR "5a88870b-92bd-4c2f-817a-04132caef74c" #define NS_IHTTPAUTHIDENTITY_IID \ {0x5a88870b, 0x92bd, 0x4c2f, \ { 0x81, 0x7a, 0x04, 0x13, 0x2c, 0xae, 0xf7, 0x4c }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIHttpAuthIdentity) nsIHttpAuthIdentity : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_IHTTPAUTHIDENTITY_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsIHttpAuthIdentity; /* readonly attribute AString domain; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthIdentity_domain) NS_IMETHOD GetDomain(nsAString& aDomain) = 0; /* readonly attribute AString user; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthIdentity_user) NS_IMETHOD GetUser(nsAString& aUser) = 0; /* readonly attribute AString password; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthIdentity_password) NS_IMETHOD GetPassword(nsAString& aPassword) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIHTTPAUTHIDENTITY \ NS_IMETHOD GetDomain(nsAString& aDomain) override; \ NS_IMETHOD GetUser(nsAString& aUser) override; \ NS_IMETHOD GetPassword(nsAString& aPassword) 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_NSIHTTPAUTHIDENTITY \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthIdentity_domain)\ nsresult GetDomain(nsAString& aDomain); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthIdentity_user)\ nsresult GetUser(nsAString& aUser); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthIdentity_password)\ nsresult GetPassword(nsAString& aPassword); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIHTTPAUTHIDENTITY(_to) \ NS_IMETHOD GetDomain(nsAString& aDomain) override { return _to GetDomain(aDomain); } \ NS_IMETHOD GetUser(nsAString& aUser) override { return _to GetUser(aUser); } \ NS_IMETHOD GetPassword(nsAString& aPassword) override { return _to GetPassword(aPassword); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIHTTPAUTHIDENTITY(_to) \ NS_IMETHOD GetDomain(nsAString& aDomain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDomain(aDomain); } \ NS_IMETHOD GetUser(nsAString& aUser) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUser(aUser); } \ NS_IMETHOD GetPassword(nsAString& aPassword) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPassword(aPassword); } /* starting interface: nsIHttpAuthEntry */ #define NS_IHTTPAUTHENTRY_IID_STR "9bdf473d-63c2-4cf8-92f8-270e80b8aeba" #define NS_IHTTPAUTHENTRY_IID \ {0x9bdf473d, 0x63c2, 0x4cf8, \ { 0x92, 0xf8, 0x27, 0x0e, 0x80, 0xb8, 0xae, 0xba }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIHttpAuthEntry) nsIHttpAuthEntry : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_IHTTPAUTHENTRY_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsIHttpAuthEntry; /* readonly attribute ACString realm; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthEntry_realm) NS_IMETHOD GetRealm(nsACString& aRealm) = 0; /* readonly attribute ACString creds; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthEntry_creds) NS_IMETHOD GetCreds(nsACString& aCreds) = 0; /* readonly attribute ACString challenge; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthEntry_challenge) NS_IMETHOD GetChallenge(nsACString& aChallenge) = 0; /* readonly attribute AString domain; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthEntry_domain) NS_IMETHOD GetDomain(nsAString& aDomain) = 0; /* readonly attribute AString user; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthEntry_user) NS_IMETHOD GetUser(nsAString& aUser) = 0; /* readonly attribute AString password; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthEntry_password) NS_IMETHOD GetPassword(nsAString& aPassword) = 0; /* readonly attribute nsIHttpAuthIdentity identity; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthEntry_identity) NS_IMETHOD GetIdentity(nsIHttpAuthIdentity **aIdentity) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIHTTPAUTHENTRY \ NS_IMETHOD GetRealm(nsACString& aRealm) override; \ NS_IMETHOD GetCreds(nsACString& aCreds) override; \ NS_IMETHOD GetChallenge(nsACString& aChallenge) override; \ NS_IMETHOD GetDomain(nsAString& aDomain) override; \ NS_IMETHOD GetUser(nsAString& aUser) override; \ NS_IMETHOD GetPassword(nsAString& aPassword) override; \ NS_IMETHOD GetIdentity(nsIHttpAuthIdentity **aIdentity) 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_NSIHTTPAUTHENTRY \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthEntry_realm)\ nsresult GetRealm(nsACString& aRealm); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthEntry_creds)\ nsresult GetCreds(nsACString& aCreds); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthEntry_challenge)\ nsresult GetChallenge(nsACString& aChallenge); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthEntry_domain)\ nsresult GetDomain(nsAString& aDomain); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthEntry_user)\ nsresult GetUser(nsAString& aUser); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthEntry_password)\ nsresult GetPassword(nsAString& aPassword); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthEntry_identity)\ nsresult GetIdentity(nsIHttpAuthIdentity **aIdentity); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIHTTPAUTHENTRY(_to) \ NS_IMETHOD GetRealm(nsACString& aRealm) override { return _to GetRealm(aRealm); } \ NS_IMETHOD GetCreds(nsACString& aCreds) override { return _to GetCreds(aCreds); } \ NS_IMETHOD GetChallenge(nsACString& aChallenge) override { return _to GetChallenge(aChallenge); } \ NS_IMETHOD GetDomain(nsAString& aDomain) override { return _to GetDomain(aDomain); } \ NS_IMETHOD GetUser(nsAString& aUser) override { return _to GetUser(aUser); } \ NS_IMETHOD GetPassword(nsAString& aPassword) override { return _to GetPassword(aPassword); } \ NS_IMETHOD GetIdentity(nsIHttpAuthIdentity **aIdentity) override { return _to GetIdentity(aIdentity); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIHTTPAUTHENTRY(_to) \ NS_IMETHOD GetRealm(nsACString& aRealm) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRealm(aRealm); } \ NS_IMETHOD GetCreds(nsACString& aCreds) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCreds(aCreds); } \ NS_IMETHOD GetChallenge(nsACString& aChallenge) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChallenge(aChallenge); } \ NS_IMETHOD GetDomain(nsAString& aDomain) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDomain(aDomain); } \ NS_IMETHOD GetUser(nsAString& aUser) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUser(aUser); } \ NS_IMETHOD GetPassword(nsAString& aPassword) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPassword(aPassword); } \ NS_IMETHOD GetIdentity(nsIHttpAuthIdentity **aIdentity) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdentity(aIdentity); } #endif /* __gen_nsIHttpAuthEntry_h__ */