/* * DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/protocol/http/nsIHttpAuthenticableChannel.idl */ #ifndef __gen_nsIHttpAuthenticableChannel_h__ #define __gen_nsIHttpAuthenticableChannel_h__ #include "nsIProxiedChannel.h" #include "nsIRequest.h" /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #define NS_NO_VTABLE #endif class nsILoadGroup; /* forward declaration */ class nsIURI; /* forward declaration */ class nsIInterfaceRequestor; /* forward declaration */ /* starting interface: nsIHttpAuthenticableChannel */ #define NS_IHTTPAUTHENTICABLECHANNEL_IID_STR "701093ac-5c7f-429c-99e3-423b041fccb4" #define NS_IHTTPAUTHENTICABLECHANNEL_IID \ {0x701093ac, 0x5c7f, 0x429c, \ { 0x99, 0xe3, 0x42, 0x3b, 0x04, 0x1f, 0xcc, 0xb4 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIHttpAuthenticableChannel) nsIHttpAuthenticableChannel : public nsIProxiedChannel { public: NS_INLINE_DECL_STATIC_IID(NS_IHTTPAUTHENTICABLECHANNEL_IID) /* [must_use] readonly attribute boolean isSSL; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_isSSL) [[nodiscard]] NS_IMETHOD GetIsSSL(bool *aIsSSL) = 0; /* [must_use] readonly attribute boolean proxyMethodIsConnect; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_proxyMethodIsConnect) [[nodiscard]] NS_IMETHOD GetProxyMethodIsConnect(bool *aProxyMethodIsConnect) = 0; /* [must_use] void cancel (in nsresult aStatus); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpAuthenticableChannel_cancel) [[nodiscard]] NS_IMETHOD Cancel(nsresult aStatus) = 0; /* [must_use] readonly attribute nsLoadFlags loadFlags; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_loadFlags) [[nodiscard]] NS_IMETHOD GetLoadFlags(nsLoadFlags *aLoadFlags) = 0; /* [must_use] readonly attribute nsIURI URI; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_URI) [[nodiscard]] NS_IMETHOD GetURI(nsIURI **aURI) = 0; /* [must_use] readonly attribute nsILoadGroup loadGroup; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_loadGroup) [[nodiscard]] NS_IMETHOD GetLoadGroup(nsILoadGroup **aLoadGroup) = 0; /* [must_use] readonly attribute nsIInterfaceRequestor notificationCallbacks; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_notificationCallbacks) [[nodiscard]] NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks) = 0; /* [must_use] readonly attribute ACString requestMethod; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_requestMethod) [[nodiscard]] NS_IMETHOD GetRequestMethod(nsACString& aRequestMethod) = 0; /* [must_use] readonly attribute ACString serverResponseHeader; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_serverResponseHeader) [[nodiscard]] NS_IMETHOD GetServerResponseHeader(nsACString& aServerResponseHeader) = 0; /* [must_use] readonly attribute ACString proxyChallenges; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_proxyChallenges) [[nodiscard]] NS_IMETHOD GetProxyChallenges(nsACString& aProxyChallenges) = 0; /* [must_use] readonly attribute ACString WWWChallenges; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_WWWChallenges) [[nodiscard]] NS_IMETHOD GetWWWChallenges(nsACString& aWWWChallenges) = 0; /* [must_use] void setProxyCredentials (in ACString credentials); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpAuthenticableChannel_setProxyCredentials) [[nodiscard]] NS_IMETHOD SetProxyCredentials(const nsACString& credentials) = 0; /* [must_use] void setWWWCredentials (in ACString credentials); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpAuthenticableChannel_setWWWCredentials) [[nodiscard]] NS_IMETHOD SetWWWCredentials(const nsACString& credentials) = 0; /* [must_use] void onAuthAvailable (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpAuthenticableChannel_onAuthAvailable) [[nodiscard]] NS_IMETHOD OnAuthAvailable(void) = 0; /* [must_use] void onAuthCancelled (in boolean userCancel); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpAuthenticableChannel_onAuthCancelled) [[nodiscard]] NS_IMETHOD OnAuthCancelled(bool userCancel) = 0; /* [must_use] void closeStickyConnection (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpAuthenticableChannel_closeStickyConnection) [[nodiscard]] NS_IMETHOD CloseStickyConnection(void) = 0; /* void connectionRestartable (in boolean restartable); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpAuthenticableChannel_connectionRestartable) NS_IMETHOD ConnectionRestartable(bool restartable) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIHTTPAUTHENTICABLECHANNEL \ [[nodiscard]] NS_IMETHOD GetIsSSL(bool *aIsSSL) override; \ [[nodiscard]] NS_IMETHOD GetProxyMethodIsConnect(bool *aProxyMethodIsConnect) override; \ [[nodiscard]] NS_IMETHOD Cancel(nsresult aStatus) override; \ [[nodiscard]] NS_IMETHOD GetLoadFlags(nsLoadFlags *aLoadFlags) override; \ [[nodiscard]] NS_IMETHOD GetURI(nsIURI **aURI) override; \ [[nodiscard]] NS_IMETHOD GetLoadGroup(nsILoadGroup **aLoadGroup) override; \ [[nodiscard]] NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks) override; \ [[nodiscard]] NS_IMETHOD GetRequestMethod(nsACString& aRequestMethod) override; \ [[nodiscard]] NS_IMETHOD GetServerResponseHeader(nsACString& aServerResponseHeader) override; \ [[nodiscard]] NS_IMETHOD GetProxyChallenges(nsACString& aProxyChallenges) override; \ [[nodiscard]] NS_IMETHOD GetWWWChallenges(nsACString& aWWWChallenges) override; \ [[nodiscard]] NS_IMETHOD SetProxyCredentials(const nsACString& credentials) override; \ [[nodiscard]] NS_IMETHOD SetWWWCredentials(const nsACString& credentials) override; \ [[nodiscard]] NS_IMETHOD OnAuthAvailable(void) override; \ [[nodiscard]] NS_IMETHOD OnAuthCancelled(bool userCancel) override; \ [[nodiscard]] NS_IMETHOD CloseStickyConnection(void) override; \ NS_IMETHOD ConnectionRestartable(bool restartable) 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_NSIHTTPAUTHENTICABLECHANNEL \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_isSSL)\ [[nodiscard]] nsresult GetIsSSL(bool *aIsSSL); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_proxyMethodIsConnect)\ [[nodiscard]] nsresult GetProxyMethodIsConnect(bool *aProxyMethodIsConnect); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpAuthenticableChannel_cancel)\ [[nodiscard]] nsresult Cancel(nsresult aStatus); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_loadFlags)\ [[nodiscard]] nsresult GetLoadFlags(nsLoadFlags *aLoadFlags); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_URI)\ [[nodiscard]] nsresult GetURI(nsIURI **aURI); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_loadGroup)\ [[nodiscard]] nsresult GetLoadGroup(nsILoadGroup **aLoadGroup); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_notificationCallbacks)\ [[nodiscard]] nsresult GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_requestMethod)\ [[nodiscard]] nsresult GetRequestMethod(nsACString& aRequestMethod); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_serverResponseHeader)\ [[nodiscard]] nsresult GetServerResponseHeader(nsACString& aServerResponseHeader); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_proxyChallenges)\ [[nodiscard]] nsresult GetProxyChallenges(nsACString& aProxyChallenges); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpAuthenticableChannel_WWWChallenges)\ [[nodiscard]] nsresult GetWWWChallenges(nsACString& aWWWChallenges); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpAuthenticableChannel_setProxyCredentials)\ [[nodiscard]] nsresult SetProxyCredentials(const nsACString& credentials); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpAuthenticableChannel_setWWWCredentials)\ [[nodiscard]] nsresult SetWWWCredentials(const nsACString& credentials); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpAuthenticableChannel_onAuthAvailable)\ [[nodiscard]] nsresult OnAuthAvailable(void); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpAuthenticableChannel_onAuthCancelled)\ [[nodiscard]] nsresult OnAuthCancelled(bool userCancel); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpAuthenticableChannel_closeStickyConnection)\ [[nodiscard]] nsresult CloseStickyConnection(void); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpAuthenticableChannel_connectionRestartable)\ nsresult ConnectionRestartable(bool restartable); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIHTTPAUTHENTICABLECHANNEL(_to) \ [[nodiscard]] NS_IMETHOD GetIsSSL(bool *aIsSSL) override { return _to GetIsSSL(aIsSSL); } \ [[nodiscard]] NS_IMETHOD GetProxyMethodIsConnect(bool *aProxyMethodIsConnect) override { return _to GetProxyMethodIsConnect(aProxyMethodIsConnect); } \ [[nodiscard]] NS_IMETHOD Cancel(nsresult aStatus) override { return _to Cancel(aStatus); } \ [[nodiscard]] NS_IMETHOD GetLoadFlags(nsLoadFlags *aLoadFlags) override { return _to GetLoadFlags(aLoadFlags); } \ [[nodiscard]] NS_IMETHOD GetURI(nsIURI **aURI) override { return _to GetURI(aURI); } \ [[nodiscard]] NS_IMETHOD GetLoadGroup(nsILoadGroup **aLoadGroup) override { return _to GetLoadGroup(aLoadGroup); } \ [[nodiscard]] NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks) override { return _to GetNotificationCallbacks(aNotificationCallbacks); } \ [[nodiscard]] NS_IMETHOD GetRequestMethod(nsACString& aRequestMethod) override { return _to GetRequestMethod(aRequestMethod); } \ [[nodiscard]] NS_IMETHOD GetServerResponseHeader(nsACString& aServerResponseHeader) override { return _to GetServerResponseHeader(aServerResponseHeader); } \ [[nodiscard]] NS_IMETHOD GetProxyChallenges(nsACString& aProxyChallenges) override { return _to GetProxyChallenges(aProxyChallenges); } \ [[nodiscard]] NS_IMETHOD GetWWWChallenges(nsACString& aWWWChallenges) override { return _to GetWWWChallenges(aWWWChallenges); } \ [[nodiscard]] NS_IMETHOD SetProxyCredentials(const nsACString& credentials) override { return _to SetProxyCredentials(credentials); } \ [[nodiscard]] NS_IMETHOD SetWWWCredentials(const nsACString& credentials) override { return _to SetWWWCredentials(credentials); } \ [[nodiscard]] NS_IMETHOD OnAuthAvailable(void) override { return _to OnAuthAvailable(); } \ [[nodiscard]] NS_IMETHOD OnAuthCancelled(bool userCancel) override { return _to OnAuthCancelled(userCancel); } \ [[nodiscard]] NS_IMETHOD CloseStickyConnection(void) override { return _to CloseStickyConnection(); } \ NS_IMETHOD ConnectionRestartable(bool restartable) override { return _to ConnectionRestartable(restartable); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIHTTPAUTHENTICABLECHANNEL(_to) \ [[nodiscard]] NS_IMETHOD GetIsSSL(bool *aIsSSL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsSSL(aIsSSL); } \ [[nodiscard]] NS_IMETHOD GetProxyMethodIsConnect(bool *aProxyMethodIsConnect) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProxyMethodIsConnect(aProxyMethodIsConnect); } \ [[nodiscard]] NS_IMETHOD Cancel(nsresult aStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Cancel(aStatus); } \ [[nodiscard]] NS_IMETHOD GetLoadFlags(nsLoadFlags *aLoadFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadFlags(aLoadFlags); } \ [[nodiscard]] NS_IMETHOD GetURI(nsIURI **aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \ [[nodiscard]] NS_IMETHOD GetLoadGroup(nsILoadGroup **aLoadGroup) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLoadGroup(aLoadGroup); } \ [[nodiscard]] NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor **aNotificationCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotificationCallbacks(aNotificationCallbacks); } \ [[nodiscard]] NS_IMETHOD GetRequestMethod(nsACString& aRequestMethod) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestMethod(aRequestMethod); } \ [[nodiscard]] NS_IMETHOD GetServerResponseHeader(nsACString& aServerResponseHeader) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServerResponseHeader(aServerResponseHeader); } \ [[nodiscard]] NS_IMETHOD GetProxyChallenges(nsACString& aProxyChallenges) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProxyChallenges(aProxyChallenges); } \ [[nodiscard]] NS_IMETHOD GetWWWChallenges(nsACString& aWWWChallenges) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWWWChallenges(aWWWChallenges); } \ [[nodiscard]] NS_IMETHOD SetProxyCredentials(const nsACString& credentials) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProxyCredentials(credentials); } \ [[nodiscard]] NS_IMETHOD SetWWWCredentials(const nsACString& credentials) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWWWCredentials(credentials); } \ [[nodiscard]] NS_IMETHOD OnAuthAvailable(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAuthAvailable(); } \ [[nodiscard]] NS_IMETHOD OnAuthCancelled(bool userCancel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAuthCancelled(userCancel); } \ [[nodiscard]] NS_IMETHOD CloseStickyConnection(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseStickyConnection(); } \ NS_IMETHOD ConnectionRestartable(bool restartable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ConnectionRestartable(restartable); } #endif /* __gen_nsIHttpAuthenticableChannel_h__ */