Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIRedirectChannelRegistrar.idl
3 : */
4 :
5 : #ifndef __gen_nsIRedirectChannelRegistrar_h__
6 : #define __gen_nsIRedirectChannelRegistrar_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : class nsIChannel; /* forward declaration */
18 :
19 : class nsIParentChannel; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIRedirectChannelRegistrar */
23 : #define NS_IREDIRECTCHANNELREGISTRAR_IID_STR "efa36ea2-5b07-46fc-9534-a5acb8b77b72"
24 :
25 : #define NS_IREDIRECTCHANNELREGISTRAR_IID \
26 : {0xefa36ea2, 0x5b07, 0x46fc, \
27 : { 0x95, 0x34, 0xa5, 0xac, 0xb8, 0xb7, 0x7b, 0x72 }}
28 :
29 0 : class NS_NO_VTABLE nsIRedirectChannelRegistrar : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IREDIRECTCHANNELREGISTRAR_IID)
33 :
34 : /* uint32_t registerChannel (in nsIChannel channel); */
35 : NS_IMETHOD RegisterChannel(nsIChannel *channel, uint32_t *_retval) = 0;
36 :
37 : /* nsIChannel linkChannels (in uint32_t id, in nsIParentChannel channel); */
38 : NS_IMETHOD LinkChannels(uint32_t id, nsIParentChannel *channel, nsIChannel * *_retval) = 0;
39 :
40 : /* nsIChannel getRegisteredChannel (in uint32_t id); */
41 : NS_IMETHOD GetRegisteredChannel(uint32_t id, nsIChannel * *_retval) = 0;
42 :
43 : /* nsIParentChannel getParentChannel (in uint32_t id); */
44 : NS_IMETHOD GetParentChannel(uint32_t id, nsIParentChannel * *_retval) = 0;
45 :
46 : /* void deregisterChannels (in uint32_t id); */
47 : NS_IMETHOD DeregisterChannels(uint32_t id) = 0;
48 :
49 : };
50 :
51 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIRedirectChannelRegistrar, NS_IREDIRECTCHANNELREGISTRAR_IID)
52 :
53 : /* Use this macro when declaring classes that implement this interface. */
54 : #define NS_DECL_NSIREDIRECTCHANNELREGISTRAR \
55 : NS_IMETHOD RegisterChannel(nsIChannel *channel, uint32_t *_retval) override; \
56 : NS_IMETHOD LinkChannels(uint32_t id, nsIParentChannel *channel, nsIChannel * *_retval) override; \
57 : NS_IMETHOD GetRegisteredChannel(uint32_t id, nsIChannel * *_retval) override; \
58 : NS_IMETHOD GetParentChannel(uint32_t id, nsIParentChannel * *_retval) override; \
59 : NS_IMETHOD DeregisterChannels(uint32_t id) override;
60 :
61 : /* Use this macro when declaring the members of this interface when the
62 : class doesn't implement the interface. This is useful for forwarding. */
63 : #define NS_DECL_NON_VIRTUAL_NSIREDIRECTCHANNELREGISTRAR \
64 : nsresult RegisterChannel(nsIChannel *channel, uint32_t *_retval); \
65 : nsresult LinkChannels(uint32_t id, nsIParentChannel *channel, nsIChannel * *_retval); \
66 : nsresult GetRegisteredChannel(uint32_t id, nsIChannel * *_retval); \
67 : nsresult GetParentChannel(uint32_t id, nsIParentChannel * *_retval); \
68 : nsresult DeregisterChannels(uint32_t id);
69 :
70 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
71 : #define NS_FORWARD_NSIREDIRECTCHANNELREGISTRAR(_to) \
72 : NS_IMETHOD RegisterChannel(nsIChannel *channel, uint32_t *_retval) override { return _to RegisterChannel(channel, _retval); } \
73 : NS_IMETHOD LinkChannels(uint32_t id, nsIParentChannel *channel, nsIChannel * *_retval) override { return _to LinkChannels(id, channel, _retval); } \
74 : NS_IMETHOD GetRegisteredChannel(uint32_t id, nsIChannel * *_retval) override { return _to GetRegisteredChannel(id, _retval); } \
75 : NS_IMETHOD GetParentChannel(uint32_t id, nsIParentChannel * *_retval) override { return _to GetParentChannel(id, _retval); } \
76 : NS_IMETHOD DeregisterChannels(uint32_t id) override { return _to DeregisterChannels(id); }
77 :
78 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
79 : #define NS_FORWARD_SAFE_NSIREDIRECTCHANNELREGISTRAR(_to) \
80 : NS_IMETHOD RegisterChannel(nsIChannel *channel, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterChannel(channel, _retval); } \
81 : NS_IMETHOD LinkChannels(uint32_t id, nsIParentChannel *channel, nsIChannel * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LinkChannels(id, channel, _retval); } \
82 : NS_IMETHOD GetRegisteredChannel(uint32_t id, nsIChannel * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRegisteredChannel(id, _retval); } \
83 : NS_IMETHOD GetParentChannel(uint32_t id, nsIParentChannel * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentChannel(id, _retval); } \
84 : NS_IMETHOD DeregisterChannels(uint32_t id) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DeregisterChannels(id); }
85 :
86 : #if 0
87 : /* Use the code below as a template for the implementation class for this interface. */
88 :
89 : /* Header file */
90 : class nsRedirectChannelRegistrar : public nsIRedirectChannelRegistrar
91 : {
92 : public:
93 : NS_DECL_ISUPPORTS
94 : NS_DECL_NSIREDIRECTCHANNELREGISTRAR
95 :
96 : nsRedirectChannelRegistrar();
97 :
98 : private:
99 : ~nsRedirectChannelRegistrar();
100 :
101 : protected:
102 : /* additional members */
103 : };
104 :
105 : /* Implementation file */
106 : NS_IMPL_ISUPPORTS(nsRedirectChannelRegistrar, nsIRedirectChannelRegistrar)
107 :
108 : nsRedirectChannelRegistrar::nsRedirectChannelRegistrar()
109 : {
110 : /* member initializers and constructor code */
111 : }
112 :
113 : nsRedirectChannelRegistrar::~nsRedirectChannelRegistrar()
114 : {
115 : /* destructor code */
116 : }
117 :
118 : /* uint32_t registerChannel (in nsIChannel channel); */
119 : NS_IMETHODIMP nsRedirectChannelRegistrar::RegisterChannel(nsIChannel *channel, uint32_t *_retval)
120 : {
121 : return NS_ERROR_NOT_IMPLEMENTED;
122 : }
123 :
124 : /* nsIChannel linkChannels (in uint32_t id, in nsIParentChannel channel); */
125 : NS_IMETHODIMP nsRedirectChannelRegistrar::LinkChannels(uint32_t id, nsIParentChannel *channel, nsIChannel * *_retval)
126 : {
127 : return NS_ERROR_NOT_IMPLEMENTED;
128 : }
129 :
130 : /* nsIChannel getRegisteredChannel (in uint32_t id); */
131 : NS_IMETHODIMP nsRedirectChannelRegistrar::GetRegisteredChannel(uint32_t id, nsIChannel * *_retval)
132 : {
133 : return NS_ERROR_NOT_IMPLEMENTED;
134 : }
135 :
136 : /* nsIParentChannel getParentChannel (in uint32_t id); */
137 : NS_IMETHODIMP nsRedirectChannelRegistrar::GetParentChannel(uint32_t id, nsIParentChannel * *_retval)
138 : {
139 : return NS_ERROR_NOT_IMPLEMENTED;
140 : }
141 :
142 : /* void deregisterChannels (in uint32_t id); */
143 : NS_IMETHODIMP nsRedirectChannelRegistrar::DeregisterChannels(uint32_t id)
144 : {
145 : return NS_ERROR_NOT_IMPLEMENTED;
146 : }
147 :
148 : /* End of implementation class template. */
149 : #endif
150 :
151 :
152 : #endif /* __gen_nsIRedirectChannelRegistrar_h__ */
|