/usr/include/thunderbird/nsITCPSocketChild.h is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.
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 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsITCPSocketChild.idl
*/
#ifndef __gen_nsITCPSocketChild_h__
#define __gen_nsITCPSocketChild_h__
#ifndef __gen_domstubs_h__
#include "domstubs.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 nsITCPSocketInternal; /* forward declaration */
class nsIDOMWindow; /* forward declaration */
/* starting interface: nsITCPSocketChild */
#define NS_ITCPSOCKETCHILD_IID_STR "4277aff0-4c33-11e3-8f96-0800200c9a66"
#define NS_ITCPSOCKETCHILD_IID \
{0x4277aff0, 0x4c33, 0x11e3, \
{ 0x8f, 0x96, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 }}
class NS_NO_VTABLE nsITCPSocketChild : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITCPSOCKETCHILD_IID)
/* [implicit_jscontext] void sendOpen (in nsITCPSocketInternal socket, in DOMString host, in unsigned short port, in boolean ssl, in DOMString binaryType, in nsIDOMWindow window, in jsval windowVal); */
NS_IMETHOD SendOpen(nsITCPSocketInternal *socket, const nsAString & host, uint16_t port, bool ssl, const nsAString & binaryType, nsIDOMWindow *window, JS::HandleValue windowVal, JSContext* cx) = 0;
/* [implicit_jscontext] void sendSend (in jsval data, in unsigned long byteOffset, in unsigned long byteLength, in unsigned long trackingNumber); */
NS_IMETHOD SendSend(JS::HandleValue data, uint32_t byteOffset, uint32_t byteLength, uint32_t trackingNumber, JSContext* cx) = 0;
/* void sendResume (); */
NS_IMETHOD SendResume(void) = 0;
/* void sendSuspend (); */
NS_IMETHOD SendSuspend(void) = 0;
/* void sendClose (); */
NS_IMETHOD SendClose(void) = 0;
/* void sendStartTLS (); */
NS_IMETHOD SendStartTLS(void) = 0;
/* [implicit_jscontext] void setSocketAndWindow (in nsITCPSocketInternal socket, in jsval windowVal); */
NS_IMETHOD SetSocketAndWindow(nsITCPSocketInternal *socket, JS::HandleValue windowVal, JSContext* cx) = 0;
/* readonly attribute DOMString host; */
NS_IMETHOD GetHost(nsAString & aHost) = 0;
/* readonly attribute unsigned short port; */
NS_IMETHOD GetPort(uint16_t *aPort) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsITCPSocketChild, NS_ITCPSOCKETCHILD_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITCPSOCKETCHILD \
NS_IMETHOD SendOpen(nsITCPSocketInternal *socket, const nsAString & host, uint16_t port, bool ssl, const nsAString & binaryType, nsIDOMWindow *window, JS::HandleValue windowVal, JSContext* cx) override; \
NS_IMETHOD SendSend(JS::HandleValue data, uint32_t byteOffset, uint32_t byteLength, uint32_t trackingNumber, JSContext* cx) override; \
NS_IMETHOD SendResume(void) override; \
NS_IMETHOD SendSuspend(void) override; \
NS_IMETHOD SendClose(void) override; \
NS_IMETHOD SendStartTLS(void) override; \
NS_IMETHOD SetSocketAndWindow(nsITCPSocketInternal *socket, JS::HandleValue windowVal, JSContext* cx) override; \
NS_IMETHOD GetHost(nsAString & aHost) override; \
NS_IMETHOD GetPort(uint16_t *aPort) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITCPSOCKETCHILD(_to) \
NS_IMETHOD SendOpen(nsITCPSocketInternal *socket, const nsAString & host, uint16_t port, bool ssl, const nsAString & binaryType, nsIDOMWindow *window, JS::HandleValue windowVal, JSContext* cx) override { return _to SendOpen(socket, host, port, ssl, binaryType, window, windowVal, cx); } \
NS_IMETHOD SendSend(JS::HandleValue data, uint32_t byteOffset, uint32_t byteLength, uint32_t trackingNumber, JSContext* cx) override { return _to SendSend(data, byteOffset, byteLength, trackingNumber, cx); } \
NS_IMETHOD SendResume(void) override { return _to SendResume(); } \
NS_IMETHOD SendSuspend(void) override { return _to SendSuspend(); } \
NS_IMETHOD SendClose(void) override { return _to SendClose(); } \
NS_IMETHOD SendStartTLS(void) override { return _to SendStartTLS(); } \
NS_IMETHOD SetSocketAndWindow(nsITCPSocketInternal *socket, JS::HandleValue windowVal, JSContext* cx) override { return _to SetSocketAndWindow(socket, windowVal, cx); } \
NS_IMETHOD GetHost(nsAString & aHost) override { return _to GetHost(aHost); } \
NS_IMETHOD GetPort(uint16_t *aPort) override { return _to GetPort(aPort); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITCPSOCKETCHILD(_to) \
NS_IMETHOD SendOpen(nsITCPSocketInternal *socket, const nsAString & host, uint16_t port, bool ssl, const nsAString & binaryType, nsIDOMWindow *window, JS::HandleValue windowVal, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendOpen(socket, host, port, ssl, binaryType, window, windowVal, cx); } \
NS_IMETHOD SendSend(JS::HandleValue data, uint32_t byteOffset, uint32_t byteLength, uint32_t trackingNumber, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendSend(data, byteOffset, byteLength, trackingNumber, cx); } \
NS_IMETHOD SendResume(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendResume(); } \
NS_IMETHOD SendSuspend(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendSuspend(); } \
NS_IMETHOD SendClose(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendClose(); } \
NS_IMETHOD SendStartTLS(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendStartTLS(); } \
NS_IMETHOD SetSocketAndWindow(nsITCPSocketInternal *socket, JS::HandleValue windowVal, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSocketAndWindow(socket, windowVal, cx); } \
NS_IMETHOD GetHost(nsAString & aHost) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHost(aHost); } \
NS_IMETHOD GetPort(uint16_t *aPort) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPort(aPort); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsTCPSocketChild : public nsITCPSocketChild
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSITCPSOCKETCHILD
nsTCPSocketChild();
private:
~nsTCPSocketChild();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsTCPSocketChild, nsITCPSocketChild)
nsTCPSocketChild::nsTCPSocketChild()
{
/* member initializers and constructor code */
}
nsTCPSocketChild::~nsTCPSocketChild()
{
/* destructor code */
}
/* [implicit_jscontext] void sendOpen (in nsITCPSocketInternal socket, in DOMString host, in unsigned short port, in boolean ssl, in DOMString binaryType, in nsIDOMWindow window, in jsval windowVal); */
NS_IMETHODIMP nsTCPSocketChild::SendOpen(nsITCPSocketInternal *socket, const nsAString & host, uint16_t port, bool ssl, const nsAString & binaryType, nsIDOMWindow *window, JS::HandleValue windowVal, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void sendSend (in jsval data, in unsigned long byteOffset, in unsigned long byteLength, in unsigned long trackingNumber); */
NS_IMETHODIMP nsTCPSocketChild::SendSend(JS::HandleValue data, uint32_t byteOffset, uint32_t byteLength, uint32_t trackingNumber, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void sendResume (); */
NS_IMETHODIMP nsTCPSocketChild::SendResume()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void sendSuspend (); */
NS_IMETHODIMP nsTCPSocketChild::SendSuspend()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void sendClose (); */
NS_IMETHODIMP nsTCPSocketChild::SendClose()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void sendStartTLS (); */
NS_IMETHODIMP nsTCPSocketChild::SendStartTLS()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] void setSocketAndWindow (in nsITCPSocketInternal socket, in jsval windowVal); */
NS_IMETHODIMP nsTCPSocketChild::SetSocketAndWindow(nsITCPSocketInternal *socket, JS::HandleValue windowVal, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute DOMString host; */
NS_IMETHODIMP nsTCPSocketChild::GetHost(nsAString & aHost)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned short port; */
NS_IMETHODIMP nsTCPSocketChild::GetPort(uint16_t *aPort)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsITCPSocketChild_h__ */
|