This file is indexed.

/usr/include/thunderbird/nsIWorkerDebugger.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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIWorkerDebugger.idl
 */

#ifndef __gen_nsIWorkerDebugger_h__
#define __gen_nsIWorkerDebugger_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
class mozIDOMWindow; /* forward declaration */

class nsIPrincipal; /* forward declaration */


/* starting interface:    nsIWorkerDebuggerListener */
#define NS_IWORKERDEBUGGERLISTENER_IID_STR "9cf3b48e-361d-486a-8917-55cf8d00bb41"

#define NS_IWORKERDEBUGGERLISTENER_IID \
  {0x9cf3b48e, 0x361d, 0x486a, \
    { 0x89, 0x17, 0x55, 0xcf, 0x8d, 0x00, 0xbb, 0x41 }}

class NS_NO_VTABLE nsIWorkerDebuggerListener : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWORKERDEBUGGERLISTENER_IID)

  /* void onClose (); */
  NS_IMETHOD OnClose(void) = 0;

  /* void onError (in DOMString filename, in unsigned long lineno, in DOMString message); */
  NS_IMETHOD OnError(const nsAString & filename, uint32_t lineno, const nsAString & message) = 0;

  /* void onMessage (in DOMString message); */
  NS_IMETHOD OnMessage(const nsAString & message) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIWorkerDebuggerListener, NS_IWORKERDEBUGGERLISTENER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWORKERDEBUGGERLISTENER \
  NS_IMETHOD OnClose(void) override; \
  NS_IMETHOD OnError(const nsAString & filename, uint32_t lineno, const nsAString & message) override; \
  NS_IMETHOD OnMessage(const nsAString & message) 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_NSIWORKERDEBUGGERLISTENER \
  NS_METHOD OnClose(void); \
  NS_METHOD OnError(const nsAString & filename, uint32_t lineno, const nsAString & message); \
  NS_METHOD OnMessage(const nsAString & message); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWORKERDEBUGGERLISTENER(_to) \
  NS_IMETHOD OnClose(void) override { return _to OnClose(); } \
  NS_IMETHOD OnError(const nsAString & filename, uint32_t lineno, const nsAString & message) override { return _to OnError(filename, lineno, message); } \
  NS_IMETHOD OnMessage(const nsAString & message) override { return _to OnMessage(message); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWORKERDEBUGGERLISTENER(_to) \
  NS_IMETHOD OnClose(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnClose(); } \
  NS_IMETHOD OnError(const nsAString & filename, uint32_t lineno, const nsAString & message) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(filename, lineno, message); } \
  NS_IMETHOD OnMessage(const nsAString & message) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnMessage(message); } 

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

/* Header file */
class nsWorkerDebuggerListener : public nsIWorkerDebuggerListener
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIWORKERDEBUGGERLISTENER

  nsWorkerDebuggerListener();

private:
  ~nsWorkerDebuggerListener();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsWorkerDebuggerListener, nsIWorkerDebuggerListener)

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

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

/* void onClose (); */
NS_IMETHODIMP nsWorkerDebuggerListener::OnClose()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onError (in DOMString filename, in unsigned long lineno, in DOMString message); */
NS_IMETHODIMP nsWorkerDebuggerListener::OnError(const nsAString & filename, uint32_t lineno, const nsAString & message)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onMessage (in DOMString message); */
NS_IMETHODIMP nsWorkerDebuggerListener::OnMessage(const nsAString & message)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIWorkerDebugger */
#define NS_IWORKERDEBUGGER_IID_STR "22f93aa3-8a05-46be-87e0-fa93bf8a8eff"

#define NS_IWORKERDEBUGGER_IID \
  {0x22f93aa3, 0x8a05, 0x46be, \
    { 0x87, 0xe0, 0xfa, 0x93, 0xbf, 0x8a, 0x8e, 0xff }}

class NS_NO_VTABLE nsIWorkerDebugger : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWORKERDEBUGGER_IID)

  enum {
    TYPE_DEDICATED = 0U,
    TYPE_SHARED = 1U,
    TYPE_SERVICE = 2U
  };

  /* readonly attribute bool isClosed; */
  NS_IMETHOD GetIsClosed(bool *aIsClosed) = 0;

  /* readonly attribute bool isChrome; */
  NS_IMETHOD GetIsChrome(bool *aIsChrome) = 0;

  /* readonly attribute bool isInitialized; */
  NS_IMETHOD GetIsInitialized(bool *aIsInitialized) = 0;

  /* readonly attribute nsIWorkerDebugger parent; */
  NS_IMETHOD GetParent(nsIWorkerDebugger * *aParent) = 0;

  /* readonly attribute unsigned long type; */
  NS_IMETHOD GetType(uint32_t *aType) = 0;

  /* readonly attribute DOMString url; */
  NS_IMETHOD GetUrl(nsAString & aUrl) = 0;

  /* readonly attribute mozIDOMWindow window; */
  NS_IMETHOD GetWindow(mozIDOMWindow * *aWindow) = 0;

  /* readonly attribute nsIPrincipal principal; */
  NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) = 0;

  /* readonly attribute unsigned long serviceWorkerID; */
  NS_IMETHOD GetServiceWorkerID(uint32_t *aServiceWorkerID) = 0;

  /* void initialize (in DOMString url); */
  NS_IMETHOD Initialize(const nsAString & url) = 0;

  /* [binaryname(PostMessageMoz)] void postMessage (in DOMString message); */
  NS_IMETHOD PostMessageMoz(const nsAString & message) = 0;

  /* void addListener (in nsIWorkerDebuggerListener listener); */
  NS_IMETHOD AddListener(nsIWorkerDebuggerListener *listener) = 0;

  /* void removeListener (in nsIWorkerDebuggerListener listener); */
  NS_IMETHOD RemoveListener(nsIWorkerDebuggerListener *listener) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIWorkerDebugger, NS_IWORKERDEBUGGER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIWORKERDEBUGGER \
  NS_IMETHOD GetIsClosed(bool *aIsClosed) override; \
  NS_IMETHOD GetIsChrome(bool *aIsChrome) override; \
  NS_IMETHOD GetIsInitialized(bool *aIsInitialized) override; \
  NS_IMETHOD GetParent(nsIWorkerDebugger * *aParent) override; \
  NS_IMETHOD GetType(uint32_t *aType) override; \
  NS_IMETHOD GetUrl(nsAString & aUrl) override; \
  NS_IMETHOD GetWindow(mozIDOMWindow * *aWindow) override; \
  NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override; \
  NS_IMETHOD GetServiceWorkerID(uint32_t *aServiceWorkerID) override; \
  NS_IMETHOD Initialize(const nsAString & url) override; \
  NS_IMETHOD PostMessageMoz(const nsAString & message) override; \
  NS_IMETHOD AddListener(nsIWorkerDebuggerListener *listener) override; \
  NS_IMETHOD RemoveListener(nsIWorkerDebuggerListener *listener) 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_NSIWORKERDEBUGGER \
  NS_METHOD GetIsClosed(bool *aIsClosed); \
  NS_METHOD GetIsChrome(bool *aIsChrome); \
  NS_METHOD GetIsInitialized(bool *aIsInitialized); \
  NS_METHOD GetParent(nsIWorkerDebugger * *aParent); \
  NS_METHOD GetType(uint32_t *aType); \
  NS_METHOD GetUrl(nsAString & aUrl); \
  NS_METHOD GetWindow(mozIDOMWindow * *aWindow); \
  NS_METHOD GetPrincipal(nsIPrincipal * *aPrincipal); \
  NS_METHOD GetServiceWorkerID(uint32_t *aServiceWorkerID); \
  NS_METHOD Initialize(const nsAString & url); \
  NS_METHOD PostMessageMoz(const nsAString & message); \
  NS_METHOD AddListener(nsIWorkerDebuggerListener *listener); \
  NS_METHOD RemoveListener(nsIWorkerDebuggerListener *listener); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIWORKERDEBUGGER(_to) \
  NS_IMETHOD GetIsClosed(bool *aIsClosed) override { return _to GetIsClosed(aIsClosed); } \
  NS_IMETHOD GetIsChrome(bool *aIsChrome) override { return _to GetIsChrome(aIsChrome); } \
  NS_IMETHOD GetIsInitialized(bool *aIsInitialized) override { return _to GetIsInitialized(aIsInitialized); } \
  NS_IMETHOD GetParent(nsIWorkerDebugger * *aParent) override { return _to GetParent(aParent); } \
  NS_IMETHOD GetType(uint32_t *aType) override { return _to GetType(aType); } \
  NS_IMETHOD GetUrl(nsAString & aUrl) override { return _to GetUrl(aUrl); } \
  NS_IMETHOD GetWindow(mozIDOMWindow * *aWindow) override { return _to GetWindow(aWindow); } \
  NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override { return _to GetPrincipal(aPrincipal); } \
  NS_IMETHOD GetServiceWorkerID(uint32_t *aServiceWorkerID) override { return _to GetServiceWorkerID(aServiceWorkerID); } \
  NS_IMETHOD Initialize(const nsAString & url) override { return _to Initialize(url); } \
  NS_IMETHOD PostMessageMoz(const nsAString & message) override { return _to PostMessageMoz(message); } \
  NS_IMETHOD AddListener(nsIWorkerDebuggerListener *listener) override { return _to AddListener(listener); } \
  NS_IMETHOD RemoveListener(nsIWorkerDebuggerListener *listener) override { return _to RemoveListener(listener); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIWORKERDEBUGGER(_to) \
  NS_IMETHOD GetIsClosed(bool *aIsClosed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsClosed(aIsClosed); } \
  NS_IMETHOD GetIsChrome(bool *aIsChrome) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsChrome(aIsChrome); } \
  NS_IMETHOD GetIsInitialized(bool *aIsInitialized) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsInitialized(aIsInitialized); } \
  NS_IMETHOD GetParent(nsIWorkerDebugger * *aParent) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParent(aParent); } \
  NS_IMETHOD GetType(uint32_t *aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  NS_IMETHOD GetUrl(nsAString & aUrl) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUrl(aUrl); } \
  NS_IMETHOD GetWindow(mozIDOMWindow * *aWindow) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindow(aWindow); } \
  NS_IMETHOD GetPrincipal(nsIPrincipal * *aPrincipal) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrincipal(aPrincipal); } \
  NS_IMETHOD GetServiceWorkerID(uint32_t *aServiceWorkerID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServiceWorkerID(aServiceWorkerID); } \
  NS_IMETHOD Initialize(const nsAString & url) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Initialize(url); } \
  NS_IMETHOD PostMessageMoz(const nsAString & message) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PostMessageMoz(message); } \
  NS_IMETHOD AddListener(nsIWorkerDebuggerListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddListener(listener); } \
  NS_IMETHOD RemoveListener(nsIWorkerDebuggerListener *listener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveListener(listener); } 

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

/* Header file */
class nsWorkerDebugger : public nsIWorkerDebugger
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIWORKERDEBUGGER

  nsWorkerDebugger();

private:
  ~nsWorkerDebugger();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsWorkerDebugger, nsIWorkerDebugger)

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

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

/* readonly attribute bool isClosed; */
NS_IMETHODIMP nsWorkerDebugger::GetIsClosed(bool *aIsClosed)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute bool isChrome; */
NS_IMETHODIMP nsWorkerDebugger::GetIsChrome(bool *aIsChrome)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute bool isInitialized; */
NS_IMETHODIMP nsWorkerDebugger::GetIsInitialized(bool *aIsInitialized)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIWorkerDebugger parent; */
NS_IMETHODIMP nsWorkerDebugger::GetParent(nsIWorkerDebugger * *aParent)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long type; */
NS_IMETHODIMP nsWorkerDebugger::GetType(uint32_t *aType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute DOMString url; */
NS_IMETHODIMP nsWorkerDebugger::GetUrl(nsAString & aUrl)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute mozIDOMWindow window; */
NS_IMETHODIMP nsWorkerDebugger::GetWindow(mozIDOMWindow * *aWindow)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIPrincipal principal; */
NS_IMETHODIMP nsWorkerDebugger::GetPrincipal(nsIPrincipal * *aPrincipal)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute unsigned long serviceWorkerID; */
NS_IMETHODIMP nsWorkerDebugger::GetServiceWorkerID(uint32_t *aServiceWorkerID)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void initialize (in DOMString url); */
NS_IMETHODIMP nsWorkerDebugger::Initialize(const nsAString & url)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [binaryname(PostMessageMoz)] void postMessage (in DOMString message); */
NS_IMETHODIMP nsWorkerDebugger::PostMessageMoz(const nsAString & message)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addListener (in nsIWorkerDebuggerListener listener); */
NS_IMETHODIMP nsWorkerDebugger::AddListener(nsIWorkerDebuggerListener *listener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeListener (in nsIWorkerDebuggerListener listener); */
NS_IMETHODIMP nsWorkerDebugger::RemoveListener(nsIWorkerDebuggerListener *listener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIWorkerDebugger_h__ */