This file is indexed.

/usr/include/thunderbird-11.0.1/nsIIDBObjectStore.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.

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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mozilla/dom/indexedDB/nsIIDBObjectStore.idl
 */

#ifndef __gen_nsIIDBObjectStore_h__
#define __gen_nsIIDBObjectStore_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "jspubtd.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIIDBIndex; /* forward declaration */

class nsIIDBKeyRange; /* forward declaration */

class nsIIDBRequest; /* forward declaration */

class nsIIDBTransaction; /* forward declaration */

class nsIDOMDOMStringList; /* forward declaration */


/* starting interface:    nsIIDBObjectStore */
#define NS_IIDBOBJECTSTORE_IID_STR "e0d308ea-b804-4962-918a-28ec0aa4e42b"

#define NS_IIDBOBJECTSTORE_IID \
  {0xe0d308ea, 0xb804, 0x4962, \
    { 0x91, 0x8a, 0x28, 0xec, 0x0a, 0xa4, 0xe4, 0x2b }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIIDBObjectStore : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IIDBOBJECTSTORE_IID)

  /* readonly attribute DOMString name; */
  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;

  /* [implicit_jscontext] readonly attribute jsval keyPath; */
  NS_SCRIPTABLE NS_IMETHOD GetKeyPath(JSContext* cx, JS::Value *aKeyPath) = 0;

  /* readonly attribute nsIDOMDOMStringList indexNames; */
  NS_SCRIPTABLE NS_IMETHOD GetIndexNames(nsIDOMDOMStringList * *aIndexNames) = 0;

  /* readonly attribute nsIIDBTransaction transaction; */
  NS_SCRIPTABLE NS_IMETHOD GetTransaction(nsIIDBTransaction * *aTransaction) = 0;

  /* readonly attribute boolean autoIncrement; */
  NS_SCRIPTABLE NS_IMETHOD GetAutoIncrement(bool *aAutoIncrement) = 0;

  /* [implicit_jscontext] nsIIDBRequest get (in jsval key); */
  NS_SCRIPTABLE NS_IMETHOD Get(const JS::Value & key, JSContext* cx, nsIIDBRequest * *_retval NS_OUTPARAM) = 0;

  /* [implicit_jscontext,optional_argc] nsIIDBRequest getAll ([optional] in jsval key, [optional] in unsigned long limit); */
  NS_SCRIPTABLE NS_IMETHOD GetAll(const JS::Value & key, PRUint32 limit, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM) = 0;

  /* [implicit_jscontext,optional_argc] nsIIDBRequest add (in jsval value, [optional] in jsval key); */
  NS_SCRIPTABLE NS_IMETHOD Add(const JS::Value & value, const JS::Value & key, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM) = 0;

  /* [implicit_jscontext,optional_argc] nsIIDBRequest put (in jsval value, [optional] in jsval key); */
  NS_SCRIPTABLE NS_IMETHOD Put(const JS::Value & value, const JS::Value & key, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM) = 0;

  /* [implicit_jscontext] nsIIDBRequest delete (in jsval key); */
  NS_SCRIPTABLE NS_IMETHOD Delete(const JS::Value & key, JSContext* cx, nsIIDBRequest * *_retval NS_OUTPARAM) = 0;

  /* nsIIDBRequest clear (); */
  NS_SCRIPTABLE NS_IMETHOD Clear(nsIIDBRequest * *_retval NS_OUTPARAM) = 0;

  /* [implicit_jscontext,optional_argc] nsIIDBRequest openCursor ([optional] in jsval range, [optional] in unsigned short direction); */
  NS_SCRIPTABLE NS_IMETHOD OpenCursor(const JS::Value & range, PRUint16 direction, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM) = 0;

  /* [implicit_jscontext] nsIIDBIndex createIndex ([Null (Stringify)] in DOMString name, in jsval keyPath, [optional] in jsval options); */
  NS_SCRIPTABLE NS_IMETHOD CreateIndex(const nsAString & name, const JS::Value & keyPath, const JS::Value & options, JSContext* cx, nsIIDBIndex * *_retval NS_OUTPARAM) = 0;

  /* nsIIDBIndex index ([Null (Stringify)] in DOMString name); */
  NS_SCRIPTABLE NS_IMETHOD Index(const nsAString & name, nsIIDBIndex * *_retval NS_OUTPARAM) = 0;

  /* void deleteIndex ([Null (Stringify)] in DOMString name); */
  NS_SCRIPTABLE NS_IMETHOD DeleteIndex(const nsAString & name) = 0;

  /* [implicit_jscontext,optional_argc] nsIIDBRequest count ([optional] in jsval key); */
  NS_SCRIPTABLE NS_IMETHOD Count(const JS::Value & key, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIIDBObjectStore, NS_IIDBOBJECTSTORE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIDBOBJECTSTORE \
  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
  NS_SCRIPTABLE NS_IMETHOD GetKeyPath(JSContext* cx, JS::Value *aKeyPath); \
  NS_SCRIPTABLE NS_IMETHOD GetIndexNames(nsIDOMDOMStringList * *aIndexNames); \
  NS_SCRIPTABLE NS_IMETHOD GetTransaction(nsIIDBTransaction * *aTransaction); \
  NS_SCRIPTABLE NS_IMETHOD GetAutoIncrement(bool *aAutoIncrement); \
  NS_SCRIPTABLE NS_IMETHOD Get(const JS::Value & key, JSContext* cx, nsIIDBRequest * *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetAll(const JS::Value & key, PRUint32 limit, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD Add(const JS::Value & value, const JS::Value & key, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD Put(const JS::Value & value, const JS::Value & key, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD Delete(const JS::Value & key, JSContext* cx, nsIIDBRequest * *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD Clear(nsIIDBRequest * *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD OpenCursor(const JS::Value & range, PRUint16 direction, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD CreateIndex(const nsAString & name, const JS::Value & keyPath, const JS::Value & options, JSContext* cx, nsIIDBIndex * *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD Index(const nsAString & name, nsIIDBIndex * *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD DeleteIndex(const nsAString & name); \
  NS_SCRIPTABLE NS_IMETHOD Count(const JS::Value & key, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIDBOBJECTSTORE(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  NS_SCRIPTABLE NS_IMETHOD GetKeyPath(JSContext* cx, JS::Value *aKeyPath) { return _to GetKeyPath(cx, aKeyPath); } \
  NS_SCRIPTABLE NS_IMETHOD GetIndexNames(nsIDOMDOMStringList * *aIndexNames) { return _to GetIndexNames(aIndexNames); } \
  NS_SCRIPTABLE NS_IMETHOD GetTransaction(nsIIDBTransaction * *aTransaction) { return _to GetTransaction(aTransaction); } \
  NS_SCRIPTABLE NS_IMETHOD GetAutoIncrement(bool *aAutoIncrement) { return _to GetAutoIncrement(aAutoIncrement); } \
  NS_SCRIPTABLE NS_IMETHOD Get(const JS::Value & key, JSContext* cx, nsIIDBRequest * *_retval NS_OUTPARAM) { return _to Get(key, cx, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetAll(const JS::Value & key, PRUint32 limit, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM) { return _to GetAll(key, limit, cx, _argc, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Add(const JS::Value & value, const JS::Value & key, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM) { return _to Add(value, key, cx, _argc, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Put(const JS::Value & value, const JS::Value & key, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM) { return _to Put(value, key, cx, _argc, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Delete(const JS::Value & key, JSContext* cx, nsIIDBRequest * *_retval NS_OUTPARAM) { return _to Delete(key, cx, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Clear(nsIIDBRequest * *_retval NS_OUTPARAM) { return _to Clear(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD OpenCursor(const JS::Value & range, PRUint16 direction, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM) { return _to OpenCursor(range, direction, cx, _argc, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD CreateIndex(const nsAString & name, const JS::Value & keyPath, const JS::Value & options, JSContext* cx, nsIIDBIndex * *_retval NS_OUTPARAM) { return _to CreateIndex(name, keyPath, options, cx, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Index(const nsAString & name, nsIIDBIndex * *_retval NS_OUTPARAM) { return _to Index(name, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD DeleteIndex(const nsAString & name) { return _to DeleteIndex(name); } \
  NS_SCRIPTABLE NS_IMETHOD Count(const JS::Value & key, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM) { return _to Count(key, cx, _argc, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIIDBOBJECTSTORE(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  NS_SCRIPTABLE NS_IMETHOD GetKeyPath(JSContext* cx, JS::Value *aKeyPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKeyPath(cx, aKeyPath); } \
  NS_SCRIPTABLE NS_IMETHOD GetIndexNames(nsIDOMDOMStringList * *aIndexNames) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexNames(aIndexNames); } \
  NS_SCRIPTABLE NS_IMETHOD GetTransaction(nsIIDBTransaction * *aTransaction) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTransaction(aTransaction); } \
  NS_SCRIPTABLE NS_IMETHOD GetAutoIncrement(bool *aAutoIncrement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAutoIncrement(aAutoIncrement); } \
  NS_SCRIPTABLE NS_IMETHOD Get(const JS::Value & key, JSContext* cx, nsIIDBRequest * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Get(key, cx, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetAll(const JS::Value & key, PRUint32 limit, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAll(key, limit, cx, _argc, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Add(const JS::Value & value, const JS::Value & key, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Add(value, key, cx, _argc, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Put(const JS::Value & value, const JS::Value & key, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Put(value, key, cx, _argc, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Delete(const JS::Value & key, JSContext* cx, nsIIDBRequest * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Delete(key, cx, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Clear(nsIIDBRequest * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clear(_retval); } \
  NS_SCRIPTABLE NS_IMETHOD OpenCursor(const JS::Value & range, PRUint16 direction, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenCursor(range, direction, cx, _argc, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD CreateIndex(const nsAString & name, const JS::Value & keyPath, const JS::Value & options, JSContext* cx, nsIIDBIndex * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateIndex(name, keyPath, options, cx, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD Index(const nsAString & name, nsIIDBIndex * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Index(name, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD DeleteIndex(const nsAString & name) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteIndex(name); } \
  NS_SCRIPTABLE NS_IMETHOD Count(const JS::Value & key, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Count(key, cx, _argc, _retval); } 

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

/* Header file */
class nsIDBObjectStore : public nsIIDBObjectStore
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIIDBOBJECTSTORE

  nsIDBObjectStore();

private:
  ~nsIDBObjectStore();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsIDBObjectStore, nsIIDBObjectStore)

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

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

/* readonly attribute DOMString name; */
NS_IMETHODIMP nsIDBObjectStore::GetName(nsAString & aName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext] readonly attribute jsval keyPath; */
NS_IMETHODIMP nsIDBObjectStore::GetKeyPath(JSContext* cx, JS::Value *aKeyPath)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIDOMDOMStringList indexNames; */
NS_IMETHODIMP nsIDBObjectStore::GetIndexNames(nsIDOMDOMStringList * *aIndexNames)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute nsIIDBTransaction transaction; */
NS_IMETHODIMP nsIDBObjectStore::GetTransaction(nsIIDBTransaction * *aTransaction)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute boolean autoIncrement; */
NS_IMETHODIMP nsIDBObjectStore::GetAutoIncrement(bool *aAutoIncrement)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext] nsIIDBRequest get (in jsval key); */
NS_IMETHODIMP nsIDBObjectStore::Get(const JS::Value & key, JSContext* cx, nsIIDBRequest * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext,optional_argc] nsIIDBRequest getAll ([optional] in jsval key, [optional] in unsigned long limit); */
NS_IMETHODIMP nsIDBObjectStore::GetAll(const JS::Value & key, PRUint32 limit, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext,optional_argc] nsIIDBRequest add (in jsval value, [optional] in jsval key); */
NS_IMETHODIMP nsIDBObjectStore::Add(const JS::Value & value, const JS::Value & key, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext,optional_argc] nsIIDBRequest put (in jsval value, [optional] in jsval key); */
NS_IMETHODIMP nsIDBObjectStore::Put(const JS::Value & value, const JS::Value & key, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext] nsIIDBRequest delete (in jsval key); */
NS_IMETHODIMP nsIDBObjectStore::Delete(const JS::Value & key, JSContext* cx, nsIIDBRequest * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIIDBRequest clear (); */
NS_IMETHODIMP nsIDBObjectStore::Clear(nsIIDBRequest * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext,optional_argc] nsIIDBRequest openCursor ([optional] in jsval range, [optional] in unsigned short direction); */
NS_IMETHODIMP nsIDBObjectStore::OpenCursor(const JS::Value & range, PRUint16 direction, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext] nsIIDBIndex createIndex ([Null (Stringify)] in DOMString name, in jsval keyPath, [optional] in jsval options); */
NS_IMETHODIMP nsIDBObjectStore::CreateIndex(const nsAString & name, const JS::Value & keyPath, const JS::Value & options, JSContext* cx, nsIIDBIndex * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIIDBIndex index ([Null (Stringify)] in DOMString name); */
NS_IMETHODIMP nsIDBObjectStore::Index(const nsAString & name, nsIIDBIndex * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void deleteIndex ([Null (Stringify)] in DOMString name); */
NS_IMETHODIMP nsIDBObjectStore::DeleteIndex(const nsAString & name)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [implicit_jscontext,optional_argc] nsIIDBRequest count ([optional] in jsval key); */
NS_IMETHODIMP nsIDBObjectStore::Count(const JS::Value & key, JSContext* cx, PRUint8 _argc, nsIIDBRequest * *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIIDBObjectStore_h__ */