This file is indexed.

/usr/include/firefox/nsIProfile.h is in firefox-dev 11.0+build1-0ubuntu4.

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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /build/buildd/firefox-11.0+build1/build-tree/mozilla/profile/public/nsIProfile.idl
 */

#ifndef __gen_nsIProfile_h__
#define __gen_nsIProfile_h__


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

#ifndef __gen_nsIFile_h__
#include "nsIFile.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
      
#define NS_PROFILE_CID                                 \
  { /* {02b0625b-e7f3-11d2-9f5a-006008a6efe9} */       \
    0x02b0625b,                                        \
    0xe7f3,                                            \
    0x11d2,                                            \
    { 0x9f, 0x5a, 0x00, 0x60, 0x08, 0xa6, 0xef, 0xe9 } \
  }
#define NS_PROFILE_CONTRACTID	\
	"@mozilla.org/profile/manager;1"
#define NS_PROFILE_STARTUP_CATEGORY \
        "profile-startup-category"

/* starting interface:    nsIProfile */
#define NS_IPROFILE_IID_STR "02b0625a-e7f3-11d2-9f5a-006008a6efe9"

#define NS_IPROFILE_IID \
  {0x02b0625a, 0xe7f3, 0x11d2, \
    { 0x9f, 0x5a, 0x00, 0x60, 0x08, 0xa6, 0xef, 0xe9 }}

class NS_NO_VTABLE NS_SCRIPTABLE nsIProfile : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IPROFILE_IID)

  /* readonly attribute long profileCount; */
  NS_SCRIPTABLE NS_IMETHOD GetProfileCount(PRInt32 *aProfileCount) = 0;

  /* void getProfileList (out unsigned long length, [array, size_is (length), retval] out wstring profileNames); */
  NS_SCRIPTABLE NS_IMETHOD GetProfileList(PRUint32 *length NS_OUTPARAM, PRUnichar * **profileNames NS_OUTPARAM) = 0;

  /* boolean profileExists (in wstring profileName); */
  NS_SCRIPTABLE NS_IMETHOD ProfileExists(const PRUnichar * profileName, bool *_retval NS_OUTPARAM) = 0;

  /* attribute wstring currentProfile; */
  NS_SCRIPTABLE NS_IMETHOD GetCurrentProfile(PRUnichar * *aCurrentProfile) = 0;
  NS_SCRIPTABLE NS_IMETHOD SetCurrentProfile(const PRUnichar * aCurrentProfile) = 0;

  enum {
    SHUTDOWN_PERSIST = 1U,
    SHUTDOWN_CLEANSE = 2U
  };

  /* void shutDownCurrentProfile (in unsigned long shutDownType); */
  NS_SCRIPTABLE NS_IMETHOD ShutDownCurrentProfile(PRUint32 shutDownType) = 0;

  /* void createNewProfile (in wstring profileName, in wstring nativeProfileDir, in wstring langcode, in boolean useExistingDir); */
  NS_SCRIPTABLE NS_IMETHOD CreateNewProfile(const PRUnichar * profileName, const PRUnichar * nativeProfileDir, const PRUnichar * langcode, bool useExistingDir) = 0;

  /* void renameProfile (in wstring oldName, in wstring newName); */
  NS_SCRIPTABLE NS_IMETHOD RenameProfile(const PRUnichar * oldName, const PRUnichar * newName) = 0;

  /* void deleteProfile (in wstring name, in boolean canDeleteFiles); */
  NS_SCRIPTABLE NS_IMETHOD DeleteProfile(const PRUnichar * name, bool canDeleteFiles) = 0;

  /* void cloneProfile (in wstring profileName); */
  NS_SCRIPTABLE NS_IMETHOD CloneProfile(const PRUnichar * profileName) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIProfile, NS_IPROFILE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIPROFILE \
  NS_SCRIPTABLE NS_IMETHOD GetProfileCount(PRInt32 *aProfileCount); \
  NS_SCRIPTABLE NS_IMETHOD GetProfileList(PRUint32 *length NS_OUTPARAM, PRUnichar * **profileNames NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD ProfileExists(const PRUnichar * profileName, bool *_retval NS_OUTPARAM); \
  NS_SCRIPTABLE NS_IMETHOD GetCurrentProfile(PRUnichar * *aCurrentProfile); \
  NS_SCRIPTABLE NS_IMETHOD SetCurrentProfile(const PRUnichar * aCurrentProfile); \
  NS_SCRIPTABLE NS_IMETHOD ShutDownCurrentProfile(PRUint32 shutDownType); \
  NS_SCRIPTABLE NS_IMETHOD CreateNewProfile(const PRUnichar * profileName, const PRUnichar * nativeProfileDir, const PRUnichar * langcode, bool useExistingDir); \
  NS_SCRIPTABLE NS_IMETHOD RenameProfile(const PRUnichar * oldName, const PRUnichar * newName); \
  NS_SCRIPTABLE NS_IMETHOD DeleteProfile(const PRUnichar * name, bool canDeleteFiles); \
  NS_SCRIPTABLE NS_IMETHOD CloneProfile(const PRUnichar * profileName); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIPROFILE(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetProfileCount(PRInt32 *aProfileCount) { return _to GetProfileCount(aProfileCount); } \
  NS_SCRIPTABLE NS_IMETHOD GetProfileList(PRUint32 *length NS_OUTPARAM, PRUnichar * **profileNames NS_OUTPARAM) { return _to GetProfileList(length, profileNames); } \
  NS_SCRIPTABLE NS_IMETHOD ProfileExists(const PRUnichar * profileName, bool *_retval NS_OUTPARAM) { return _to ProfileExists(profileName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetCurrentProfile(PRUnichar * *aCurrentProfile) { return _to GetCurrentProfile(aCurrentProfile); } \
  NS_SCRIPTABLE NS_IMETHOD SetCurrentProfile(const PRUnichar * aCurrentProfile) { return _to SetCurrentProfile(aCurrentProfile); } \
  NS_SCRIPTABLE NS_IMETHOD ShutDownCurrentProfile(PRUint32 shutDownType) { return _to ShutDownCurrentProfile(shutDownType); } \
  NS_SCRIPTABLE NS_IMETHOD CreateNewProfile(const PRUnichar * profileName, const PRUnichar * nativeProfileDir, const PRUnichar * langcode, bool useExistingDir) { return _to CreateNewProfile(profileName, nativeProfileDir, langcode, useExistingDir); } \
  NS_SCRIPTABLE NS_IMETHOD RenameProfile(const PRUnichar * oldName, const PRUnichar * newName) { return _to RenameProfile(oldName, newName); } \
  NS_SCRIPTABLE NS_IMETHOD DeleteProfile(const PRUnichar * name, bool canDeleteFiles) { return _to DeleteProfile(name, canDeleteFiles); } \
  NS_SCRIPTABLE NS_IMETHOD CloneProfile(const PRUnichar * profileName) { return _to CloneProfile(profileName); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIPROFILE(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetProfileCount(PRInt32 *aProfileCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileCount(aProfileCount); } \
  NS_SCRIPTABLE NS_IMETHOD GetProfileList(PRUint32 *length NS_OUTPARAM, PRUnichar * **profileNames NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileList(length, profileNames); } \
  NS_SCRIPTABLE NS_IMETHOD ProfileExists(const PRUnichar * profileName, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ProfileExists(profileName, _retval); } \
  NS_SCRIPTABLE NS_IMETHOD GetCurrentProfile(PRUnichar * *aCurrentProfile) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentProfile(aCurrentProfile); } \
  NS_SCRIPTABLE NS_IMETHOD SetCurrentProfile(const PRUnichar * aCurrentProfile) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentProfile(aCurrentProfile); } \
  NS_SCRIPTABLE NS_IMETHOD ShutDownCurrentProfile(PRUint32 shutDownType) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShutDownCurrentProfile(shutDownType); } \
  NS_SCRIPTABLE NS_IMETHOD CreateNewProfile(const PRUnichar * profileName, const PRUnichar * nativeProfileDir, const PRUnichar * langcode, bool useExistingDir) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateNewProfile(profileName, nativeProfileDir, langcode, useExistingDir); } \
  NS_SCRIPTABLE NS_IMETHOD RenameProfile(const PRUnichar * oldName, const PRUnichar * newName) { return !_to ? NS_ERROR_NULL_POINTER : _to->RenameProfile(oldName, newName); } \
  NS_SCRIPTABLE NS_IMETHOD DeleteProfile(const PRUnichar * name, bool canDeleteFiles) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteProfile(name, canDeleteFiles); } \
  NS_SCRIPTABLE NS_IMETHOD CloneProfile(const PRUnichar * profileName) { return !_to ? NS_ERROR_NULL_POINTER : _to->CloneProfile(profileName); } 

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

/* Header file */
class nsProfile : public nsIProfile
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIPROFILE

  nsProfile();

private:
  ~nsProfile();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsProfile, nsIProfile)

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

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

/* readonly attribute long profileCount; */
NS_IMETHODIMP nsProfile::GetProfileCount(PRInt32 *aProfileCount)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getProfileList (out unsigned long length, [array, size_is (length), retval] out wstring profileNames); */
NS_IMETHODIMP nsProfile::GetProfileList(PRUint32 *length NS_OUTPARAM, PRUnichar * **profileNames NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean profileExists (in wstring profileName); */
NS_IMETHODIMP nsProfile::ProfileExists(const PRUnichar * profileName, bool *_retval NS_OUTPARAM)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* attribute wstring currentProfile; */
NS_IMETHODIMP nsProfile::GetCurrentProfile(PRUnichar * *aCurrentProfile)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsProfile::SetCurrentProfile(const PRUnichar * aCurrentProfile)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void shutDownCurrentProfile (in unsigned long shutDownType); */
NS_IMETHODIMP nsProfile::ShutDownCurrentProfile(PRUint32 shutDownType)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void createNewProfile (in wstring profileName, in wstring nativeProfileDir, in wstring langcode, in boolean useExistingDir); */
NS_IMETHODIMP nsProfile::CreateNewProfile(const PRUnichar * profileName, const PRUnichar * nativeProfileDir, const PRUnichar * langcode, bool useExistingDir)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void renameProfile (in wstring oldName, in wstring newName); */
NS_IMETHODIMP nsProfile::RenameProfile(const PRUnichar * oldName, const PRUnichar * newName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void deleteProfile (in wstring name, in boolean canDeleteFiles); */
NS_IMETHODIMP nsProfile::DeleteProfile(const PRUnichar * name, bool canDeleteFiles)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void cloneProfile (in wstring profileName); */
NS_IMETHODIMP nsProfile::CloneProfile(const PRUnichar * profileName)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIProfile_h__ */