/usr/include/thunderbird/nsIWorkerTest.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 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIWorkerTest.idl
*/
#ifndef __gen_nsIWorkerTest_h__
#define __gen_nsIWorkerTest_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
/* starting interface: nsIWorkerTestCallback */
#define NS_IWORKERTESTCALLBACK_IID_STR "10f8ebdf-1373-4640-9c34-53dee99f526f"
#define NS_IWORKERTESTCALLBACK_IID \
{0x10f8ebdf, 0x1373, 0x4640, \
{ 0x9c, 0x34, 0x53, 0xde, 0xe9, 0x9f, 0x52, 0x6f }}
class NS_NO_VTABLE nsIWorkerTestCallback : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWORKERTESTCALLBACK_IID)
/* void onmessage (in DOMString data); */
NS_IMETHOD Onmessage(const nsAString & data) = 0;
/* void onerror (in DOMString data); */
NS_IMETHOD Onerror(const nsAString & data) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIWorkerTestCallback, NS_IWORKERTESTCALLBACK_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWORKERTESTCALLBACK \
NS_IMETHOD Onmessage(const nsAString & data) override; \
NS_IMETHOD Onerror(const nsAString & data) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWORKERTESTCALLBACK(_to) \
NS_IMETHOD Onmessage(const nsAString & data) override { return _to Onmessage(data); } \
NS_IMETHOD Onerror(const nsAString & data) override { return _to Onerror(data); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWORKERTESTCALLBACK(_to) \
NS_IMETHOD Onmessage(const nsAString & data) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Onmessage(data); } \
NS_IMETHOD Onerror(const nsAString & data) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Onerror(data); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsWorkerTestCallback : public nsIWorkerTestCallback
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIWORKERTESTCALLBACK
nsWorkerTestCallback();
private:
~nsWorkerTestCallback();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsWorkerTestCallback, nsIWorkerTestCallback)
nsWorkerTestCallback::nsWorkerTestCallback()
{
/* member initializers and constructor code */
}
nsWorkerTestCallback::~nsWorkerTestCallback()
{
/* destructor code */
}
/* void onmessage (in DOMString data); */
NS_IMETHODIMP nsWorkerTestCallback::Onmessage(const nsAString & data)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void onerror (in DOMString data); */
NS_IMETHODIMP nsWorkerTestCallback::Onerror(const nsAString & data)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIWorkerTest */
#define NS_IWORKERTEST_IID_STR "887a0614-a0f0-4c0e-80e0-cf31e6d4e286"
#define NS_IWORKERTEST_IID \
{0x887a0614, 0xa0f0, 0x4c0e, \
{ 0x80, 0xe0, 0xcf, 0x31, 0xe6, 0xd4, 0xe2, 0x86 }}
class NS_NO_VTABLE nsIWorkerTest : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWORKERTEST_IID)
/* void postMessage (in DOMString data); */
NS_IMETHOD PostMessage(const nsAString & data) = 0;
/* void terminate (); */
NS_IMETHOD Terminate(void) = 0;
/* attribute nsIWorkerTestCallback callback; */
NS_IMETHOD GetCallback(nsIWorkerTestCallback * *aCallback) = 0;
NS_IMETHOD SetCallback(nsIWorkerTestCallback *aCallback) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIWorkerTest, NS_IWORKERTEST_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWORKERTEST \
NS_IMETHOD PostMessage(const nsAString & data) override; \
NS_IMETHOD Terminate(void) override; \
NS_IMETHOD GetCallback(nsIWorkerTestCallback * *aCallback) override; \
NS_IMETHOD SetCallback(nsIWorkerTestCallback *aCallback) override;
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWORKERTEST(_to) \
NS_IMETHOD PostMessage(const nsAString & data) override { return _to PostMessage(data); } \
NS_IMETHOD Terminate(void) override { return _to Terminate(); } \
NS_IMETHOD GetCallback(nsIWorkerTestCallback * *aCallback) override { return _to GetCallback(aCallback); } \
NS_IMETHOD SetCallback(nsIWorkerTestCallback *aCallback) override { return _to SetCallback(aCallback); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWORKERTEST(_to) \
NS_IMETHOD PostMessage(const nsAString & data) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PostMessage(data); } \
NS_IMETHOD Terminate(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Terminate(); } \
NS_IMETHOD GetCallback(nsIWorkerTestCallback * *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCallback(aCallback); } \
NS_IMETHOD SetCallback(nsIWorkerTestCallback *aCallback) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCallback(aCallback); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsWorkerTest : public nsIWorkerTest
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIWORKERTEST
nsWorkerTest();
private:
~nsWorkerTest();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS(nsWorkerTest, nsIWorkerTest)
nsWorkerTest::nsWorkerTest()
{
/* member initializers and constructor code */
}
nsWorkerTest::~nsWorkerTest()
{
/* destructor code */
}
/* void postMessage (in DOMString data); */
NS_IMETHODIMP nsWorkerTest::PostMessage(const nsAString & data)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void terminate (); */
NS_IMETHODIMP nsWorkerTest::Terminate()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIWorkerTestCallback callback; */
NS_IMETHODIMP nsWorkerTest::GetCallback(nsIWorkerTestCallback * *aCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsWorkerTest::SetCallback(nsIWorkerTestCallback *aCallback)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIWorkerTest_h__ */
|