This file is indexed.

/usr/include/firefox-esr-52/nsIThreadPool.h is in firefox-esr-dev 52.8.1esr-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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIThreadPool.idl
 */

#ifndef __gen_nsIThreadPool_h__
#define __gen_nsIThreadPool_h__


#ifndef __gen_nsIEventTarget_h__
#include "nsIEventTarget.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:    nsIThreadPoolListener */
#define NS_ITHREADPOOLLISTENER_IID_STR "ef194cab-3f86-4b61-b132-e5e96a79e5d1"

#define NS_ITHREADPOOLLISTENER_IID \
  {0xef194cab, 0x3f86, 0x4b61, \
    { 0xb1, 0x32, 0xe5, 0xe9, 0x6a, 0x79, 0xe5, 0xd1 }}

class NS_NO_VTABLE nsIThreadPoolListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITHREADPOOLLISTENER_IID)

  /* void onThreadCreated (); */
  NS_IMETHOD OnThreadCreated(void) = 0;

  /* void onThreadShuttingDown (); */
  NS_IMETHOD OnThreadShuttingDown(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIThreadPoolListener, NS_ITHREADPOOLLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITHREADPOOLLISTENER \
  NS_IMETHOD OnThreadCreated(void) override; \
  NS_IMETHOD OnThreadShuttingDown(void) 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_NSITHREADPOOLLISTENER \
  NS_METHOD OnThreadCreated(void); \
  NS_METHOD OnThreadShuttingDown(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITHREADPOOLLISTENER(_to) \
  NS_IMETHOD OnThreadCreated(void) override { return _to OnThreadCreated(); } \
  NS_IMETHOD OnThreadShuttingDown(void) override { return _to OnThreadShuttingDown(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITHREADPOOLLISTENER(_to) \
  NS_IMETHOD OnThreadCreated(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnThreadCreated(); } \
  NS_IMETHOD OnThreadShuttingDown(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnThreadShuttingDown(); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsThreadPoolListener : public nsIThreadPoolListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSITHREADPOOLLISTENER

  nsThreadPoolListener();

private:
  ~nsThreadPoolListener();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsThreadPoolListener, nsIThreadPoolListener)

nsThreadPoolListener::nsThreadPoolListener()
{
  /* member initializers and constructor code */
}

nsThreadPoolListener::~nsThreadPoolListener()
{
  /* destructor code */
}

/* void onThreadCreated (); */
NS_IMETHODIMP nsThreadPoolListener::OnThreadCreated()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onThreadShuttingDown (); */
NS_IMETHODIMP nsThreadPoolListener::OnThreadShuttingDown()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIThreadPool */
#define NS_ITHREADPOOL_IID_STR "76ce99c9-8e43-489a-9789-f27cc4424965"

#define NS_ITHREADPOOL_IID \
  {0x76ce99c9, 0x8e43, 0x489a, \
    { 0x97, 0x89, 0xf2, 0x7c, 0xc4, 0x42, 0x49, 0x65 }}

class NS_NO_VTABLE nsIThreadPool : public nsIEventTarget {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITHREADPOOL_IID)

  /* void shutdown (); */
  NS_IMETHOD Shutdown(void) = 0;

  /* attribute unsigned long threadLimit; */
  NS_IMETHOD GetThreadLimit(uint32_t *aThreadLimit) = 0;
  NS_IMETHOD SetThreadLimit(uint32_t aThreadLimit) = 0;

  /* attribute unsigned long idleThreadLimit; */
  NS_IMETHOD GetIdleThreadLimit(uint32_t *aIdleThreadLimit) = 0;
  NS_IMETHOD SetIdleThreadLimit(uint32_t aIdleThreadLimit) = 0;

  /* attribute unsigned long idleThreadTimeout; */
  NS_IMETHOD GetIdleThreadTimeout(uint32_t *aIdleThreadTimeout) = 0;
  NS_IMETHOD SetIdleThreadTimeout(uint32_t aIdleThreadTimeout) = 0;

  /* attribute unsigned long threadStackSize; */
  NS_IMETHOD GetThreadStackSize(uint32_t *aThreadStackSize) = 0;
  NS_IMETHOD SetThreadStackSize(uint32_t aThreadStackSize) = 0;

  /* attribute nsIThreadPoolListener listener; */
  NS_IMETHOD GetListener(nsIThreadPoolListener * *aListener) = 0;
  NS_IMETHOD SetListener(nsIThreadPoolListener *aListener) = 0;

  /* void setName (in ACString aName); */
  NS_IMETHOD SetName(const nsACString & aName) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIThreadPool, NS_ITHREADPOOL_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITHREADPOOL \
  NS_IMETHOD Shutdown(void) override; \
  NS_IMETHOD GetThreadLimit(uint32_t *aThreadLimit) override; \
  NS_IMETHOD SetThreadLimit(uint32_t aThreadLimit) override; \
  NS_IMETHOD GetIdleThreadLimit(uint32_t *aIdleThreadLimit) override; \
  NS_IMETHOD SetIdleThreadLimit(uint32_t aIdleThreadLimit) override; \
  NS_IMETHOD GetIdleThreadTimeout(uint32_t *aIdleThreadTimeout) override; \
  NS_IMETHOD SetIdleThreadTimeout(uint32_t aIdleThreadTimeout) override; \
  NS_IMETHOD GetThreadStackSize(uint32_t *aThreadStackSize) override; \
  NS_IMETHOD SetThreadStackSize(uint32_t aThreadStackSize) override; \
  NS_IMETHOD GetListener(nsIThreadPoolListener * *aListener) override; \
  NS_IMETHOD SetListener(nsIThreadPoolListener *aListener) override; \
  NS_IMETHOD SetName(const nsACString & aName) 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_NSITHREADPOOL \
  NS_METHOD Shutdown(void); \
  NS_METHOD GetThreadLimit(uint32_t *aThreadLimit); \
  NS_METHOD SetThreadLimit(uint32_t aThreadLimit); \
  NS_METHOD GetIdleThreadLimit(uint32_t *aIdleThreadLimit); \
  NS_METHOD SetIdleThreadLimit(uint32_t aIdleThreadLimit); \
  NS_METHOD GetIdleThreadTimeout(uint32_t *aIdleThreadTimeout); \
  NS_METHOD SetIdleThreadTimeout(uint32_t aIdleThreadTimeout); \
  NS_METHOD GetThreadStackSize(uint32_t *aThreadStackSize); \
  NS_METHOD SetThreadStackSize(uint32_t aThreadStackSize); \
  NS_METHOD GetListener(nsIThreadPoolListener * *aListener); \
  NS_METHOD SetListener(nsIThreadPoolListener *aListener); \
  NS_METHOD SetName(const nsACString & aName); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITHREADPOOL(_to) \
  NS_IMETHOD Shutdown(void) override { return _to Shutdown(); } \
  NS_IMETHOD GetThreadLimit(uint32_t *aThreadLimit) override { return _to GetThreadLimit(aThreadLimit); } \
  NS_IMETHOD SetThreadLimit(uint32_t aThreadLimit) override { return _to SetThreadLimit(aThreadLimit); } \
  NS_IMETHOD GetIdleThreadLimit(uint32_t *aIdleThreadLimit) override { return _to GetIdleThreadLimit(aIdleThreadLimit); } \
  NS_IMETHOD SetIdleThreadLimit(uint32_t aIdleThreadLimit) override { return _to SetIdleThreadLimit(aIdleThreadLimit); } \
  NS_IMETHOD GetIdleThreadTimeout(uint32_t *aIdleThreadTimeout) override { return _to GetIdleThreadTimeout(aIdleThreadTimeout); } \
  NS_IMETHOD SetIdleThreadTimeout(uint32_t aIdleThreadTimeout) override { return _to SetIdleThreadTimeout(aIdleThreadTimeout); } \
  NS_IMETHOD GetThreadStackSize(uint32_t *aThreadStackSize) override { return _to GetThreadStackSize(aThreadStackSize); } \
  NS_IMETHOD SetThreadStackSize(uint32_t aThreadStackSize) override { return _to SetThreadStackSize(aThreadStackSize); } \
  NS_IMETHOD GetListener(nsIThreadPoolListener * *aListener) override { return _to GetListener(aListener); } \
  NS_IMETHOD SetListener(nsIThreadPoolListener *aListener) override { return _to SetListener(aListener); } \
  NS_IMETHOD SetName(const nsACString & aName) override { return _to SetName(aName); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITHREADPOOL(_to) \
  NS_IMETHOD Shutdown(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); } \
  NS_IMETHOD GetThreadLimit(uint32_t *aThreadLimit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThreadLimit(aThreadLimit); } \
  NS_IMETHOD SetThreadLimit(uint32_t aThreadLimit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetThreadLimit(aThreadLimit); } \
  NS_IMETHOD GetIdleThreadLimit(uint32_t *aIdleThreadLimit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdleThreadLimit(aIdleThreadLimit); } \
  NS_IMETHOD SetIdleThreadLimit(uint32_t aIdleThreadLimit) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIdleThreadLimit(aIdleThreadLimit); } \
  NS_IMETHOD GetIdleThreadTimeout(uint32_t *aIdleThreadTimeout) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIdleThreadTimeout(aIdleThreadTimeout); } \
  NS_IMETHOD SetIdleThreadTimeout(uint32_t aIdleThreadTimeout) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIdleThreadTimeout(aIdleThreadTimeout); } \
  NS_IMETHOD GetThreadStackSize(uint32_t *aThreadStackSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThreadStackSize(aThreadStackSize); } \
  NS_IMETHOD SetThreadStackSize(uint32_t aThreadStackSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetThreadStackSize(aThreadStackSize); } \
  NS_IMETHOD GetListener(nsIThreadPoolListener * *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetListener(aListener); } \
  NS_IMETHOD SetListener(nsIThreadPoolListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetListener(aListener); } \
  NS_IMETHOD SetName(const nsACString & aName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsThreadPool : public nsIThreadPool
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSITHREADPOOL

  nsThreadPool();

private:
  ~nsThreadPool();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsThreadPool, nsIThreadPool)

nsThreadPool::nsThreadPool()
{
  /* member initializers and constructor code */
}

nsThreadPool::~nsThreadPool()
{
  /* destructor code */
}

/* void shutdown (); */
NS_IMETHODIMP nsThreadPool::Shutdown()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long threadLimit; */
NS_IMETHODIMP nsThreadPool::GetThreadLimit(uint32_t *aThreadLimit)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsThreadPool::SetThreadLimit(uint32_t aThreadLimit)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long idleThreadLimit; */
NS_IMETHODIMP nsThreadPool::GetIdleThreadLimit(uint32_t *aIdleThreadLimit)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsThreadPool::SetIdleThreadLimit(uint32_t aIdleThreadLimit)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long idleThreadTimeout; */
NS_IMETHODIMP nsThreadPool::GetIdleThreadTimeout(uint32_t *aIdleThreadTimeout)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsThreadPool::SetIdleThreadTimeout(uint32_t aIdleThreadTimeout)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute unsigned long threadStackSize; */
NS_IMETHODIMP nsThreadPool::GetThreadStackSize(uint32_t *aThreadStackSize)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsThreadPool::SetThreadStackSize(uint32_t aThreadStackSize)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute nsIThreadPoolListener listener; */
NS_IMETHODIMP nsThreadPool::GetListener(nsIThreadPoolListener * *aListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsThreadPool::SetListener(nsIThreadPoolListener *aListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setName (in ACString aName); */
NS_IMETHODIMP nsThreadPool::SetName(const nsACString & aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIThreadPool_h__ */