This file is indexed.

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

#ifndef __gen_nsIRDFXMLSink_h__
#define __gen_nsIRDFXMLSink_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 nsIAtom;
class nsString;
class nsIRDFXMLSink; /* forward declaration */


/* starting interface:    nsIRDFXMLSinkObserver */
#define NS_IRDFXMLSINKOBSERVER_IID_STR "eb1a5d30-ab33-11d2-8ec6-00805f29f370"

#define NS_IRDFXMLSINKOBSERVER_IID \
  {0xeb1a5d30, 0xab33, 0x11d2, \
    { 0x8e, 0xc6, 0x00, 0x80, 0x5f, 0x29, 0xf3, 0x70 }}

class NS_NO_VTABLE nsIRDFXMLSinkObserver : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFXMLSINKOBSERVER_IID)

  /* void onBeginLoad (in nsIRDFXMLSink aSink); */
  NS_IMETHOD OnBeginLoad(nsIRDFXMLSink *aSink) = 0;

  /* void onInterrupt (in nsIRDFXMLSink aSink); */
  NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) = 0;

  /* void onResume (in nsIRDFXMLSink aSink); */
  NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) = 0;

  /* void onEndLoad (in nsIRDFXMLSink aSink); */
  NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) = 0;

  /* void onError (in nsIRDFXMLSink aSink, in nsresult aStatus, in wstring aErrorMsg); */
  NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFXMLSinkObserver, NS_IRDFXMLSINKOBSERVER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIRDFXMLSINKOBSERVER \
  NS_IMETHOD OnBeginLoad(nsIRDFXMLSink *aSink) override; \
  NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) override; \
  NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) override; \
  NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) override; \
  NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg) 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_NSIRDFXMLSINKOBSERVER \
  NS_METHOD OnBeginLoad(nsIRDFXMLSink *aSink); \
  NS_METHOD OnInterrupt(nsIRDFXMLSink *aSink); \
  NS_METHOD OnResume(nsIRDFXMLSink *aSink); \
  NS_METHOD OnEndLoad(nsIRDFXMLSink *aSink); \
  NS_METHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIRDFXMLSINKOBSERVER(_to) \
  NS_IMETHOD OnBeginLoad(nsIRDFXMLSink *aSink) override { return _to OnBeginLoad(aSink); } \
  NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) override { return _to OnInterrupt(aSink); } \
  NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) override { return _to OnResume(aSink); } \
  NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) override { return _to OnEndLoad(aSink); } \
  NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg) override { return _to OnError(aSink, aStatus, aErrorMsg); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIRDFXMLSINKOBSERVER(_to) \
  NS_IMETHOD OnBeginLoad(nsIRDFXMLSink *aSink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnBeginLoad(aSink); } \
  NS_IMETHOD OnInterrupt(nsIRDFXMLSink *aSink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnInterrupt(aSink); } \
  NS_IMETHOD OnResume(nsIRDFXMLSink *aSink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnResume(aSink); } \
  NS_IMETHOD OnEndLoad(nsIRDFXMLSink *aSink) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnEndLoad(aSink); } \
  NS_IMETHOD OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(aSink, aStatus, aErrorMsg); } 

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

/* Header file */
class nsRDFXMLSinkObserver : public nsIRDFXMLSinkObserver
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIRDFXMLSINKOBSERVER

  nsRDFXMLSinkObserver();

private:
  ~nsRDFXMLSinkObserver();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsRDFXMLSinkObserver, nsIRDFXMLSinkObserver)

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

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

/* void onBeginLoad (in nsIRDFXMLSink aSink); */
NS_IMETHODIMP nsRDFXMLSinkObserver::OnBeginLoad(nsIRDFXMLSink *aSink)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onInterrupt (in nsIRDFXMLSink aSink); */
NS_IMETHODIMP nsRDFXMLSinkObserver::OnInterrupt(nsIRDFXMLSink *aSink)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onResume (in nsIRDFXMLSink aSink); */
NS_IMETHODIMP nsRDFXMLSinkObserver::OnResume(nsIRDFXMLSink *aSink)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onEndLoad (in nsIRDFXMLSink aSink); */
NS_IMETHODIMP nsRDFXMLSinkObserver::OnEndLoad(nsIRDFXMLSink *aSink)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onError (in nsIRDFXMLSink aSink, in nsresult aStatus, in wstring aErrorMsg); */
NS_IMETHODIMP nsRDFXMLSinkObserver::OnError(nsIRDFXMLSink *aSink, nsresult aStatus, const char16_t * aErrorMsg)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIRDFXMLSink */
#define NS_IRDFXMLSINK_IID_STR "eb1a5d31-ab33-11d2-8ec6-00805f29f370"

#define NS_IRDFXMLSINK_IID \
  {0xeb1a5d31, 0xab33, 0x11d2, \
    { 0x8e, 0xc6, 0x00, 0x80, 0x5f, 0x29, 0xf3, 0x70 }}

class NS_NO_VTABLE nsIRDFXMLSink : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IRDFXMLSINK_IID)

  /* attribute boolean readOnly; */
  NS_IMETHOD GetReadOnly(bool *aReadOnly) = 0;
  NS_IMETHOD SetReadOnly(bool aReadOnly) = 0;

  /* void beginLoad (); */
  NS_IMETHOD BeginLoad(void) = 0;

  /* void interrupt (); */
  NS_IMETHOD Interrupt(void) = 0;

  /* void resume (); */
  NS_IMETHOD Resume(void) = 0;

  /* void endLoad (); */
  NS_IMETHOD EndLoad(void) = 0;

  /* [noscript] void addNameSpace (in nsIAtomPtr aPrefix, [const] in nsStringRef aURI); */
  NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI) = 0;

  /* void addXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver); */
  NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) = 0;

  /* void removeXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver); */
  NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIRDFXMLSink, NS_IRDFXMLSINK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIRDFXMLSINK \
  NS_IMETHOD GetReadOnly(bool *aReadOnly) override; \
  NS_IMETHOD SetReadOnly(bool aReadOnly) override; \
  NS_IMETHOD BeginLoad(void) override; \
  NS_IMETHOD Interrupt(void) override; \
  NS_IMETHOD Resume(void) override; \
  NS_IMETHOD EndLoad(void) override; \
  NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI) override; \
  NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) override; \
  NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) 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_NSIRDFXMLSINK \
  NS_METHOD GetReadOnly(bool *aReadOnly); \
  NS_METHOD SetReadOnly(bool aReadOnly); \
  NS_METHOD BeginLoad(void); \
  NS_METHOD Interrupt(void); \
  NS_METHOD Resume(void); \
  NS_METHOD EndLoad(void); \
  NS_METHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI); \
  NS_METHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver); \
  NS_METHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIRDFXMLSINK(_to) \
  NS_IMETHOD GetReadOnly(bool *aReadOnly) override { return _to GetReadOnly(aReadOnly); } \
  NS_IMETHOD SetReadOnly(bool aReadOnly) override { return _to SetReadOnly(aReadOnly); } \
  NS_IMETHOD BeginLoad(void) override { return _to BeginLoad(); } \
  NS_IMETHOD Interrupt(void) override { return _to Interrupt(); } \
  NS_IMETHOD Resume(void) override { return _to Resume(); } \
  NS_IMETHOD EndLoad(void) override { return _to EndLoad(); } \
  NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI) override { return _to AddNameSpace(aPrefix, aURI); } \
  NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) override { return _to AddXMLSinkObserver(aObserver); } \
  NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) override { return _to RemoveXMLSinkObserver(aObserver); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIRDFXMLSINK(_to) \
  NS_IMETHOD GetReadOnly(bool *aReadOnly) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadOnly(aReadOnly); } \
  NS_IMETHOD SetReadOnly(bool aReadOnly) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReadOnly(aReadOnly); } \
  NS_IMETHOD BeginLoad(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginLoad(); } \
  NS_IMETHOD Interrupt(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Interrupt(); } \
  NS_IMETHOD Resume(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Resume(); } \
  NS_IMETHOD EndLoad(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EndLoad(); } \
  NS_IMETHOD AddNameSpace(nsIAtom *aPrefix, const nsString & aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddNameSpace(aPrefix, aURI); } \
  NS_IMETHOD AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddXMLSinkObserver(aObserver); } \
  NS_IMETHOD RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveXMLSinkObserver(aObserver); } 

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

/* Header file */
class nsRDFXMLSink : public nsIRDFXMLSink
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIRDFXMLSINK

  nsRDFXMLSink();

private:
  ~nsRDFXMLSink();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsRDFXMLSink, nsIRDFXMLSink)

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

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

/* attribute boolean readOnly; */
NS_IMETHODIMP nsRDFXMLSink::GetReadOnly(bool *aReadOnly)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsRDFXMLSink::SetReadOnly(bool aReadOnly)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void beginLoad (); */
NS_IMETHODIMP nsRDFXMLSink::BeginLoad()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void interrupt (); */
NS_IMETHODIMP nsRDFXMLSink::Interrupt()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void resume (); */
NS_IMETHODIMP nsRDFXMLSink::Resume()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void endLoad (); */
NS_IMETHODIMP nsRDFXMLSink::EndLoad()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] void addNameSpace (in nsIAtomPtr aPrefix, [const] in nsStringRef aURI); */
NS_IMETHODIMP nsRDFXMLSink::AddNameSpace(nsIAtom *aPrefix, const nsString & aURI)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver); */
NS_IMETHODIMP nsRDFXMLSink::AddXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeXMLSinkObserver (in nsIRDFXMLSinkObserver aObserver); */
NS_IMETHODIMP nsRDFXMLSink::RemoveXMLSinkObserver(nsIRDFXMLSinkObserver *aObserver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIRDFXMLSink_h__ */