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