Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIParentRedirectingChannel.idl
3 : */
4 :
5 : #ifndef __gen_nsIParentRedirectingChannel_h__
6 : #define __gen_nsIParentRedirectingChannel_h__
7 :
8 :
9 : #ifndef __gen_nsIParentChannel_h__
10 : #include "nsIParentChannel.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 nsITabParent; /* forward declaration */
18 :
19 : class nsIChannel; /* forward declaration */
20 :
21 : class nsIAsyncVerifyRedirectCallback; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIAsyncVerifyRedirectReadyCallback */
25 : #define NS_IASYNCVERIFYREDIRECTREADYCALLBACK_IID_STR "01987690-48cf-45de-bae3-e143c2adc2a8"
26 :
27 : #define NS_IASYNCVERIFYREDIRECTREADYCALLBACK_IID \
28 : {0x01987690, 0x48cf, 0x45de, \
29 : { 0xba, 0xe3, 0xe1, 0x43, 0xc2, 0xad, 0xc2, 0xa8 }}
30 :
31 3 : class NS_NO_VTABLE nsIAsyncVerifyRedirectReadyCallback : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IASYNCVERIFYREDIRECTREADYCALLBACK_IID)
35 :
36 : /* void readyToVerify (in nsresult result); */
37 : NS_IMETHOD ReadyToVerify(nsresult result) = 0;
38 :
39 : };
40 :
41 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAsyncVerifyRedirectReadyCallback, NS_IASYNCVERIFYREDIRECTREADYCALLBACK_IID)
42 :
43 : /* Use this macro when declaring classes that implement this interface. */
44 : #define NS_DECL_NSIASYNCVERIFYREDIRECTREADYCALLBACK \
45 : NS_IMETHOD ReadyToVerify(nsresult result) override;
46 :
47 : /* Use this macro when declaring the members of this interface when the
48 : class doesn't implement the interface. This is useful for forwarding. */
49 : #define NS_DECL_NON_VIRTUAL_NSIASYNCVERIFYREDIRECTREADYCALLBACK \
50 : nsresult ReadyToVerify(nsresult result);
51 :
52 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
53 : #define NS_FORWARD_NSIASYNCVERIFYREDIRECTREADYCALLBACK(_to) \
54 : NS_IMETHOD ReadyToVerify(nsresult result) override { return _to ReadyToVerify(result); }
55 :
56 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
57 : #define NS_FORWARD_SAFE_NSIASYNCVERIFYREDIRECTREADYCALLBACK(_to) \
58 : NS_IMETHOD ReadyToVerify(nsresult result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReadyToVerify(result); }
59 :
60 : #if 0
61 : /* Use the code below as a template for the implementation class for this interface. */
62 :
63 : /* Header file */
64 : class nsAsyncVerifyRedirectReadyCallback : public nsIAsyncVerifyRedirectReadyCallback
65 : {
66 : public:
67 : NS_DECL_ISUPPORTS
68 : NS_DECL_NSIASYNCVERIFYREDIRECTREADYCALLBACK
69 :
70 : nsAsyncVerifyRedirectReadyCallback();
71 :
72 : private:
73 : ~nsAsyncVerifyRedirectReadyCallback();
74 :
75 : protected:
76 : /* additional members */
77 : };
78 :
79 : /* Implementation file */
80 : NS_IMPL_ISUPPORTS(nsAsyncVerifyRedirectReadyCallback, nsIAsyncVerifyRedirectReadyCallback)
81 :
82 : nsAsyncVerifyRedirectReadyCallback::nsAsyncVerifyRedirectReadyCallback()
83 : {
84 : /* member initializers and constructor code */
85 : }
86 :
87 : nsAsyncVerifyRedirectReadyCallback::~nsAsyncVerifyRedirectReadyCallback()
88 : {
89 : /* destructor code */
90 : }
91 :
92 : /* void readyToVerify (in nsresult result); */
93 : NS_IMETHODIMP nsAsyncVerifyRedirectReadyCallback::ReadyToVerify(nsresult result)
94 : {
95 : return NS_ERROR_NOT_IMPLEMENTED;
96 : }
97 :
98 : /* End of implementation class template. */
99 : #endif
100 :
101 :
102 : /* starting interface: nsIParentRedirectingChannel */
103 : #define NS_IPARENTREDIRECTINGCHANNEL_IID_STR "3ed1d288-5324-46ee-8a98-33ac37d1080b"
104 :
105 : #define NS_IPARENTREDIRECTINGCHANNEL_IID \
106 : {0x3ed1d288, 0x5324, 0x46ee, \
107 : { 0x8a, 0x98, 0x33, 0xac, 0x37, 0xd1, 0x08, 0x0b }}
108 :
109 3 : class NS_NO_VTABLE nsIParentRedirectingChannel : public nsIParentChannel {
110 : public:
111 :
112 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPARENTREDIRECTINGCHANNEL_IID)
113 :
114 : /* void startRedirect (in uint32_t newChannelId, in nsIChannel newChannel, in uint32_t redirectFlags, in nsIAsyncVerifyRedirectCallback callback); */
115 : NS_IMETHOD StartRedirect(uint32_t newChannelId, nsIChannel *newChannel, uint32_t redirectFlags, nsIAsyncVerifyRedirectCallback *callback) = 0;
116 :
117 : /* void continueVerification (in nsIAsyncVerifyRedirectReadyCallback callback); */
118 : NS_IMETHOD ContinueVerification(nsIAsyncVerifyRedirectReadyCallback *callback) = 0;
119 :
120 : /* void completeRedirect (in boolean succeeded); */
121 : NS_IMETHOD CompleteRedirect(bool succeeded) = 0;
122 :
123 : };
124 :
125 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIParentRedirectingChannel, NS_IPARENTREDIRECTINGCHANNEL_IID)
126 :
127 : /* Use this macro when declaring classes that implement this interface. */
128 : #define NS_DECL_NSIPARENTREDIRECTINGCHANNEL \
129 : NS_IMETHOD StartRedirect(uint32_t newChannelId, nsIChannel *newChannel, uint32_t redirectFlags, nsIAsyncVerifyRedirectCallback *callback) override; \
130 : NS_IMETHOD ContinueVerification(nsIAsyncVerifyRedirectReadyCallback *callback) override; \
131 : NS_IMETHOD CompleteRedirect(bool succeeded) override;
132 :
133 : /* Use this macro when declaring the members of this interface when the
134 : class doesn't implement the interface. This is useful for forwarding. */
135 : #define NS_DECL_NON_VIRTUAL_NSIPARENTREDIRECTINGCHANNEL \
136 : nsresult StartRedirect(uint32_t newChannelId, nsIChannel *newChannel, uint32_t redirectFlags, nsIAsyncVerifyRedirectCallback *callback); \
137 : nsresult ContinueVerification(nsIAsyncVerifyRedirectReadyCallback *callback); \
138 : nsresult CompleteRedirect(bool succeeded);
139 :
140 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
141 : #define NS_FORWARD_NSIPARENTREDIRECTINGCHANNEL(_to) \
142 : NS_IMETHOD StartRedirect(uint32_t newChannelId, nsIChannel *newChannel, uint32_t redirectFlags, nsIAsyncVerifyRedirectCallback *callback) override { return _to StartRedirect(newChannelId, newChannel, redirectFlags, callback); } \
143 : NS_IMETHOD ContinueVerification(nsIAsyncVerifyRedirectReadyCallback *callback) override { return _to ContinueVerification(callback); } \
144 : NS_IMETHOD CompleteRedirect(bool succeeded) override { return _to CompleteRedirect(succeeded); }
145 :
146 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
147 : #define NS_FORWARD_SAFE_NSIPARENTREDIRECTINGCHANNEL(_to) \
148 : NS_IMETHOD StartRedirect(uint32_t newChannelId, nsIChannel *newChannel, uint32_t redirectFlags, nsIAsyncVerifyRedirectCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartRedirect(newChannelId, newChannel, redirectFlags, callback); } \
149 : NS_IMETHOD ContinueVerification(nsIAsyncVerifyRedirectReadyCallback *callback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ContinueVerification(callback); } \
150 : NS_IMETHOD CompleteRedirect(bool succeeded) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CompleteRedirect(succeeded); }
151 :
152 : #if 0
153 : /* Use the code below as a template for the implementation class for this interface. */
154 :
155 : /* Header file */
156 : class nsParentRedirectingChannel : public nsIParentRedirectingChannel
157 : {
158 : public:
159 : NS_DECL_ISUPPORTS
160 : NS_DECL_NSIPARENTREDIRECTINGCHANNEL
161 :
162 : nsParentRedirectingChannel();
163 :
164 : private:
165 : ~nsParentRedirectingChannel();
166 :
167 : protected:
168 : /* additional members */
169 : };
170 :
171 : /* Implementation file */
172 : NS_IMPL_ISUPPORTS(nsParentRedirectingChannel, nsIParentRedirectingChannel)
173 :
174 : nsParentRedirectingChannel::nsParentRedirectingChannel()
175 : {
176 : /* member initializers and constructor code */
177 : }
178 :
179 : nsParentRedirectingChannel::~nsParentRedirectingChannel()
180 : {
181 : /* destructor code */
182 : }
183 :
184 : /* void startRedirect (in uint32_t newChannelId, in nsIChannel newChannel, in uint32_t redirectFlags, in nsIAsyncVerifyRedirectCallback callback); */
185 : NS_IMETHODIMP nsParentRedirectingChannel::StartRedirect(uint32_t newChannelId, nsIChannel *newChannel, uint32_t redirectFlags, nsIAsyncVerifyRedirectCallback *callback)
186 : {
187 : return NS_ERROR_NOT_IMPLEMENTED;
188 : }
189 :
190 : /* void continueVerification (in nsIAsyncVerifyRedirectReadyCallback callback); */
191 : NS_IMETHODIMP nsParentRedirectingChannel::ContinueVerification(nsIAsyncVerifyRedirectReadyCallback *callback)
192 : {
193 : return NS_ERROR_NOT_IMPLEMENTED;
194 : }
195 :
196 : /* void completeRedirect (in boolean succeeded); */
197 : NS_IMETHODIMP nsParentRedirectingChannel::CompleteRedirect(bool succeeded)
198 : {
199 : return NS_ERROR_NOT_IMPLEMENTED;
200 : }
201 :
202 : /* End of implementation class template. */
203 : #endif
204 :
205 :
206 : #endif /* __gen_nsIParentRedirectingChannel_h__ */
|