This file is indexed.

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

#ifndef __gen_nsISHistory_h__
#define __gen_nsISHistory_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 nsISHEntry; /* forward declaration */

class nsISHistoryListener; /* forward declaration */

class nsISimpleEnumerator; /* forward declaration */

class nsIPartialSHistoryListener; /* forward declaration */

#define NS_SHISTORY_CID \
{0x7b807041, 0xe60a, 0x4384, {0x93, 0x5f, 0xaf, 0x30, 0x61, 0xd8, 0xb8, 0x15}}
#define NS_SHISTORY_CONTRACTID "@mozilla.org/browser/shistory;1"

/* starting interface:    nsISHistory */
#define NS_ISHISTORY_IID_STR "7b807041-e60a-4384-935f-af3061d8b815"

#define NS_ISHISTORY_IID \
  {0x7b807041, 0xe60a, 0x4384, \
    { 0x93, 0x5f, 0xaf, 0x30, 0x61, 0xd8, 0xb8, 0x15 }}

class NS_NO_VTABLE nsISHistory : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISHISTORY_IID)

  /* readonly attribute bool isPartial; */
  NS_IMETHOD GetIsPartial(bool *aIsPartial) = 0;

  /* readonly attribute long count; */
  NS_IMETHOD GetCount(int32_t *aCount) = 0;

  /* readonly attribute long globalCount; */
  NS_IMETHOD GetGlobalCount(int32_t *aGlobalCount) = 0;

  /* readonly attribute long globalIndexOffset; */
  NS_IMETHOD GetGlobalIndexOffset(int32_t *aGlobalIndexOffset) = 0;

  /* readonly attribute long index; */
  NS_IMETHOD GetIndex(int32_t *aIndex) = 0;

  /* readonly attribute long requestedIndex; */
  NS_IMETHOD GetRequestedIndex(int32_t *aRequestedIndex) = 0;

  /* attribute long maxLength; */
  NS_IMETHOD GetMaxLength(int32_t *aMaxLength) = 0;
  NS_IMETHOD SetMaxLength(int32_t aMaxLength) = 0;

  /* nsISHEntry getEntryAtIndex (in long index, in boolean modifyIndex); */
  NS_IMETHOD GetEntryAtIndex(int32_t index, bool modifyIndex, nsISHEntry * *_retval) = 0;

  /* void PurgeHistory (in long numEntries); */
  NS_IMETHOD PurgeHistory(int32_t numEntries) = 0;

  /* void addSHistoryListener (in nsISHistoryListener aListener); */
  NS_IMETHOD AddSHistoryListener(nsISHistoryListener *aListener) = 0;

  /* void removeSHistoryListener (in nsISHistoryListener aListener); */
  NS_IMETHOD RemoveSHistoryListener(nsISHistoryListener *aListener) = 0;

  /* void setPartialSHistoryListener (in nsIPartialSHistoryListener aListener); */
  NS_IMETHOD SetPartialSHistoryListener(nsIPartialSHistoryListener *aListener) = 0;

  /* readonly attribute nsISimpleEnumerator SHistoryEnumerator; */
  NS_IMETHOD GetSHistoryEnumerator(nsISimpleEnumerator * *aSHistoryEnumerator) = 0;

  /* void reloadCurrentEntry (); */
  NS_IMETHOD ReloadCurrentEntry(void) = 0;

  /* long getIndexOfEntry (in nsISHEntry aEntry); */
  NS_IMETHOD GetIndexOfEntry(nsISHEntry *aEntry, int32_t *_retval) = 0;

  /* void onPartialSessionHistoryActive (in long globalLength, in long targetIndex); */
  NS_IMETHOD OnPartialSessionHistoryActive(int32_t globalLength, int32_t targetIndex) = 0;

  /* void onPartialSessionHistoryDeactive (); */
  NS_IMETHOD OnPartialSessionHistoryDeactive(void) = 0;

  /* void onAttachGroupedSessionHistory (in long offset); */
  NS_IMETHOD OnAttachGroupedSessionHistory(int32_t offset) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsISHistory, NS_ISHISTORY_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISHISTORY \
  NS_IMETHOD GetIsPartial(bool *aIsPartial) override; \
  NS_IMETHOD GetCount(int32_t *aCount) override; \
  NS_IMETHOD GetGlobalCount(int32_t *aGlobalCount) override; \
  NS_IMETHOD GetGlobalIndexOffset(int32_t *aGlobalIndexOffset) override; \
  NS_IMETHOD GetIndex(int32_t *aIndex) override; \
  NS_IMETHOD GetRequestedIndex(int32_t *aRequestedIndex) override; \
  NS_IMETHOD GetMaxLength(int32_t *aMaxLength) override; \
  NS_IMETHOD SetMaxLength(int32_t aMaxLength) override; \
  NS_IMETHOD GetEntryAtIndex(int32_t index, bool modifyIndex, nsISHEntry * *_retval) override; \
  NS_IMETHOD PurgeHistory(int32_t numEntries) override; \
  NS_IMETHOD AddSHistoryListener(nsISHistoryListener *aListener) override; \
  NS_IMETHOD RemoveSHistoryListener(nsISHistoryListener *aListener) override; \
  NS_IMETHOD SetPartialSHistoryListener(nsIPartialSHistoryListener *aListener) override; \
  NS_IMETHOD GetSHistoryEnumerator(nsISimpleEnumerator * *aSHistoryEnumerator) override; \
  NS_IMETHOD ReloadCurrentEntry(void) override; \
  NS_IMETHOD GetIndexOfEntry(nsISHEntry *aEntry, int32_t *_retval) override; \
  NS_IMETHOD OnPartialSessionHistoryActive(int32_t globalLength, int32_t targetIndex) override; \
  NS_IMETHOD OnPartialSessionHistoryDeactive(void) override; \
  NS_IMETHOD OnAttachGroupedSessionHistory(int32_t offset) 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_NSISHISTORY \
  NS_METHOD GetIsPartial(bool *aIsPartial); \
  NS_METHOD GetCount(int32_t *aCount); \
  NS_METHOD GetGlobalCount(int32_t *aGlobalCount); \
  NS_METHOD GetGlobalIndexOffset(int32_t *aGlobalIndexOffset); \
  NS_METHOD GetIndex(int32_t *aIndex); \
  NS_METHOD GetRequestedIndex(int32_t *aRequestedIndex); \
  NS_METHOD GetMaxLength(int32_t *aMaxLength); \
  NS_METHOD SetMaxLength(int32_t aMaxLength); \
  NS_METHOD GetEntryAtIndex(int32_t index, bool modifyIndex, nsISHEntry * *_retval); \
  NS_METHOD PurgeHistory(int32_t numEntries); \
  NS_METHOD AddSHistoryListener(nsISHistoryListener *aListener); \
  NS_METHOD RemoveSHistoryListener(nsISHistoryListener *aListener); \
  NS_METHOD SetPartialSHistoryListener(nsIPartialSHistoryListener *aListener); \
  NS_METHOD GetSHistoryEnumerator(nsISimpleEnumerator * *aSHistoryEnumerator); \
  NS_METHOD ReloadCurrentEntry(void); \
  NS_METHOD GetIndexOfEntry(nsISHEntry *aEntry, int32_t *_retval); \
  NS_METHOD OnPartialSessionHistoryActive(int32_t globalLength, int32_t targetIndex); \
  NS_METHOD OnPartialSessionHistoryDeactive(void); \
  NS_METHOD OnAttachGroupedSessionHistory(int32_t offset); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISHISTORY(_to) \
  NS_IMETHOD GetIsPartial(bool *aIsPartial) override { return _to GetIsPartial(aIsPartial); } \
  NS_IMETHOD GetCount(int32_t *aCount) override { return _to GetCount(aCount); } \
  NS_IMETHOD GetGlobalCount(int32_t *aGlobalCount) override { return _to GetGlobalCount(aGlobalCount); } \
  NS_IMETHOD GetGlobalIndexOffset(int32_t *aGlobalIndexOffset) override { return _to GetGlobalIndexOffset(aGlobalIndexOffset); } \
  NS_IMETHOD GetIndex(int32_t *aIndex) override { return _to GetIndex(aIndex); } \
  NS_IMETHOD GetRequestedIndex(int32_t *aRequestedIndex) override { return _to GetRequestedIndex(aRequestedIndex); } \
  NS_IMETHOD GetMaxLength(int32_t *aMaxLength) override { return _to GetMaxLength(aMaxLength); } \
  NS_IMETHOD SetMaxLength(int32_t aMaxLength) override { return _to SetMaxLength(aMaxLength); } \
  NS_IMETHOD GetEntryAtIndex(int32_t index, bool modifyIndex, nsISHEntry * *_retval) override { return _to GetEntryAtIndex(index, modifyIndex, _retval); } \
  NS_IMETHOD PurgeHistory(int32_t numEntries) override { return _to PurgeHistory(numEntries); } \
  NS_IMETHOD AddSHistoryListener(nsISHistoryListener *aListener) override { return _to AddSHistoryListener(aListener); } \
  NS_IMETHOD RemoveSHistoryListener(nsISHistoryListener *aListener) override { return _to RemoveSHistoryListener(aListener); } \
  NS_IMETHOD SetPartialSHistoryListener(nsIPartialSHistoryListener *aListener) override { return _to SetPartialSHistoryListener(aListener); } \
  NS_IMETHOD GetSHistoryEnumerator(nsISimpleEnumerator * *aSHistoryEnumerator) override { return _to GetSHistoryEnumerator(aSHistoryEnumerator); } \
  NS_IMETHOD ReloadCurrentEntry(void) override { return _to ReloadCurrentEntry(); } \
  NS_IMETHOD GetIndexOfEntry(nsISHEntry *aEntry, int32_t *_retval) override { return _to GetIndexOfEntry(aEntry, _retval); } \
  NS_IMETHOD OnPartialSessionHistoryActive(int32_t globalLength, int32_t targetIndex) override { return _to OnPartialSessionHistoryActive(globalLength, targetIndex); } \
  NS_IMETHOD OnPartialSessionHistoryDeactive(void) override { return _to OnPartialSessionHistoryDeactive(); } \
  NS_IMETHOD OnAttachGroupedSessionHistory(int32_t offset) override { return _to OnAttachGroupedSessionHistory(offset); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISHISTORY(_to) \
  NS_IMETHOD GetIsPartial(bool *aIsPartial) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsPartial(aIsPartial); } \
  NS_IMETHOD GetCount(int32_t *aCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCount(aCount); } \
  NS_IMETHOD GetGlobalCount(int32_t *aGlobalCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobalCount(aGlobalCount); } \
  NS_IMETHOD GetGlobalIndexOffset(int32_t *aGlobalIndexOffset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobalIndexOffset(aGlobalIndexOffset); } \
  NS_IMETHOD GetIndex(int32_t *aIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndex(aIndex); } \
  NS_IMETHOD GetRequestedIndex(int32_t *aRequestedIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestedIndex(aRequestedIndex); } \
  NS_IMETHOD GetMaxLength(int32_t *aMaxLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaxLength(aMaxLength); } \
  NS_IMETHOD SetMaxLength(int32_t aMaxLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMaxLength(aMaxLength); } \
  NS_IMETHOD GetEntryAtIndex(int32_t index, bool modifyIndex, nsISHEntry * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntryAtIndex(index, modifyIndex, _retval); } \
  NS_IMETHOD PurgeHistory(int32_t numEntries) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PurgeHistory(numEntries); } \
  NS_IMETHOD AddSHistoryListener(nsISHistoryListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddSHistoryListener(aListener); } \
  NS_IMETHOD RemoveSHistoryListener(nsISHistoryListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveSHistoryListener(aListener); } \
  NS_IMETHOD SetPartialSHistoryListener(nsIPartialSHistoryListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPartialSHistoryListener(aListener); } \
  NS_IMETHOD GetSHistoryEnumerator(nsISimpleEnumerator * *aSHistoryEnumerator) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSHistoryEnumerator(aSHistoryEnumerator); } \
  NS_IMETHOD ReloadCurrentEntry(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ReloadCurrentEntry(); } \
  NS_IMETHOD GetIndexOfEntry(nsISHEntry *aEntry, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexOfEntry(aEntry, _retval); } \
  NS_IMETHOD OnPartialSessionHistoryActive(int32_t globalLength, int32_t targetIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnPartialSessionHistoryActive(globalLength, targetIndex); } \
  NS_IMETHOD OnPartialSessionHistoryDeactive(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnPartialSessionHistoryDeactive(); } \
  NS_IMETHOD OnAttachGroupedSessionHistory(int32_t offset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnAttachGroupedSessionHistory(offset); } 

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

/* Header file */
class nsSHistory : public nsISHistory
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISHISTORY

  nsSHistory();

private:
  ~nsSHistory();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsSHistory, nsISHistory)

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

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

/* readonly attribute bool isPartial; */
NS_IMETHODIMP nsSHistory::GetIsPartial(bool *aIsPartial)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute long count; */
NS_IMETHODIMP nsSHistory::GetCount(int32_t *aCount)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute long globalCount; */
NS_IMETHODIMP nsSHistory::GetGlobalCount(int32_t *aGlobalCount)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute long globalIndexOffset; */
NS_IMETHODIMP nsSHistory::GetGlobalIndexOffset(int32_t *aGlobalIndexOffset)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute long index; */
NS_IMETHODIMP nsSHistory::GetIndex(int32_t *aIndex)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute long requestedIndex; */
NS_IMETHODIMP nsSHistory::GetRequestedIndex(int32_t *aRequestedIndex)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute long maxLength; */
NS_IMETHODIMP nsSHistory::GetMaxLength(int32_t *aMaxLength)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsSHistory::SetMaxLength(int32_t aMaxLength)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsISHEntry getEntryAtIndex (in long index, in boolean modifyIndex); */
NS_IMETHODIMP nsSHistory::GetEntryAtIndex(int32_t index, bool modifyIndex, nsISHEntry * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void PurgeHistory (in long numEntries); */
NS_IMETHODIMP nsSHistory::PurgeHistory(int32_t numEntries)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addSHistoryListener (in nsISHistoryListener aListener); */
NS_IMETHODIMP nsSHistory::AddSHistoryListener(nsISHistoryListener *aListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeSHistoryListener (in nsISHistoryListener aListener); */
NS_IMETHODIMP nsSHistory::RemoveSHistoryListener(nsISHistoryListener *aListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void setPartialSHistoryListener (in nsIPartialSHistoryListener aListener); */
NS_IMETHODIMP nsSHistory::SetPartialSHistoryListener(nsIPartialSHistoryListener *aListener)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsISimpleEnumerator SHistoryEnumerator; */
NS_IMETHODIMP nsSHistory::GetSHistoryEnumerator(nsISimpleEnumerator * *aSHistoryEnumerator)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void reloadCurrentEntry (); */
NS_IMETHODIMP nsSHistory::ReloadCurrentEntry()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* long getIndexOfEntry (in nsISHEntry aEntry); */
NS_IMETHODIMP nsSHistory::GetIndexOfEntry(nsISHEntry *aEntry, int32_t *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onPartialSessionHistoryActive (in long globalLength, in long targetIndex); */
NS_IMETHODIMP nsSHistory::OnPartialSessionHistoryActive(int32_t globalLength, int32_t targetIndex)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onPartialSessionHistoryDeactive (); */
NS_IMETHODIMP nsSHistory::OnPartialSessionHistoryDeactive()
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onAttachGroupedSessionHistory (in long offset); */
NS_IMETHODIMP nsSHistory::OnAttachGroupedSessionHistory(int32_t offset)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsISHistory_h__ */