/* * DO NOT EDIT. THIS FILE IS GENERATED FROM $SRCDIR/netwerk/base/nsPISocketTransportService.idl */ #ifndef __gen_nsPISocketTransportService_h__ #define __gen_nsPISocketTransportService_h__ #include "nsISocketTransportService.h" /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #define NS_NO_VTABLE #endif /* starting interface: nsPISocketTransportService */ #define NS_PISOCKETTRANSPORTSERVICE_IID_STR "18f73bf1-b35b-4b7b-aa9a-11bcbdbc389c" #define NS_PISOCKETTRANSPORTSERVICE_IID \ {0x18f73bf1, 0xb35b, 0x4b7b, \ { 0xaa, 0x9a, 0x11, 0xbc, 0xbd, 0xbc, 0x38, 0x9c }} class NS_NO_VTABLE MOZ_BINDING(binding_to, idl, class, XPIDL_nsPISocketTransportService) nsPISocketTransportService : public nsIRoutedSocketTransportService { public: NS_INLINE_DECL_STATIC_IID(NS_PISOCKETTRANSPORTSERVICE_IID) /* Used by ToJSValue to check which scriptable interface is implemented. */ using ScriptableInterfaceType = nsPISocketTransportService; /* void init (); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsPISocketTransportService_init) NS_IMETHOD Init(void) = 0; /* void shutdown (in boolean aXpcomShutdown); */ MOZ_BINDING(binding_to, idl, method, XPIDL_nsPISocketTransportService_shutdown) NS_IMETHOD Shutdown(bool aXpcomShutdown) = 0; /* readonly attribute long sendBufferSize; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsPISocketTransportService_sendBufferSize) NS_IMETHOD GetSendBufferSize(int32_t *aSendBufferSize) = 0; /* attribute boolean offline; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsPISocketTransportService_offline) NS_IMETHOD GetOffline(bool *aOffline) = 0; MOZ_BINDING(binding_to, idl, setter, XPIDL_nsPISocketTransportService_offline) NS_IMETHOD SetOffline(bool aOffline) = 0; /* readonly attribute long keepaliveIdleTime; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsPISocketTransportService_keepaliveIdleTime) NS_IMETHOD GetKeepaliveIdleTime(int32_t *aKeepaliveIdleTime) = 0; /* readonly attribute long keepaliveRetryInterval; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsPISocketTransportService_keepaliveRetryInterval) NS_IMETHOD GetKeepaliveRetryInterval(int32_t *aKeepaliveRetryInterval) = 0; /* readonly attribute long keepaliveProbeCount; */ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsPISocketTransportService_keepaliveProbeCount) NS_IMETHOD GetKeepaliveProbeCount(int32_t *aKeepaliveProbeCount) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSPISOCKETTRANSPORTSERVICE \ NS_IMETHOD Init(void) override; \ NS_IMETHOD Shutdown(bool aXpcomShutdown) override; \ NS_IMETHOD GetSendBufferSize(int32_t *aSendBufferSize) override; \ NS_IMETHOD GetOffline(bool *aOffline) override; \ NS_IMETHOD SetOffline(bool aOffline) override; \ NS_IMETHOD GetKeepaliveIdleTime(int32_t *aKeepaliveIdleTime) override; \ NS_IMETHOD GetKeepaliveRetryInterval(int32_t *aKeepaliveRetryInterval) override; \ NS_IMETHOD GetKeepaliveProbeCount(int32_t *aKeepaliveProbeCount) 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_NSPISOCKETTRANSPORTSERVICE \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsPISocketTransportService_init)\ nsresult Init(void); \ MOZ_BINDING(binding_to, idl, method, XPIDL_nsPISocketTransportService_shutdown)\ nsresult Shutdown(bool aXpcomShutdown); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsPISocketTransportService_sendBufferSize)\ nsresult GetSendBufferSize(int32_t *aSendBufferSize); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsPISocketTransportService_offline)\ nsresult GetOffline(bool *aOffline); \ MOZ_BINDING(binding_to, idl, setter, XPIDL_nsPISocketTransportService_offline)\ nsresult SetOffline(bool aOffline); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsPISocketTransportService_keepaliveIdleTime)\ nsresult GetKeepaliveIdleTime(int32_t *aKeepaliveIdleTime); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsPISocketTransportService_keepaliveRetryInterval)\ nsresult GetKeepaliveRetryInterval(int32_t *aKeepaliveRetryInterval); \ MOZ_BINDING(binding_to, idl, getter, XPIDL_nsPISocketTransportService_keepaliveProbeCount)\ nsresult GetKeepaliveProbeCount(int32_t *aKeepaliveProbeCount); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSPISOCKETTRANSPORTSERVICE(_to) \ NS_IMETHOD Init(void) override { return _to Init(); } \ NS_IMETHOD Shutdown(bool aXpcomShutdown) override { return _to Shutdown(aXpcomShutdown); } \ NS_IMETHOD GetSendBufferSize(int32_t *aSendBufferSize) override { return _to GetSendBufferSize(aSendBufferSize); } \ NS_IMETHOD GetOffline(bool *aOffline) override { return _to GetOffline(aOffline); } \ NS_IMETHOD SetOffline(bool aOffline) override { return _to SetOffline(aOffline); } \ NS_IMETHOD GetKeepaliveIdleTime(int32_t *aKeepaliveIdleTime) override { return _to GetKeepaliveIdleTime(aKeepaliveIdleTime); } \ NS_IMETHOD GetKeepaliveRetryInterval(int32_t *aKeepaliveRetryInterval) override { return _to GetKeepaliveRetryInterval(aKeepaliveRetryInterval); } \ NS_IMETHOD GetKeepaliveProbeCount(int32_t *aKeepaliveProbeCount) override { return _to GetKeepaliveProbeCount(aKeepaliveProbeCount); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSPISOCKETTRANSPORTSERVICE(_to) \ NS_IMETHOD Init(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \ NS_IMETHOD Shutdown(bool aXpcomShutdown) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(aXpcomShutdown); } \ NS_IMETHOD GetSendBufferSize(int32_t *aSendBufferSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSendBufferSize(aSendBufferSize); } \ NS_IMETHOD GetOffline(bool *aOffline) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOffline(aOffline); } \ NS_IMETHOD SetOffline(bool aOffline) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOffline(aOffline); } \ NS_IMETHOD GetKeepaliveIdleTime(int32_t *aKeepaliveIdleTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeepaliveIdleTime(aKeepaliveIdleTime); } \ NS_IMETHOD GetKeepaliveRetryInterval(int32_t *aKeepaliveRetryInterval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeepaliveRetryInterval(aKeepaliveRetryInterval); } \ NS_IMETHOD GetKeepaliveProbeCount(int32_t *aKeepaliveProbeCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeepaliveProbeCount(aKeepaliveProbeCount); } #endif /* __gen_nsPISocketTransportService_h__ */