Generated file

Copy as Markdown

Other Tools

/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/base/nsIRedirectChannelRegistrar.idl
*/
#ifndef __gen_nsIRedirectChannelRegistrar_h__
#define __gen_nsIRedirectChannelRegistrar_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
class nsIChannel; /* forward declaration */
class nsIParentChannel; /* forward declaration */
/* starting interface: nsIRedirectChannelRegistrar */
#define NS_IREDIRECTCHANNELREGISTRAR_IID_STR "1f2c5e0a-9b3d-4d8e-8c4a-6d7e0b1a2c3d"
#define NS_IREDIRECTCHANNELREGISTRAR_IID \
{0x1f2c5e0a, 0x9b3d, 0x4d8e, \
{ 0x8c, 0x4a, 0x6d, 0x7e, 0x0b, 0x1a, 0x2c, 0x3d }}
class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsIRedirectChannelRegistrar) nsIRedirectChannelRegistrar : public nsISupports {
public:
NS_INLINE_DECL_STATIC_IID(NS_IREDIRECTCHANNELREGISTRAR_IID)
/* Used by ToJSValue to check which scriptable interface is implemented. */
using ScriptableInterfaceType = nsIRedirectChannelRegistrar;
/* void registerChannel (in nsIChannel channel, in uint64_t id, in uint64_t aContentParentId); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIRedirectChannelRegistrar_registerChannel)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RegisterChannel(nsIChannel *channel, uint64_t id, uint64_t aContentParentId) = 0;
/* nsIChannel linkChannels (in uint64_t id, in uint64_t aContentParentId, in nsIParentChannel channel); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIRedirectChannelRegistrar_linkChannels)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LinkChannels(uint64_t id, uint64_t aContentParentId, nsIParentChannel *channel, nsIChannel **_retval) = 0;
/* nsIChannel getRegisteredChannel (in uint64_t id); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIRedirectChannelRegistrar_getRegisteredChannel)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRegisteredChannel(uint64_t id, nsIChannel **_retval) = 0;
/* nsIParentChannel getParentChannel (in uint64_t id); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIRedirectChannelRegistrar_getParentChannel)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetParentChannel(uint64_t id, nsIParentChannel **_retval) = 0;
/* void deregisterChannels (in uint64_t id); */
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIRedirectChannelRegistrar_deregisterChannels)
JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DeregisterChannels(uint64_t id) = 0;
};
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIREDIRECTCHANNELREGISTRAR \
NS_IMETHOD RegisterChannel(nsIChannel *channel, uint64_t id, uint64_t aContentParentId) override; \
NS_IMETHOD LinkChannels(uint64_t id, uint64_t aContentParentId, nsIParentChannel *channel, nsIChannel **_retval) override; \
NS_IMETHOD GetRegisteredChannel(uint64_t id, nsIChannel **_retval) override; \
NS_IMETHOD GetParentChannel(uint64_t id, nsIParentChannel **_retval) override; \
NS_IMETHOD DeregisterChannels(uint64_t id) 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_NSIREDIRECTCHANNELREGISTRAR \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIRedirectChannelRegistrar_registerChannel)\
nsresult RegisterChannel(nsIChannel *channel, uint64_t id, uint64_t aContentParentId); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIRedirectChannelRegistrar_linkChannels)\
nsresult LinkChannels(uint64_t id, uint64_t aContentParentId, nsIParentChannel *channel, nsIChannel **_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIRedirectChannelRegistrar_getRegisteredChannel)\
nsresult GetRegisteredChannel(uint64_t id, nsIChannel **_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIRedirectChannelRegistrar_getParentChannel)\
nsresult GetParentChannel(uint64_t id, nsIParentChannel **_retval); \
MOZ_BINDING(binding_to, idl, method, XPIDL_nsIRedirectChannelRegistrar_deregisterChannels)\
nsresult DeregisterChannels(uint64_t id);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIREDIRECTCHANNELREGISTRAR(_to) \
NS_IMETHOD RegisterChannel(nsIChannel *channel, uint64_t id, uint64_t aContentParentId) override { return _to RegisterChannel(channel, id, aContentParentId); } \
NS_IMETHOD LinkChannels(uint64_t id, uint64_t aContentParentId, nsIParentChannel *channel, nsIChannel **_retval) override { return _to LinkChannels(id, aContentParentId, channel, _retval); } \
NS_IMETHOD GetRegisteredChannel(uint64_t id, nsIChannel **_retval) override { return _to GetRegisteredChannel(id, _retval); } \
NS_IMETHOD GetParentChannel(uint64_t id, nsIParentChannel **_retval) override { return _to GetParentChannel(id, _retval); } \
NS_IMETHOD DeregisterChannels(uint64_t id) override { return _to DeregisterChannels(id); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIREDIRECTCHANNELREGISTRAR(_to) \
NS_IMETHOD RegisterChannel(nsIChannel *channel, uint64_t id, uint64_t aContentParentId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterChannel(channel, id, aContentParentId); } \
NS_IMETHOD LinkChannels(uint64_t id, uint64_t aContentParentId, nsIParentChannel *channel, nsIChannel **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LinkChannels(id, aContentParentId, channel, _retval); } \
NS_IMETHOD GetRegisteredChannel(uint64_t id, nsIChannel **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRegisteredChannel(id, _retval); } \
NS_IMETHOD GetParentChannel(uint64_t id, nsIParentChannel **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentChannel(id, _retval); } \
NS_IMETHOD DeregisterChannels(uint64_t id) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeregisterChannels(id); }
#endif /* __gen_nsIRedirectChannelRegistrar_h__ */