/* * DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/protocol/http/nsIHttpChannelChild.idl */ #ifndef __gen_nsIHttpChannelChild_h__ #define __gen_nsIHttpChannelChild_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 // %{C++:8-10 namespace mozilla { class OriginAttributes; } // mozilla namespace // %} class nsIPrincipal; /* forward declaration */ class nsIURI; /* forward declaration */ /* starting interface: nsIHttpChannelChild */ #define NS_IHTTPCHANNELCHILD_IID_STR "d02b96ed-2789-4f42-a25c-7abe63de7c18" #define NS_IHTTPCHANNELCHILD_IID \ {0xd02b96ed, 0x2789, 0x4f42, \ { 0xa2, 0x5c, 0x7a, 0xbe, 0x63, 0xde, 0x7c, 0x18 }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIHttpChannelChild) nsIHttpChannelChild : public nsISupports { public: NS_INLINE_DECL_STATIC_IID(NS_IHTTPCHANNELCHILD_IID) /* [must_use] void addCookiesToRequest (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpChannelChild_addCookiesToRequest) [[nodiscard]] NS_IMETHOD AddCookiesToRequest(void) = 0; /* [must_use] readonly attribute RequestHeaderTuples clientSetRequestHeaders; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpChannelChild_clientSetRequestHeaders) [[nodiscard]] NS_IMETHOD GetClientSetRequestHeaders(mozilla::net::RequestHeaderTuples * * aClientSetRequestHeaders) = 0; /* [nostdcall,notxpcom] void GetClientSetCorsPreflightParameters (in MaybeCorsPreflightArgsRef args); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpChannelChild_GetClientSetCorsPreflightParameters) virtual void GetClientSetCorsPreflightParameters(mozilla::Maybe & args) = 0; /* [must_use] void removeCorsPreflightCacheEntry (in nsIURI aURI, in nsIPrincipal aRequestingPrincipal, in const_OriginAttributes aOriginAttributes); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpChannelChild_removeCorsPreflightCacheEntry) [[nodiscard]] NS_IMETHOD RemoveCorsPreflightCacheEntry(nsIURI *aURI, nsIPrincipal *aRequestingPrincipal, const mozilla::OriginAttributes & aOriginAttributes) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSIHTTPCHANNELCHILD \ [[nodiscard]] NS_IMETHOD AddCookiesToRequest(void) override; \ [[nodiscard]] NS_IMETHOD GetClientSetRequestHeaders(mozilla::net::RequestHeaderTuples * * aClientSetRequestHeaders) override; \ virtual void GetClientSetCorsPreflightParameters(mozilla::Maybe & args) override; \ [[nodiscard]] NS_IMETHOD RemoveCorsPreflightCacheEntry(nsIURI *aURI, nsIPrincipal *aRequestingPrincipal, const mozilla::OriginAttributes & aOriginAttributes) 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_NSIHTTPCHANNELCHILD \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpChannelChild_addCookiesToRequest)\ [[nodiscard]] nsresult AddCookiesToRequest(void); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsIHttpChannelChild_clientSetRequestHeaders)\ [[nodiscard]] nsresult GetClientSetRequestHeaders(mozilla::net::RequestHeaderTuples * * aClientSetRequestHeaders); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpChannelChild_GetClientSetCorsPreflightParameters)\ void GetClientSetCorsPreflightParameters(mozilla::Maybe & args); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsIHttpChannelChild_removeCorsPreflightCacheEntry)\ [[nodiscard]] nsresult RemoveCorsPreflightCacheEntry(nsIURI *aURI, nsIPrincipal *aRequestingPrincipal, const mozilla::OriginAttributes & aOriginAttributes); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSIHTTPCHANNELCHILD(_to) \ [[nodiscard]] NS_IMETHOD AddCookiesToRequest(void) override { return _to AddCookiesToRequest(); } \ [[nodiscard]] NS_IMETHOD GetClientSetRequestHeaders(mozilla::net::RequestHeaderTuples * * aClientSetRequestHeaders) override { return _to GetClientSetRequestHeaders(aClientSetRequestHeaders); } \ virtual void GetClientSetCorsPreflightParameters(mozilla::Maybe & args) override { return _to GetClientSetCorsPreflightParameters(args); } \ [[nodiscard]] NS_IMETHOD RemoveCorsPreflightCacheEntry(nsIURI *aURI, nsIPrincipal *aRequestingPrincipal, const mozilla::OriginAttributes & aOriginAttributes) override { return _to RemoveCorsPreflightCacheEntry(aURI, aRequestingPrincipal, aOriginAttributes); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSIHTTPCHANNELCHILD(_to) \ [[nodiscard]] NS_IMETHOD AddCookiesToRequest(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCookiesToRequest(); } \ [[nodiscard]] NS_IMETHOD GetClientSetRequestHeaders(mozilla::net::RequestHeaderTuples * * aClientSetRequestHeaders) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientSetRequestHeaders(aClientSetRequestHeaders); } \ virtual void GetClientSetCorsPreflightParameters(mozilla::Maybe & args) override; \ [[nodiscard]] NS_IMETHOD RemoveCorsPreflightCacheEntry(nsIURI *aURI, nsIPrincipal *aRequestingPrincipal, const mozilla::OriginAttributes & aOriginAttributes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveCorsPreflightCacheEntry(aURI, aRequestingPrincipal, aOriginAttributes); } #endif /* __gen_nsIHttpChannelChild_h__ */