/usr/include/thunderbird/nsISocketTransport.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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsISocketTransport.idl
*/
#ifndef __gen_nsISocketTransport_h__
#define __gen_nsISocketTransport_h__
#ifndef __gen_nsITransport_h__
#include "nsITransport.h"
#endif
#include "js/Value.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIInterfaceRequestor; /* forward declaration */
class nsINetAddr; /* forward declaration */
#include "mozilla/BasePrincipal.h"
namespace mozilla {
namespace net {
union NetAddr;
}
}
/* starting interface: nsISocketTransport */
#define NS_ISOCKETTRANSPORT_IID_STR "79221831-85e2-43a8-8152-05d77d6fde31"
#define NS_ISOCKETTRANSPORT_IID \
{0x79221831, 0x85e2, 0x43a8, \
{ 0x81, 0x52, 0x05, 0xd7, 0x7d, 0x6f, 0xde, 0x31 }}
class NS_NO_VTABLE nsISocketTransport : public nsITransport {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISOCKETTRANSPORT_IID)
/* readonly attribute AUTF8String host; */
NS_IMETHOD GetHost(nsACString & aHost) = 0;
/* readonly attribute long port; */
NS_IMETHOD GetPort(int32_t *aPort) = 0;
/* [binaryname(ScriptableOriginAttributes),implicit_jscontext] attribute jsval originAttributes; */
NS_IMETHOD GetScriptableOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes) = 0;
NS_IMETHOD SetScriptableOriginAttributes(JSContext* cx, JS::HandleValue aOriginAttributes) = 0;
/* [binaryname(GetOriginAttributes),noscript,nostdcall] NeckoOriginAttributes binaryGetOriginAttributes (); */
virtual nsresult GetOriginAttributes(mozilla::NeckoOriginAttributes *_retval) = 0;
/* [binaryname(SetOriginAttributes),noscript,nostdcall] void binarySetOriginAttributes (in const_OriginAttributesRef aOriginAttrs); */
virtual nsresult SetOriginAttributes(const mozilla::NeckoOriginAttributes & aOriginAttrs) = 0;
/* attribute ACString networkInterfaceId; */
NS_IMETHOD GetNetworkInterfaceId(nsACString & aNetworkInterfaceId) = 0;
NS_IMETHOD SetNetworkInterfaceId(const nsACString & aNetworkInterfaceId) = 0;
/* [noscript] NetAddr getPeerAddr (); */
NS_IMETHOD GetPeerAddr(mozilla::net::NetAddr *_retval) = 0;
/* [noscript] NetAddr getSelfAddr (); */
NS_IMETHOD GetSelfAddr(mozilla::net::NetAddr *_retval) = 0;
/* [noscript] void bind (in NetAddrPtr aLocalAddr); */
NS_IMETHOD Bind(mozilla::net::NetAddr *aLocalAddr) = 0;
/* nsINetAddr getScriptablePeerAddr (); */
NS_IMETHOD GetScriptablePeerAddr(nsINetAddr * *_retval) = 0;
/* nsINetAddr getScriptableSelfAddr (); */
NS_IMETHOD GetScriptableSelfAddr(nsINetAddr * *_retval) = 0;
/* readonly attribute nsISupports securityInfo; */
NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo) = 0;
/* attribute nsIInterfaceRequestor securityCallbacks; */
NS_IMETHOD GetSecurityCallbacks(nsIInterfaceRequestor * *aSecurityCallbacks) = 0;
NS_IMETHOD SetSecurityCallbacks(nsIInterfaceRequestor *aSecurityCallbacks) = 0;
/* boolean isAlive (); */
NS_IMETHOD IsAlive(bool *_retval) = 0;
/* unsigned long getTimeout (in unsigned long aType); */
NS_IMETHOD GetTimeout(uint32_t aType, uint32_t *_retval) = 0;
/* void setTimeout (in unsigned long aType, in unsigned long aValue); */
NS_IMETHOD SetTimeout(uint32_t aType, uint32_t aValue) = 0;
enum {
TIMEOUT_CONNECT = 0U,
TIMEOUT_READ_WRITE = 1U,
STATUS_RESOLVING = 2152398851U,
STATUS_RESOLVED = 2152398859U,
STATUS_CONNECTING_TO = 2152398855U,
STATUS_CONNECTED_TO = 2152398852U,
STATUS_SENDING_TO = 2152398853U,
STATUS_WAITING_FOR = 2152398858U,
STATUS_RECEIVING_FROM = 2152398854U
};
/* attribute unsigned long connectionFlags; */
NS_IMETHOD GetConnectionFlags(uint32_t *aConnectionFlags) = 0;
NS_IMETHOD SetConnectionFlags(uint32_t aConnectionFlags) = 0;
enum {
BYPASS_CACHE = 1U,
ANONYMOUS_CONNECT = 2U,
DISABLE_IPV6 = 4U,
NO_PERMANENT_STORAGE = 8U,
DISABLE_IPV4 = 16U,
DISABLE_RFC1918 = 32U,
MITM_OK = 64U,
BE_CONSERVATIVE = 128U
};
/* attribute octet QoSBits; */
NS_IMETHOD GetQoSBits(uint8_t *aQoSBits) = 0;
NS_IMETHOD SetQoSBits(uint8_t aQoSBits) = 0;
/* attribute unsigned long recvBufferSize; */
NS_IMETHOD GetRecvBufferSize(uint32_t *aRecvBufferSize) = 0;
NS_IMETHOD SetRecvBufferSize(uint32_t aRecvBufferSize) = 0;
/* attribute unsigned long sendBufferSize; */
NS_IMETHOD GetSendBufferSize(uint32_t *aSendBufferSize) = 0;
NS_IMETHOD SetSendBufferSize(uint32_t aSendBufferSize) = 0;
/* attribute boolean keepaliveEnabled; */
NS_IMETHOD GetKeepaliveEnabled(bool *aKeepaliveEnabled) = 0;
NS_IMETHOD SetKeepaliveEnabled(bool aKeepaliveEnabled) = 0;
/* void setKeepaliveVals (in long keepaliveIdleTime, in long keepaliveRetryInterval); */
NS_IMETHOD SetKeepaliveVals(int32_t keepaliveIdleTime, int32_t keepaliveRetryInterval) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsISocketTransport, NS_ISOCKETTRANSPORT_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISOCKETTRANSPORT \
NS_IMETHOD GetHost(nsACString & aHost) override; \
NS_IMETHOD GetPort(int32_t *aPort) override; \
NS_IMETHOD GetScriptableOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes) override; \
NS_IMETHOD SetScriptableOriginAttributes(JSContext* cx, JS::HandleValue aOriginAttributes) override; \
virtual nsresult GetOriginAttributes(mozilla::NeckoOriginAttributes *_retval) override; \
virtual nsresult SetOriginAttributes(const mozilla::NeckoOriginAttributes & aOriginAttrs) override; \
NS_IMETHOD GetNetworkInterfaceId(nsACString & aNetworkInterfaceId) override; \
NS_IMETHOD SetNetworkInterfaceId(const nsACString & aNetworkInterfaceId) override; \
NS_IMETHOD GetPeerAddr(mozilla::net::NetAddr *_retval) override; \
NS_IMETHOD GetSelfAddr(mozilla::net::NetAddr *_retval) override; \
NS_IMETHOD Bind(mozilla::net::NetAddr *aLocalAddr) override; \
NS_IMETHOD GetScriptablePeerAddr(nsINetAddr * *_retval) override; \
NS_IMETHOD GetScriptableSelfAddr(nsINetAddr * *_retval) override; \
NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo) override; \
NS_IMETHOD GetSecurityCallbacks(nsIInterfaceRequestor * *aSecurityCallbacks) override; \
NS_IMETHOD SetSecurityCallbacks(nsIInterfaceRequestor *aSecurityCallbacks) override; \
NS_IMETHOD IsAlive(bool *_retval) override; \
NS_IMETHOD GetTimeout(uint32_t aType, uint32_t *_retval) override; \
NS_IMETHOD SetTimeout(uint32_t aType, uint32_t aValue) override; \
NS_IMETHOD GetConnectionFlags(uint32_t *aConnectionFlags) override; \
NS_IMETHOD SetConnectionFlags(uint32_t aConnectionFlags) override; \
NS_IMETHOD GetQoSBits(uint8_t *aQoSBits) override; \
NS_IMETHOD SetQoSBits(uint8_t aQoSBits) override; \
NS_IMETHOD GetRecvBufferSize(uint32_t *aRecvBufferSize) override; \
NS_IMETHOD SetRecvBufferSize(uint32_t aRecvBufferSize) override; \
NS_IMETHOD GetSendBufferSize(uint32_t *aSendBufferSize) override; \
NS_IMETHOD SetSendBufferSize(uint32_t aSendBufferSize) override; \
NS_IMETHOD GetKeepaliveEnabled(bool *aKeepaliveEnabled) override; \
NS_IMETHOD SetKeepaliveEnabled(bool aKeepaliveEnabled) override; \
NS_IMETHOD SetKeepaliveVals(int32_t keepaliveIdleTime, int32_t keepaliveRetryInterval) 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_NSISOCKETTRANSPORT \
NS_METHOD GetHost(nsACString & aHost); \
NS_METHOD GetPort(int32_t *aPort); \
NS_METHOD GetScriptableOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes); \
NS_METHOD SetScriptableOriginAttributes(JSContext* cx, JS::HandleValue aOriginAttributes); \
nsresult GetOriginAttributes(mozilla::NeckoOriginAttributes *_retval); \
nsresult SetOriginAttributes(const mozilla::NeckoOriginAttributes & aOriginAttrs); \
NS_METHOD GetNetworkInterfaceId(nsACString & aNetworkInterfaceId); \
NS_METHOD SetNetworkInterfaceId(const nsACString & aNetworkInterfaceId); \
NS_METHOD GetPeerAddr(mozilla::net::NetAddr *_retval); \
NS_METHOD GetSelfAddr(mozilla::net::NetAddr *_retval); \
NS_METHOD Bind(mozilla::net::NetAddr *aLocalAddr); \
NS_METHOD GetScriptablePeerAddr(nsINetAddr * *_retval); \
NS_METHOD GetScriptableSelfAddr(nsINetAddr * *_retval); \
NS_METHOD GetSecurityInfo(nsISupports * *aSecurityInfo); \
NS_METHOD GetSecurityCallbacks(nsIInterfaceRequestor * *aSecurityCallbacks); \
NS_METHOD SetSecurityCallbacks(nsIInterfaceRequestor *aSecurityCallbacks); \
NS_METHOD IsAlive(bool *_retval); \
NS_METHOD GetTimeout(uint32_t aType, uint32_t *_retval); \
NS_METHOD SetTimeout(uint32_t aType, uint32_t aValue); \
NS_METHOD GetConnectionFlags(uint32_t *aConnectionFlags); \
NS_METHOD SetConnectionFlags(uint32_t aConnectionFlags); \
NS_METHOD GetQoSBits(uint8_t *aQoSBits); \
NS_METHOD SetQoSBits(uint8_t aQoSBits); \
NS_METHOD GetRecvBufferSize(uint32_t *aRecvBufferSize); \
NS_METHOD SetRecvBufferSize(uint32_t aRecvBufferSize); \
NS_METHOD GetSendBufferSize(uint32_t *aSendBufferSize); \
NS_METHOD SetSendBufferSize(uint32_t aSendBufferSize); \
NS_METHOD GetKeepaliveEnabled(bool *aKeepaliveEnabled); \
NS_METHOD SetKeepaliveEnabled(bool aKeepaliveEnabled); \
NS_METHOD SetKeepaliveVals(int32_t keepaliveIdleTime, int32_t keepaliveRetryInterval);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISOCKETTRANSPORT(_to) \
NS_IMETHOD GetHost(nsACString & aHost) override { return _to GetHost(aHost); } \
NS_IMETHOD GetPort(int32_t *aPort) override { return _to GetPort(aPort); } \
NS_IMETHOD GetScriptableOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes) override { return _to GetScriptableOriginAttributes(cx, aOriginAttributes); } \
NS_IMETHOD SetScriptableOriginAttributes(JSContext* cx, JS::HandleValue aOriginAttributes) override { return _to SetScriptableOriginAttributes(cx, aOriginAttributes); } \
virtual nsresult GetOriginAttributes(mozilla::NeckoOriginAttributes *_retval) override { return _to GetOriginAttributes(_retval); } \
virtual nsresult SetOriginAttributes(const mozilla::NeckoOriginAttributes & aOriginAttrs) override { return _to SetOriginAttributes(aOriginAttrs); } \
NS_IMETHOD GetNetworkInterfaceId(nsACString & aNetworkInterfaceId) override { return _to GetNetworkInterfaceId(aNetworkInterfaceId); } \
NS_IMETHOD SetNetworkInterfaceId(const nsACString & aNetworkInterfaceId) override { return _to SetNetworkInterfaceId(aNetworkInterfaceId); } \
NS_IMETHOD GetPeerAddr(mozilla::net::NetAddr *_retval) override { return _to GetPeerAddr(_retval); } \
NS_IMETHOD GetSelfAddr(mozilla::net::NetAddr *_retval) override { return _to GetSelfAddr(_retval); } \
NS_IMETHOD Bind(mozilla::net::NetAddr *aLocalAddr) override { return _to Bind(aLocalAddr); } \
NS_IMETHOD GetScriptablePeerAddr(nsINetAddr * *_retval) override { return _to GetScriptablePeerAddr(_retval); } \
NS_IMETHOD GetScriptableSelfAddr(nsINetAddr * *_retval) override { return _to GetScriptableSelfAddr(_retval); } \
NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo) override { return _to GetSecurityInfo(aSecurityInfo); } \
NS_IMETHOD GetSecurityCallbacks(nsIInterfaceRequestor * *aSecurityCallbacks) override { return _to GetSecurityCallbacks(aSecurityCallbacks); } \
NS_IMETHOD SetSecurityCallbacks(nsIInterfaceRequestor *aSecurityCallbacks) override { return _to SetSecurityCallbacks(aSecurityCallbacks); } \
NS_IMETHOD IsAlive(bool *_retval) override { return _to IsAlive(_retval); } \
NS_IMETHOD GetTimeout(uint32_t aType, uint32_t *_retval) override { return _to GetTimeout(aType, _retval); } \
NS_IMETHOD SetTimeout(uint32_t aType, uint32_t aValue) override { return _to SetTimeout(aType, aValue); } \
NS_IMETHOD GetConnectionFlags(uint32_t *aConnectionFlags) override { return _to GetConnectionFlags(aConnectionFlags); } \
NS_IMETHOD SetConnectionFlags(uint32_t aConnectionFlags) override { return _to SetConnectionFlags(aConnectionFlags); } \
NS_IMETHOD GetQoSBits(uint8_t *aQoSBits) override { return _to GetQoSBits(aQoSBits); } \
NS_IMETHOD SetQoSBits(uint8_t aQoSBits) override { return _to SetQoSBits(aQoSBits); } \
NS_IMETHOD GetRecvBufferSize(uint32_t *aRecvBufferSize) override { return _to GetRecvBufferSize(aRecvBufferSize); } \
NS_IMETHOD SetRecvBufferSize(uint32_t aRecvBufferSize) override { return _to SetRecvBufferSize(aRecvBufferSize); } \
NS_IMETHOD GetSendBufferSize(uint32_t *aSendBufferSize) override { return _to GetSendBufferSize(aSendBufferSize); } \
NS_IMETHOD SetSendBufferSize(uint32_t aSendBufferSize) override { return _to SetSendBufferSize(aSendBufferSize); } \
NS_IMETHOD GetKeepaliveEnabled(bool *aKeepaliveEnabled) override { return _to GetKeepaliveEnabled(aKeepaliveEnabled); } \
NS_IMETHOD SetKeepaliveEnabled(bool aKeepaliveEnabled) override { return _to SetKeepaliveEnabled(aKeepaliveEnabled); } \
NS_IMETHOD SetKeepaliveVals(int32_t keepaliveIdleTime, int32_t keepaliveRetryInterval) override { return _to SetKeepaliveVals(keepaliveIdleTime, keepaliveRetryInterval); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISOCKETTRANSPORT(_to) \
NS_IMETHOD GetHost(nsACString & aHost) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHost(aHost); } \
NS_IMETHOD GetPort(int32_t *aPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); } \
NS_IMETHOD GetScriptableOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScriptableOriginAttributes(cx, aOriginAttributes); } \
NS_IMETHOD SetScriptableOriginAttributes(JSContext* cx, JS::HandleValue aOriginAttributes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetScriptableOriginAttributes(cx, aOriginAttributes); } \
virtual nsresult GetOriginAttributes(mozilla::NeckoOriginAttributes *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOriginAttributes(_retval); } \
virtual nsresult SetOriginAttributes(const mozilla::NeckoOriginAttributes & aOriginAttrs) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOriginAttributes(aOriginAttrs); } \
NS_IMETHOD GetNetworkInterfaceId(nsACString & aNetworkInterfaceId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNetworkInterfaceId(aNetworkInterfaceId); } \
NS_IMETHOD SetNetworkInterfaceId(const nsACString & aNetworkInterfaceId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNetworkInterfaceId(aNetworkInterfaceId); } \
NS_IMETHOD GetPeerAddr(mozilla::net::NetAddr *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPeerAddr(_retval); } \
NS_IMETHOD GetSelfAddr(mozilla::net::NetAddr *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelfAddr(_retval); } \
NS_IMETHOD Bind(mozilla::net::NetAddr *aLocalAddr) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Bind(aLocalAddr); } \
NS_IMETHOD GetScriptablePeerAddr(nsINetAddr * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScriptablePeerAddr(_retval); } \
NS_IMETHOD GetScriptableSelfAddr(nsINetAddr * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScriptableSelfAddr(_retval); } \
NS_IMETHOD GetSecurityInfo(nsISupports * *aSecurityInfo) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityInfo(aSecurityInfo); } \
NS_IMETHOD GetSecurityCallbacks(nsIInterfaceRequestor * *aSecurityCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSecurityCallbacks(aSecurityCallbacks); } \
NS_IMETHOD SetSecurityCallbacks(nsIInterfaceRequestor *aSecurityCallbacks) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSecurityCallbacks(aSecurityCallbacks); } \
NS_IMETHOD IsAlive(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsAlive(_retval); } \
NS_IMETHOD GetTimeout(uint32_t aType, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTimeout(aType, _retval); } \
NS_IMETHOD SetTimeout(uint32_t aType, uint32_t aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTimeout(aType, aValue); } \
NS_IMETHOD GetConnectionFlags(uint32_t *aConnectionFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetConnectionFlags(aConnectionFlags); } \
NS_IMETHOD SetConnectionFlags(uint32_t aConnectionFlags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetConnectionFlags(aConnectionFlags); } \
NS_IMETHOD GetQoSBits(uint8_t *aQoSBits) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetQoSBits(aQoSBits); } \
NS_IMETHOD SetQoSBits(uint8_t aQoSBits) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetQoSBits(aQoSBits); } \
NS_IMETHOD GetRecvBufferSize(uint32_t *aRecvBufferSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRecvBufferSize(aRecvBufferSize); } \
NS_IMETHOD SetRecvBufferSize(uint32_t aRecvBufferSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRecvBufferSize(aRecvBufferSize); } \
NS_IMETHOD GetSendBufferSize(uint32_t *aSendBufferSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSendBufferSize(aSendBufferSize); } \
NS_IMETHOD SetSendBufferSize(uint32_t aSendBufferSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSendBufferSize(aSendBufferSize); } \
NS_IMETHOD GetKeepaliveEnabled(bool *aKeepaliveEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeepaliveEnabled(aKeepaliveEnabled); } \
NS_IMETHOD SetKeepaliveEnabled(bool aKeepaliveEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetKeepaliveEnabled(aKeepaliveEnabled); } \
NS_IMETHOD SetKeepaliveVals(int32_t keepaliveIdleTime, int32_t keepaliveRetryInterval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetKeepaliveVals(keepaliveIdleTime, keepaliveRetryInterval); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsSocketTransport : public nsISocketTransport
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISOCKETTRANSPORT
nsSocketTransport();
private:
~nsSocketTransport();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsSocketTransport, nsISocketTransport)
nsSocketTransport::nsSocketTransport()
{
/* member initializers and constructor code */
}
nsSocketTransport::~nsSocketTransport()
{
/* destructor code */
}
/* readonly attribute AUTF8String host; */
NS_IMETHODIMP nsSocketTransport::GetHost(nsACString & aHost)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long port; */
NS_IMETHODIMP nsSocketTransport::GetPort(int32_t *aPort)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [binaryname(ScriptableOriginAttributes),implicit_jscontext] attribute jsval originAttributes; */
NS_IMETHODIMP nsSocketTransport::GetScriptableOriginAttributes(JSContext* cx, JS::MutableHandleValue aOriginAttributes)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSocketTransport::SetScriptableOriginAttributes(JSContext* cx, JS::HandleValue aOriginAttributes)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [binaryname(GetOriginAttributes),noscript,nostdcall] NeckoOriginAttributes binaryGetOriginAttributes (); */
nsresult nsSocketTransport::GetOriginAttributes(mozilla::NeckoOriginAttributes *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [binaryname(SetOriginAttributes),noscript,nostdcall] void binarySetOriginAttributes (in const_OriginAttributesRef aOriginAttrs); */
nsresult nsSocketTransport::SetOriginAttributes(const mozilla::NeckoOriginAttributes & aOriginAttrs)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute ACString networkInterfaceId; */
NS_IMETHODIMP nsSocketTransport::GetNetworkInterfaceId(nsACString & aNetworkInterfaceId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSocketTransport::SetNetworkInterfaceId(const nsACString & aNetworkInterfaceId)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] NetAddr getPeerAddr (); */
NS_IMETHODIMP nsSocketTransport::GetPeerAddr(mozilla::net::NetAddr *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] NetAddr getSelfAddr (); */
NS_IMETHODIMP nsSocketTransport::GetSelfAddr(mozilla::net::NetAddr *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] void bind (in NetAddrPtr aLocalAddr); */
NS_IMETHODIMP nsSocketTransport::Bind(mozilla::net::NetAddr *aLocalAddr)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsINetAddr getScriptablePeerAddr (); */
NS_IMETHODIMP nsSocketTransport::GetScriptablePeerAddr(nsINetAddr * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsINetAddr getScriptableSelfAddr (); */
NS_IMETHODIMP nsSocketTransport::GetScriptableSelfAddr(nsINetAddr * *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsISupports securityInfo; */
NS_IMETHODIMP nsSocketTransport::GetSecurityInfo(nsISupports * *aSecurityInfo)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIInterfaceRequestor securityCallbacks; */
NS_IMETHODIMP nsSocketTransport::GetSecurityCallbacks(nsIInterfaceRequestor * *aSecurityCallbacks)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSocketTransport::SetSecurityCallbacks(nsIInterfaceRequestor *aSecurityCallbacks)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean isAlive (); */
NS_IMETHODIMP nsSocketTransport::IsAlive(bool *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* unsigned long getTimeout (in unsigned long aType); */
NS_IMETHODIMP nsSocketTransport::GetTimeout(uint32_t aType, uint32_t *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setTimeout (in unsigned long aType, in unsigned long aValue); */
NS_IMETHODIMP nsSocketTransport::SetTimeout(uint32_t aType, uint32_t aValue)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute unsigned long connectionFlags; */
NS_IMETHODIMP nsSocketTransport::GetConnectionFlags(uint32_t *aConnectionFlags)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSocketTransport::SetConnectionFlags(uint32_t aConnectionFlags)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute octet QoSBits; */
NS_IMETHODIMP nsSocketTransport::GetQoSBits(uint8_t *aQoSBits)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSocketTransport::SetQoSBits(uint8_t aQoSBits)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute unsigned long recvBufferSize; */
NS_IMETHODIMP nsSocketTransport::GetRecvBufferSize(uint32_t *aRecvBufferSize)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSocketTransport::SetRecvBufferSize(uint32_t aRecvBufferSize)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute unsigned long sendBufferSize; */
NS_IMETHODIMP nsSocketTransport::GetSendBufferSize(uint32_t *aSendBufferSize)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSocketTransport::SetSendBufferSize(uint32_t aSendBufferSize)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean keepaliveEnabled; */
NS_IMETHODIMP nsSocketTransport::GetKeepaliveEnabled(bool *aKeepaliveEnabled)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSocketTransport::SetKeepaliveEnabled(bool aKeepaliveEnabled)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setKeepaliveVals (in long keepaliveIdleTime, in long keepaliveRetryInterval); */
NS_IMETHODIMP nsSocketTransport::SetKeepaliveVals(int32_t keepaliveIdleTime, int32_t keepaliveRetryInterval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsISocketTransport_h__ */
|