This file is indexed.

/usr/include/firefox-esr-52/nsINativeOSFileInternals.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
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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsINativeOSFileInternals.idl
 */

#ifndef __gen_nsINativeOSFileInternals_h__
#define __gen_nsINativeOSFileInternals_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.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

/* starting interface:    nsINativeOSFileResult */
#define NS_INATIVEOSFILERESULT_IID_STR "08b4cf29-3d65-4e79-b522-a694c322ed07"

#define NS_INATIVEOSFILERESULT_IID \
  {0x08b4cf29, 0x3d65, 0x4e79, \
    { 0xb5, 0x22, 0xa6, 0x94, 0xc3, 0x22, 0xed, 0x07 }}

class NS_NO_VTABLE nsINativeOSFileResult : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_INATIVEOSFILERESULT_IID)

  /* [implicit_jscontext] readonly attribute jsval result; */
  NS_IMETHOD GetResult(JSContext* cx, JS::MutableHandleValue aResult) = 0;

  /* readonly attribute double dispatchDurationMS; */
  NS_IMETHOD GetDispatchDurationMS(double *aDispatchDurationMS) = 0;

  /* readonly attribute double executionDurationMS; */
  NS_IMETHOD GetExecutionDurationMS(double *aExecutionDurationMS) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsINativeOSFileResult, NS_INATIVEOSFILERESULT_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSINATIVEOSFILERESULT \
  NS_IMETHOD GetResult(JSContext* cx, JS::MutableHandleValue aResult) override; \
  NS_IMETHOD GetDispatchDurationMS(double *aDispatchDurationMS) override; \
  NS_IMETHOD GetExecutionDurationMS(double *aExecutionDurationMS) 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_NSINATIVEOSFILERESULT \
  NS_METHOD GetResult(JSContext* cx, JS::MutableHandleValue aResult); \
  NS_METHOD GetDispatchDurationMS(double *aDispatchDurationMS); \
  NS_METHOD GetExecutionDurationMS(double *aExecutionDurationMS); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSINATIVEOSFILERESULT(_to) \
  NS_IMETHOD GetResult(JSContext* cx, JS::MutableHandleValue aResult) override { return _to GetResult(cx, aResult); } \
  NS_IMETHOD GetDispatchDurationMS(double *aDispatchDurationMS) override { return _to GetDispatchDurationMS(aDispatchDurationMS); } \
  NS_IMETHOD GetExecutionDurationMS(double *aExecutionDurationMS) override { return _to GetExecutionDurationMS(aExecutionDurationMS); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSINATIVEOSFILERESULT(_to) \
  NS_IMETHOD GetResult(JSContext* cx, JS::MutableHandleValue aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(cx, aResult); } \
  NS_IMETHOD GetDispatchDurationMS(double *aDispatchDurationMS) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDispatchDurationMS(aDispatchDurationMS); } \
  NS_IMETHOD GetExecutionDurationMS(double *aExecutionDurationMS) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExecutionDurationMS(aExecutionDurationMS); } 

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

/* Header file */
class nsNativeOSFileResult : public nsINativeOSFileResult
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSINATIVEOSFILERESULT

  nsNativeOSFileResult();

private:
  ~nsNativeOSFileResult();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsNativeOSFileResult, nsINativeOSFileResult)

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

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

/* [implicit_jscontext] readonly attribute jsval result; */
NS_IMETHODIMP nsNativeOSFileResult::GetResult(JSContext* cx, JS::MutableHandleValue aResult)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute double dispatchDurationMS; */
NS_IMETHODIMP nsNativeOSFileResult::GetDispatchDurationMS(double *aDispatchDurationMS)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute double executionDurationMS; */
NS_IMETHODIMP nsNativeOSFileResult::GetExecutionDurationMS(double *aExecutionDurationMS)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsINativeOSFileSuccessCallback */
#define NS_INATIVEOSFILESUCCESSCALLBACK_IID_STR "2c1922ca-ca1b-4099-8b61-ec23cff49412"

#define NS_INATIVEOSFILESUCCESSCALLBACK_IID \
  {0x2c1922ca, 0xca1b, 0x4099, \
    { 0x8b, 0x61, 0xec, 0x23, 0xcf, 0xf4, 0x94, 0x12 }}

class NS_NO_VTABLE nsINativeOSFileSuccessCallback : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_INATIVEOSFILESUCCESSCALLBACK_IID)

  /* void complete (in nsINativeOSFileResult result); */
  NS_IMETHOD Complete(nsINativeOSFileResult *result) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsINativeOSFileSuccessCallback, NS_INATIVEOSFILESUCCESSCALLBACK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSINATIVEOSFILESUCCESSCALLBACK \
  NS_IMETHOD Complete(nsINativeOSFileResult *result) 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_NSINATIVEOSFILESUCCESSCALLBACK \
  NS_METHOD Complete(nsINativeOSFileResult *result); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSINATIVEOSFILESUCCESSCALLBACK(_to) \
  NS_IMETHOD Complete(nsINativeOSFileResult *result) override { return _to Complete(result); } 

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

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

/* Header file */
class nsNativeOSFileSuccessCallback : public nsINativeOSFileSuccessCallback
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSINATIVEOSFILESUCCESSCALLBACK

  nsNativeOSFileSuccessCallback();

private:
  ~nsNativeOSFileSuccessCallback();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsNativeOSFileSuccessCallback, nsINativeOSFileSuccessCallback)

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

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

/* void complete (in nsINativeOSFileResult result); */
NS_IMETHODIMP nsNativeOSFileSuccessCallback::Complete(nsINativeOSFileResult *result)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsINativeOSFileErrorCallback */
#define NS_INATIVEOSFILEERRORCALLBACK_IID_STR "f612e0fc-6736-4d24-aa50-fd661b3b40b6"

#define NS_INATIVEOSFILEERRORCALLBACK_IID \
  {0xf612e0fc, 0x6736, 0x4d24, \
    { 0xaa, 0x50, 0xfd, 0x66, 0x1b, 0x3b, 0x40, 0xb6 }}

class NS_NO_VTABLE nsINativeOSFileErrorCallback : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_INATIVEOSFILEERRORCALLBACK_IID)

  /* void complete (in ACString operation, in long OSstatus); */
  NS_IMETHOD Complete(const nsACString & operation, int32_t OSstatus) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsINativeOSFileErrorCallback, NS_INATIVEOSFILEERRORCALLBACK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSINATIVEOSFILEERRORCALLBACK \
  NS_IMETHOD Complete(const nsACString & operation, int32_t OSstatus) 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_NSINATIVEOSFILEERRORCALLBACK \
  NS_METHOD Complete(const nsACString & operation, int32_t OSstatus); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSINATIVEOSFILEERRORCALLBACK(_to) \
  NS_IMETHOD Complete(const nsACString & operation, int32_t OSstatus) override { return _to Complete(operation, OSstatus); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSINATIVEOSFILEERRORCALLBACK(_to) \
  NS_IMETHOD Complete(const nsACString & operation, int32_t OSstatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Complete(operation, OSstatus); } 

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

/* Header file */
class nsNativeOSFileErrorCallback : public nsINativeOSFileErrorCallback
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSINATIVEOSFILEERRORCALLBACK

  nsNativeOSFileErrorCallback();

private:
  ~nsNativeOSFileErrorCallback();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsNativeOSFileErrorCallback, nsINativeOSFileErrorCallback)

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

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

/* void complete (in ACString operation, in long OSstatus); */
NS_IMETHODIMP nsNativeOSFileErrorCallback::Complete(const nsACString & operation, int32_t OSstatus)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsINativeOSFileInternalsService */
#define NS_INATIVEOSFILEINTERNALSSERVICE_IID_STR "913362ad-1526-4623-9e6b-a2eb08afbbb9"

#define NS_INATIVEOSFILEINTERNALSSERVICE_IID \
  {0x913362ad, 0x1526, 0x4623, \
    { 0x9e, 0x6b, 0xa2, 0xeb, 0x08, 0xaf, 0xbb, 0xb9 }}

class NS_NO_VTABLE nsINativeOSFileInternalsService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_INATIVEOSFILEINTERNALSSERVICE_IID)

  /* [implicit_jscontext] void read (in AString path, in jsval options, in nsINativeOSFileSuccessCallback onSuccess, in nsINativeOSFileErrorCallback onError); */
  NS_IMETHOD Read(const nsAString & path, JS::HandleValue options, nsINativeOSFileSuccessCallback *onSuccess, nsINativeOSFileErrorCallback *onError, JSContext* cx) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsINativeOSFileInternalsService, NS_INATIVEOSFILEINTERNALSSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSINATIVEOSFILEINTERNALSSERVICE \
  NS_IMETHOD Read(const nsAString & path, JS::HandleValue options, nsINativeOSFileSuccessCallback *onSuccess, nsINativeOSFileErrorCallback *onError, JSContext* cx) 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_NSINATIVEOSFILEINTERNALSSERVICE \
  NS_METHOD Read(const nsAString & path, JS::HandleValue options, nsINativeOSFileSuccessCallback *onSuccess, nsINativeOSFileErrorCallback *onError, JSContext* cx); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSINATIVEOSFILEINTERNALSSERVICE(_to) \
  NS_IMETHOD Read(const nsAString & path, JS::HandleValue options, nsINativeOSFileSuccessCallback *onSuccess, nsINativeOSFileErrorCallback *onError, JSContext* cx) override { return _to Read(path, options, onSuccess, onError, cx); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSINATIVEOSFILEINTERNALSSERVICE(_to) \
  NS_IMETHOD Read(const nsAString & path, JS::HandleValue options, nsINativeOSFileSuccessCallback *onSuccess, nsINativeOSFileErrorCallback *onError, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Read(path, options, onSuccess, onError, cx); } 

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

/* Header file */
class nsNativeOSFileInternalsService : public nsINativeOSFileInternalsService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSINATIVEOSFILEINTERNALSSERVICE

  nsNativeOSFileInternalsService();

private:
  ~nsNativeOSFileInternalsService();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsNativeOSFileInternalsService, nsINativeOSFileInternalsService)

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

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

/* [implicit_jscontext] void read (in AString path, in jsval options, in nsINativeOSFileSuccessCallback onSuccess, in nsINativeOSFileErrorCallback onError); */
NS_IMETHODIMP nsNativeOSFileInternalsService::Read(const nsAString & path, JS::HandleValue options, nsINativeOSFileSuccessCallback *onSuccess, nsINativeOSFileErrorCallback *onError, JSContext* cx)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#define NATIVE_OSFILE_INTERNALS_SERVICE_CID {0x63A69303,0x8A64,0x45A9,{0x84, 0x8C, 0xD4, 0xE2, 0x79, 0x27, 0x94, 0xE6}}
#define NATIVE_OSFILE_INTERNALS_SERVICE_CONTRACTID "@mozilla.org/toolkit/osfile/native-internals;1"

#endif /* __gen_nsINativeOSFileInternals_h__ */