Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIPresentationSessionTransportBuilder.idl
3 : */
4 :
5 : #ifndef __gen_nsIPresentationSessionTransportBuilder_h__
6 : #define __gen_nsIPresentationSessionTransportBuilder_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 nsIPresentationChannelDescription; /* forward declaration */
18 :
19 : class nsISocketTransport; /* forward declaration */
20 :
21 : class mozIDOMWindow; /* forward declaration */
22 :
23 : class nsIPresentationControlChannel; /* forward declaration */
24 :
25 : class nsIPresentationSessionTransport; /* forward declaration */
26 :
27 :
28 : /* starting interface: nsIPresentationSessionTransportBuilderListener */
29 : #define NS_IPRESENTATIONSESSIONTRANSPORTBUILDERLISTENER_IID_STR "673f6de1-e253-41b8-9be8-b7ff161fa8dc"
30 :
31 : #define NS_IPRESENTATIONSESSIONTRANSPORTBUILDERLISTENER_IID \
32 : {0x673f6de1, 0xe253, 0x41b8, \
33 : { 0x9b, 0xe8, 0xb7, 0xff, 0x16, 0x1f, 0xa8, 0xdc }}
34 :
35 0 : class NS_NO_VTABLE nsIPresentationSessionTransportBuilderListener : public nsISupports {
36 : public:
37 :
38 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONSESSIONTRANSPORTBUILDERLISTENER_IID)
39 :
40 : /* void onSessionTransport (in nsIPresentationSessionTransport transport); */
41 : NS_IMETHOD OnSessionTransport(nsIPresentationSessionTransport *transport) = 0;
42 :
43 : /* void onError (in nsresult reason); */
44 : NS_IMETHOD OnError(nsresult reason) = 0;
45 :
46 : /* void sendOffer (in nsIPresentationChannelDescription offer); */
47 : NS_IMETHOD SendOffer(nsIPresentationChannelDescription *offer) = 0;
48 :
49 : /* void sendAnswer (in nsIPresentationChannelDescription answer); */
50 : NS_IMETHOD SendAnswer(nsIPresentationChannelDescription *answer) = 0;
51 :
52 : /* void sendIceCandidate (in DOMString candidate); */
53 : NS_IMETHOD SendIceCandidate(const nsAString & candidate) = 0;
54 :
55 : /* void close (in nsresult reason); */
56 : NS_IMETHOD Close(nsresult reason) = 0;
57 :
58 : };
59 :
60 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationSessionTransportBuilderListener, NS_IPRESENTATIONSESSIONTRANSPORTBUILDERLISTENER_IID)
61 :
62 : /* Use this macro when declaring classes that implement this interface. */
63 : #define NS_DECL_NSIPRESENTATIONSESSIONTRANSPORTBUILDERLISTENER \
64 : NS_IMETHOD OnSessionTransport(nsIPresentationSessionTransport *transport) override; \
65 : NS_IMETHOD OnError(nsresult reason) override; \
66 : NS_IMETHOD SendOffer(nsIPresentationChannelDescription *offer) override; \
67 : NS_IMETHOD SendAnswer(nsIPresentationChannelDescription *answer) override; \
68 : NS_IMETHOD SendIceCandidate(const nsAString & candidate) override; \
69 : NS_IMETHOD Close(nsresult reason) override;
70 :
71 : /* Use this macro when declaring the members of this interface when the
72 : class doesn't implement the interface. This is useful for forwarding. */
73 : #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONSESSIONTRANSPORTBUILDERLISTENER \
74 : nsresult OnSessionTransport(nsIPresentationSessionTransport *transport); \
75 : nsresult OnError(nsresult reason); \
76 : nsresult SendOffer(nsIPresentationChannelDescription *offer); \
77 : nsresult SendAnswer(nsIPresentationChannelDescription *answer); \
78 : nsresult SendIceCandidate(const nsAString & candidate); \
79 : nsresult Close(nsresult reason);
80 :
81 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
82 : #define NS_FORWARD_NSIPRESENTATIONSESSIONTRANSPORTBUILDERLISTENER(_to) \
83 : NS_IMETHOD OnSessionTransport(nsIPresentationSessionTransport *transport) override { return _to OnSessionTransport(transport); } \
84 : NS_IMETHOD OnError(nsresult reason) override { return _to OnError(reason); } \
85 : NS_IMETHOD SendOffer(nsIPresentationChannelDescription *offer) override { return _to SendOffer(offer); } \
86 : NS_IMETHOD SendAnswer(nsIPresentationChannelDescription *answer) override { return _to SendAnswer(answer); } \
87 : NS_IMETHOD SendIceCandidate(const nsAString & candidate) override { return _to SendIceCandidate(candidate); } \
88 : NS_IMETHOD Close(nsresult reason) override { return _to Close(reason); }
89 :
90 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
91 : #define NS_FORWARD_SAFE_NSIPRESENTATIONSESSIONTRANSPORTBUILDERLISTENER(_to) \
92 : NS_IMETHOD OnSessionTransport(nsIPresentationSessionTransport *transport) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnSessionTransport(transport); } \
93 : NS_IMETHOD OnError(nsresult reason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(reason); } \
94 : NS_IMETHOD SendOffer(nsIPresentationChannelDescription *offer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendOffer(offer); } \
95 : NS_IMETHOD SendAnswer(nsIPresentationChannelDescription *answer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendAnswer(answer); } \
96 : NS_IMETHOD SendIceCandidate(const nsAString & candidate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendIceCandidate(candidate); } \
97 : NS_IMETHOD Close(nsresult reason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(reason); }
98 :
99 : #if 0
100 : /* Use the code below as a template for the implementation class for this interface. */
101 :
102 : /* Header file */
103 : class nsPresentationSessionTransportBuilderListener : public nsIPresentationSessionTransportBuilderListener
104 : {
105 : public:
106 : NS_DECL_ISUPPORTS
107 : NS_DECL_NSIPRESENTATIONSESSIONTRANSPORTBUILDERLISTENER
108 :
109 : nsPresentationSessionTransportBuilderListener();
110 :
111 : private:
112 : ~nsPresentationSessionTransportBuilderListener();
113 :
114 : protected:
115 : /* additional members */
116 : };
117 :
118 : /* Implementation file */
119 : NS_IMPL_ISUPPORTS(nsPresentationSessionTransportBuilderListener, nsIPresentationSessionTransportBuilderListener)
120 :
121 : nsPresentationSessionTransportBuilderListener::nsPresentationSessionTransportBuilderListener()
122 : {
123 : /* member initializers and constructor code */
124 : }
125 :
126 : nsPresentationSessionTransportBuilderListener::~nsPresentationSessionTransportBuilderListener()
127 : {
128 : /* destructor code */
129 : }
130 :
131 : /* void onSessionTransport (in nsIPresentationSessionTransport transport); */
132 : NS_IMETHODIMP nsPresentationSessionTransportBuilderListener::OnSessionTransport(nsIPresentationSessionTransport *transport)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* void onError (in nsresult reason); */
138 : NS_IMETHODIMP nsPresentationSessionTransportBuilderListener::OnError(nsresult reason)
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* void sendOffer (in nsIPresentationChannelDescription offer); */
144 : NS_IMETHODIMP nsPresentationSessionTransportBuilderListener::SendOffer(nsIPresentationChannelDescription *offer)
145 : {
146 : return NS_ERROR_NOT_IMPLEMENTED;
147 : }
148 :
149 : /* void sendAnswer (in nsIPresentationChannelDescription answer); */
150 : NS_IMETHODIMP nsPresentationSessionTransportBuilderListener::SendAnswer(nsIPresentationChannelDescription *answer)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 :
155 : /* void sendIceCandidate (in DOMString candidate); */
156 : NS_IMETHODIMP nsPresentationSessionTransportBuilderListener::SendIceCandidate(const nsAString & candidate)
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 :
161 : /* void close (in nsresult reason); */
162 : NS_IMETHODIMP nsPresentationSessionTransportBuilderListener::Close(nsresult reason)
163 : {
164 : return NS_ERROR_NOT_IMPLEMENTED;
165 : }
166 :
167 : /* End of implementation class template. */
168 : #endif
169 :
170 :
171 : /* starting interface: nsIPresentationSessionTransportBuilder */
172 : #define NS_IPRESENTATIONSESSIONTRANSPORTBUILDER_IID_STR "2fdbe67d-80f9-48dc-8237-5bef8fa19801"
173 :
174 : #define NS_IPRESENTATIONSESSIONTRANSPORTBUILDER_IID \
175 : {0x2fdbe67d, 0x80f9, 0x48dc, \
176 : { 0x82, 0x37, 0x5b, 0xef, 0x8f, 0xa1, 0x98, 0x01 }}
177 :
178 0 : class NS_NO_VTABLE nsIPresentationSessionTransportBuilder : public nsISupports {
179 : public:
180 :
181 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONSESSIONTRANSPORTBUILDER_IID)
182 :
183 : };
184 :
185 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationSessionTransportBuilder, NS_IPRESENTATIONSESSIONTRANSPORTBUILDER_IID)
186 :
187 : /* Use this macro when declaring classes that implement this interface. */
188 : #define NS_DECL_NSIPRESENTATIONSESSIONTRANSPORTBUILDER \
189 : /* no methods! */
190 :
191 : /* Use this macro when declaring the members of this interface when the
192 : class doesn't implement the interface. This is useful for forwarding. */
193 : #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONSESSIONTRANSPORTBUILDER \
194 : /* no methods! */
195 :
196 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
197 : #define NS_FORWARD_NSIPRESENTATIONSESSIONTRANSPORTBUILDER(_to) \
198 : /* no methods! */
199 :
200 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
201 : #define NS_FORWARD_SAFE_NSIPRESENTATIONSESSIONTRANSPORTBUILDER(_to) \
202 : /* no methods! */
203 :
204 : #if 0
205 : /* Use the code below as a template for the implementation class for this interface. */
206 :
207 : /* Header file */
208 : class nsPresentationSessionTransportBuilder : public nsIPresentationSessionTransportBuilder
209 : {
210 : public:
211 : NS_DECL_ISUPPORTS
212 : NS_DECL_NSIPRESENTATIONSESSIONTRANSPORTBUILDER
213 :
214 : nsPresentationSessionTransportBuilder();
215 :
216 : private:
217 : ~nsPresentationSessionTransportBuilder();
218 :
219 : protected:
220 : /* additional members */
221 : };
222 :
223 : /* Implementation file */
224 : NS_IMPL_ISUPPORTS(nsPresentationSessionTransportBuilder, nsIPresentationSessionTransportBuilder)
225 :
226 : nsPresentationSessionTransportBuilder::nsPresentationSessionTransportBuilder()
227 : {
228 : /* member initializers and constructor code */
229 : }
230 :
231 : nsPresentationSessionTransportBuilder::~nsPresentationSessionTransportBuilder()
232 : {
233 : /* destructor code */
234 : }
235 :
236 : /* End of implementation class template. */
237 : #endif
238 :
239 :
240 : /* starting interface: nsIPresentationTransportBuilderConstructor */
241 : #define NS_IPRESENTATIONTRANSPORTBUILDERCONSTRUCTOR_IID_STR "706482b2-1b51-4bed-a21d-785a9cfcfac7"
242 :
243 : #define NS_IPRESENTATIONTRANSPORTBUILDERCONSTRUCTOR_IID \
244 : {0x706482b2, 0x1b51, 0x4bed, \
245 : { 0xa2, 0x1d, 0x78, 0x5a, 0x9c, 0xfc, 0xfa, 0xc7 }}
246 :
247 0 : class NS_NO_VTABLE nsIPresentationTransportBuilderConstructor : public nsISupports {
248 : public:
249 :
250 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONTRANSPORTBUILDERCONSTRUCTOR_IID)
251 :
252 : /* nsIPresentationSessionTransportBuilder createTransportBuilder (in uint8_t type); */
253 : NS_IMETHOD CreateTransportBuilder(uint8_t type, nsIPresentationSessionTransportBuilder * *_retval) = 0;
254 :
255 : };
256 :
257 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationTransportBuilderConstructor, NS_IPRESENTATIONTRANSPORTBUILDERCONSTRUCTOR_IID)
258 :
259 : /* Use this macro when declaring classes that implement this interface. */
260 : #define NS_DECL_NSIPRESENTATIONTRANSPORTBUILDERCONSTRUCTOR \
261 : NS_IMETHOD CreateTransportBuilder(uint8_t type, nsIPresentationSessionTransportBuilder * *_retval) override;
262 :
263 : /* Use this macro when declaring the members of this interface when the
264 : class doesn't implement the interface. This is useful for forwarding. */
265 : #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONTRANSPORTBUILDERCONSTRUCTOR \
266 : nsresult CreateTransportBuilder(uint8_t type, nsIPresentationSessionTransportBuilder * *_retval);
267 :
268 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
269 : #define NS_FORWARD_NSIPRESENTATIONTRANSPORTBUILDERCONSTRUCTOR(_to) \
270 : NS_IMETHOD CreateTransportBuilder(uint8_t type, nsIPresentationSessionTransportBuilder * *_retval) override { return _to CreateTransportBuilder(type, _retval); }
271 :
272 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
273 : #define NS_FORWARD_SAFE_NSIPRESENTATIONTRANSPORTBUILDERCONSTRUCTOR(_to) \
274 : NS_IMETHOD CreateTransportBuilder(uint8_t type, nsIPresentationSessionTransportBuilder * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateTransportBuilder(type, _retval); }
275 :
276 : #if 0
277 : /* Use the code below as a template for the implementation class for this interface. */
278 :
279 : /* Header file */
280 : class nsPresentationTransportBuilderConstructor : public nsIPresentationTransportBuilderConstructor
281 : {
282 : public:
283 : NS_DECL_ISUPPORTS
284 : NS_DECL_NSIPRESENTATIONTRANSPORTBUILDERCONSTRUCTOR
285 :
286 : nsPresentationTransportBuilderConstructor();
287 :
288 : private:
289 : ~nsPresentationTransportBuilderConstructor();
290 :
291 : protected:
292 : /* additional members */
293 : };
294 :
295 : /* Implementation file */
296 : NS_IMPL_ISUPPORTS(nsPresentationTransportBuilderConstructor, nsIPresentationTransportBuilderConstructor)
297 :
298 : nsPresentationTransportBuilderConstructor::nsPresentationTransportBuilderConstructor()
299 : {
300 : /* member initializers and constructor code */
301 : }
302 :
303 : nsPresentationTransportBuilderConstructor::~nsPresentationTransportBuilderConstructor()
304 : {
305 : /* destructor code */
306 : }
307 :
308 : /* nsIPresentationSessionTransportBuilder createTransportBuilder (in uint8_t type); */
309 : NS_IMETHODIMP nsPresentationTransportBuilderConstructor::CreateTransportBuilder(uint8_t type, nsIPresentationSessionTransportBuilder * *_retval)
310 : {
311 : return NS_ERROR_NOT_IMPLEMENTED;
312 : }
313 :
314 : /* End of implementation class template. */
315 : #endif
316 :
317 :
318 : /* starting interface: nsIPresentationTCPSessionTransportBuilder */
319 : #define NS_IPRESENTATIONTCPSESSIONTRANSPORTBUILDER_IID_STR "cde36d6e-f471-4262-a70d-f932a26b21d9"
320 :
321 : #define NS_IPRESENTATIONTCPSESSIONTRANSPORTBUILDER_IID \
322 : {0xcde36d6e, 0xf471, 0x4262, \
323 : { 0xa7, 0x0d, 0xf9, 0x32, 0xa2, 0x6b, 0x21, 0xd9 }}
324 :
325 0 : class NS_NO_VTABLE nsIPresentationTCPSessionTransportBuilder : public nsIPresentationSessionTransportBuilder {
326 : public:
327 :
328 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONTCPSESSIONTRANSPORTBUILDER_IID)
329 :
330 : /* void buildTCPSenderTransport (in nsISocketTransport aTransport, in nsIPresentationSessionTransportBuilderListener aListener); */
331 : NS_IMETHOD BuildTCPSenderTransport(nsISocketTransport *aTransport, nsIPresentationSessionTransportBuilderListener *aListener) = 0;
332 :
333 : /* void buildTCPReceiverTransport (in nsIPresentationChannelDescription aDescription, in nsIPresentationSessionTransportBuilderListener aListener); */
334 : NS_IMETHOD BuildTCPReceiverTransport(nsIPresentationChannelDescription *aDescription, nsIPresentationSessionTransportBuilderListener *aListener) = 0;
335 :
336 : };
337 :
338 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationTCPSessionTransportBuilder, NS_IPRESENTATIONTCPSESSIONTRANSPORTBUILDER_IID)
339 :
340 : /* Use this macro when declaring classes that implement this interface. */
341 : #define NS_DECL_NSIPRESENTATIONTCPSESSIONTRANSPORTBUILDER \
342 : NS_IMETHOD BuildTCPSenderTransport(nsISocketTransport *aTransport, nsIPresentationSessionTransportBuilderListener *aListener) override; \
343 : NS_IMETHOD BuildTCPReceiverTransport(nsIPresentationChannelDescription *aDescription, nsIPresentationSessionTransportBuilderListener *aListener) override;
344 :
345 : /* Use this macro when declaring the members of this interface when the
346 : class doesn't implement the interface. This is useful for forwarding. */
347 : #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONTCPSESSIONTRANSPORTBUILDER \
348 : nsresult BuildTCPSenderTransport(nsISocketTransport *aTransport, nsIPresentationSessionTransportBuilderListener *aListener); \
349 : nsresult BuildTCPReceiverTransport(nsIPresentationChannelDescription *aDescription, nsIPresentationSessionTransportBuilderListener *aListener);
350 :
351 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
352 : #define NS_FORWARD_NSIPRESENTATIONTCPSESSIONTRANSPORTBUILDER(_to) \
353 : NS_IMETHOD BuildTCPSenderTransport(nsISocketTransport *aTransport, nsIPresentationSessionTransportBuilderListener *aListener) override { return _to BuildTCPSenderTransport(aTransport, aListener); } \
354 : NS_IMETHOD BuildTCPReceiverTransport(nsIPresentationChannelDescription *aDescription, nsIPresentationSessionTransportBuilderListener *aListener) override { return _to BuildTCPReceiverTransport(aDescription, aListener); }
355 :
356 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
357 : #define NS_FORWARD_SAFE_NSIPRESENTATIONTCPSESSIONTRANSPORTBUILDER(_to) \
358 : NS_IMETHOD BuildTCPSenderTransport(nsISocketTransport *aTransport, nsIPresentationSessionTransportBuilderListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BuildTCPSenderTransport(aTransport, aListener); } \
359 : NS_IMETHOD BuildTCPReceiverTransport(nsIPresentationChannelDescription *aDescription, nsIPresentationSessionTransportBuilderListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BuildTCPReceiverTransport(aDescription, aListener); }
360 :
361 : #if 0
362 : /* Use the code below as a template for the implementation class for this interface. */
363 :
364 : /* Header file */
365 : class nsPresentationTCPSessionTransportBuilder : public nsIPresentationTCPSessionTransportBuilder
366 : {
367 : public:
368 : NS_DECL_ISUPPORTS
369 : NS_DECL_NSIPRESENTATIONTCPSESSIONTRANSPORTBUILDER
370 :
371 : nsPresentationTCPSessionTransportBuilder();
372 :
373 : private:
374 : ~nsPresentationTCPSessionTransportBuilder();
375 :
376 : protected:
377 : /* additional members */
378 : };
379 :
380 : /* Implementation file */
381 : NS_IMPL_ISUPPORTS(nsPresentationTCPSessionTransportBuilder, nsIPresentationTCPSessionTransportBuilder)
382 :
383 : nsPresentationTCPSessionTransportBuilder::nsPresentationTCPSessionTransportBuilder()
384 : {
385 : /* member initializers and constructor code */
386 : }
387 :
388 : nsPresentationTCPSessionTransportBuilder::~nsPresentationTCPSessionTransportBuilder()
389 : {
390 : /* destructor code */
391 : }
392 :
393 : /* void buildTCPSenderTransport (in nsISocketTransport aTransport, in nsIPresentationSessionTransportBuilderListener aListener); */
394 : NS_IMETHODIMP nsPresentationTCPSessionTransportBuilder::BuildTCPSenderTransport(nsISocketTransport *aTransport, nsIPresentationSessionTransportBuilderListener *aListener)
395 : {
396 : return NS_ERROR_NOT_IMPLEMENTED;
397 : }
398 :
399 : /* void buildTCPReceiverTransport (in nsIPresentationChannelDescription aDescription, in nsIPresentationSessionTransportBuilderListener aListener); */
400 : NS_IMETHODIMP nsPresentationTCPSessionTransportBuilder::BuildTCPReceiverTransport(nsIPresentationChannelDescription *aDescription, nsIPresentationSessionTransportBuilderListener *aListener)
401 : {
402 : return NS_ERROR_NOT_IMPLEMENTED;
403 : }
404 :
405 : /* End of implementation class template. */
406 : #endif
407 :
408 :
409 : /* starting interface: nsIPresentationDataChannelSessionTransportBuilder */
410 : #define NS_IPRESENTATIONDATACHANNELSESSIONTRANSPORTBUILDER_IID_STR "8131c4e0-3a8c-4bc1-a92a-8431473d2fe8"
411 :
412 : #define NS_IPRESENTATIONDATACHANNELSESSIONTRANSPORTBUILDER_IID \
413 : {0x8131c4e0, 0x3a8c, 0x4bc1, \
414 : { 0xa9, 0x2a, 0x84, 0x31, 0x47, 0x3d, 0x2f, 0xe8 }}
415 :
416 0 : class NS_NO_VTABLE nsIPresentationDataChannelSessionTransportBuilder : public nsIPresentationSessionTransportBuilder {
417 : public:
418 :
419 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPRESENTATIONDATACHANNELSESSIONTRANSPORTBUILDER_IID)
420 :
421 : /* void buildDataChannelTransport (in uint8_t aRole, in mozIDOMWindow aWindow, in nsIPresentationSessionTransportBuilderListener aListener); */
422 : NS_IMETHOD BuildDataChannelTransport(uint8_t aRole, mozIDOMWindow *aWindow, nsIPresentationSessionTransportBuilderListener *aListener) = 0;
423 :
424 : /* void onOffer (in nsIPresentationChannelDescription offer); */
425 : NS_IMETHOD OnOffer(nsIPresentationChannelDescription *offer) = 0;
426 :
427 : /* void onAnswer (in nsIPresentationChannelDescription answer); */
428 : NS_IMETHOD OnAnswer(nsIPresentationChannelDescription *answer) = 0;
429 :
430 : /* void onIceCandidate (in DOMString candidate); */
431 : NS_IMETHOD OnIceCandidate(const nsAString & candidate) = 0;
432 :
433 : /* void notifyDisconnected (in nsresult reason); */
434 : NS_IMETHOD NotifyDisconnected(nsresult reason) = 0;
435 :
436 : };
437 :
438 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIPresentationDataChannelSessionTransportBuilder, NS_IPRESENTATIONDATACHANNELSESSIONTRANSPORTBUILDER_IID)
439 :
440 : /* Use this macro when declaring classes that implement this interface. */
441 : #define NS_DECL_NSIPRESENTATIONDATACHANNELSESSIONTRANSPORTBUILDER \
442 : NS_IMETHOD BuildDataChannelTransport(uint8_t aRole, mozIDOMWindow *aWindow, nsIPresentationSessionTransportBuilderListener *aListener) override; \
443 : NS_IMETHOD OnOffer(nsIPresentationChannelDescription *offer) override; \
444 : NS_IMETHOD OnAnswer(nsIPresentationChannelDescription *answer) override; \
445 : NS_IMETHOD OnIceCandidate(const nsAString & candidate) override; \
446 : NS_IMETHOD NotifyDisconnected(nsresult reason) override;
447 :
448 : /* Use this macro when declaring the members of this interface when the
449 : class doesn't implement the interface. This is useful for forwarding. */
450 : #define NS_DECL_NON_VIRTUAL_NSIPRESENTATIONDATACHANNELSESSIONTRANSPORTBUILDER \
451 : nsresult BuildDataChannelTransport(uint8_t aRole, mozIDOMWindow *aWindow, nsIPresentationSessionTransportBuilderListener *aListener); \
452 : nsresult OnOffer(nsIPresentationChannelDescription *offer); \
453 : nsresult OnAnswer(nsIPresentationChannelDescription *answer); \
454 : nsresult OnIceCandidate(const nsAString & candidate); \
455 : nsresult NotifyDisconnected(nsresult reason);
456 :
457 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
458 : #define NS_FORWARD_NSIPRESENTATIONDATACHANNELSESSIONTRANSPORTBUILDER(_to) \
459 : NS_IMETHOD BuildDataChannelTransport(uint8_t aRole, mozIDOMWindow *aWindow, nsIPresentationSessionTransportBuilderListener *aListener) override { return _to BuildDataChannelTransport(aRole, aWindow, aListener); } \
460 : NS_IMETHOD OnOffer(nsIPresentationChannelDescription *offer) override { return _to OnOffer(offer); } \
461 : NS_IMETHOD OnAnswer(nsIPresentationChannelDescription *answer) override { return _to OnAnswer(answer); } \
462 : NS_IMETHOD OnIceCandidate(const nsAString & candidate) override { return _to OnIceCandidate(candidate); } \
463 : NS_IMETHOD NotifyDisconnected(nsresult reason) override { return _to NotifyDisconnected(reason); }
464 :
465 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
466 : #define NS_FORWARD_SAFE_NSIPRESENTATIONDATACHANNELSESSIONTRANSPORTBUILDER(_to) \
467 : NS_IMETHOD BuildDataChannelTransport(uint8_t aRole, mozIDOMWindow *aWindow, nsIPresentationSessionTransportBuilderListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BuildDataChannelTransport(aRole, aWindow, aListener); } \
468 : NS_IMETHOD OnOffer(nsIPresentationChannelDescription *offer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnOffer(offer); } \
469 : NS_IMETHOD OnAnswer(nsIPresentationChannelDescription *answer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAnswer(answer); } \
470 : NS_IMETHOD OnIceCandidate(const nsAString & candidate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnIceCandidate(candidate); } \
471 : NS_IMETHOD NotifyDisconnected(nsresult reason) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NotifyDisconnected(reason); }
472 :
473 : #if 0
474 : /* Use the code below as a template for the implementation class for this interface. */
475 :
476 : /* Header file */
477 : class nsPresentationDataChannelSessionTransportBuilder : public nsIPresentationDataChannelSessionTransportBuilder
478 : {
479 : public:
480 : NS_DECL_ISUPPORTS
481 : NS_DECL_NSIPRESENTATIONDATACHANNELSESSIONTRANSPORTBUILDER
482 :
483 : nsPresentationDataChannelSessionTransportBuilder();
484 :
485 : private:
486 : ~nsPresentationDataChannelSessionTransportBuilder();
487 :
488 : protected:
489 : /* additional members */
490 : };
491 :
492 : /* Implementation file */
493 : NS_IMPL_ISUPPORTS(nsPresentationDataChannelSessionTransportBuilder, nsIPresentationDataChannelSessionTransportBuilder)
494 :
495 : nsPresentationDataChannelSessionTransportBuilder::nsPresentationDataChannelSessionTransportBuilder()
496 : {
497 : /* member initializers and constructor code */
498 : }
499 :
500 : nsPresentationDataChannelSessionTransportBuilder::~nsPresentationDataChannelSessionTransportBuilder()
501 : {
502 : /* destructor code */
503 : }
504 :
505 : /* void buildDataChannelTransport (in uint8_t aRole, in mozIDOMWindow aWindow, in nsIPresentationSessionTransportBuilderListener aListener); */
506 : NS_IMETHODIMP nsPresentationDataChannelSessionTransportBuilder::BuildDataChannelTransport(uint8_t aRole, mozIDOMWindow *aWindow, nsIPresentationSessionTransportBuilderListener *aListener)
507 : {
508 : return NS_ERROR_NOT_IMPLEMENTED;
509 : }
510 :
511 : /* void onOffer (in nsIPresentationChannelDescription offer); */
512 : NS_IMETHODIMP nsPresentationDataChannelSessionTransportBuilder::OnOffer(nsIPresentationChannelDescription *offer)
513 : {
514 : return NS_ERROR_NOT_IMPLEMENTED;
515 : }
516 :
517 : /* void onAnswer (in nsIPresentationChannelDescription answer); */
518 : NS_IMETHODIMP nsPresentationDataChannelSessionTransportBuilder::OnAnswer(nsIPresentationChannelDescription *answer)
519 : {
520 : return NS_ERROR_NOT_IMPLEMENTED;
521 : }
522 :
523 : /* void onIceCandidate (in DOMString candidate); */
524 : NS_IMETHODIMP nsPresentationDataChannelSessionTransportBuilder::OnIceCandidate(const nsAString & candidate)
525 : {
526 : return NS_ERROR_NOT_IMPLEMENTED;
527 : }
528 :
529 : /* void notifyDisconnected (in nsresult reason); */
530 : NS_IMETHODIMP nsPresentationDataChannelSessionTransportBuilder::NotifyDisconnected(nsresult reason)
531 : {
532 : return NS_ERROR_NOT_IMPLEMENTED;
533 : }
534 :
535 : /* End of implementation class template. */
536 : #endif
537 :
538 :
539 : #endif /* __gen_nsIPresentationSessionTransportBuilder_h__ */
|