This file is indexed.

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

#ifndef __gen_nsIAddonPolicyService_h__
#define __gen_nsIAddonPolicyService_h__


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

#ifndef __gen_nsIURI_h__
#include "nsIURI.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif

/* starting interface:    nsIAddonPolicyService */
#define NS_IADDONPOLICYSERVICE_IID_STR "8a034ef9-9d14-4c5d-8319-06c1ab574baa"

#define NS_IADDONPOLICYSERVICE_IID \
  {0x8a034ef9, 0x9d14, 0x4c5d, \
    { 0x83, 0x19, 0x06, 0xc1, 0xab, 0x57, 0x4b, 0xaa }}

class NS_NO_VTABLE nsIAddonPolicyService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IADDONPOLICYSERVICE_IID)

  /* readonly attribute AString baseCSP; */
  NS_IMETHOD GetBaseCSP(nsAString & aBaseCSP) = 0;

  /* readonly attribute AString defaultCSP; */
  NS_IMETHOD GetDefaultCSP(nsAString & aDefaultCSP) = 0;

  /* AString getAddonCSP (in AString aAddonId); */
  NS_IMETHOD GetAddonCSP(const nsAString & aAddonId, nsAString & _retval) = 0;

  /* ACString getGeneratedBackgroundPageUrl (in ACString aAddonId); */
  NS_IMETHOD GetGeneratedBackgroundPageUrl(const nsACString & aAddonId, nsACString & _retval) = 0;

  /* boolean addonHasPermission (in AString aAddonId, in AString aPerm); */
  NS_IMETHOD AddonHasPermission(const nsAString & aAddonId, const nsAString & aPerm, bool *_retval) = 0;

  /* boolean addonMayLoadURI (in AString aAddonId, in nsIURI aURI); */
  NS_IMETHOD AddonMayLoadURI(const nsAString & aAddonId, nsIURI *aURI, bool *_retval) = 0;

  /* boolean extensionURILoadableByAnyone (in nsIURI aURI); */
  NS_IMETHOD ExtensionURILoadableByAnyone(nsIURI *aURI, bool *_retval) = 0;

  /* AString extensionURIToAddonId (in nsIURI aURI); */
  NS_IMETHOD ExtensionURIToAddonId(nsIURI *aURI, nsAString & _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAddonPolicyService, NS_IADDONPOLICYSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIADDONPOLICYSERVICE \
  NS_IMETHOD GetBaseCSP(nsAString & aBaseCSP) override; \
  NS_IMETHOD GetDefaultCSP(nsAString & aDefaultCSP) override; \
  NS_IMETHOD GetAddonCSP(const nsAString & aAddonId, nsAString & _retval) override; \
  NS_IMETHOD GetGeneratedBackgroundPageUrl(const nsACString & aAddonId, nsACString & _retval) override; \
  NS_IMETHOD AddonHasPermission(const nsAString & aAddonId, const nsAString & aPerm, bool *_retval) override; \
  NS_IMETHOD AddonMayLoadURI(const nsAString & aAddonId, nsIURI *aURI, bool *_retval) override; \
  NS_IMETHOD ExtensionURILoadableByAnyone(nsIURI *aURI, bool *_retval) override; \
  NS_IMETHOD ExtensionURIToAddonId(nsIURI *aURI, nsAString & _retval) 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_NSIADDONPOLICYSERVICE \
  NS_METHOD GetBaseCSP(nsAString & aBaseCSP); \
  NS_METHOD GetDefaultCSP(nsAString & aDefaultCSP); \
  NS_METHOD GetAddonCSP(const nsAString & aAddonId, nsAString & _retval); \
  NS_METHOD GetGeneratedBackgroundPageUrl(const nsACString & aAddonId, nsACString & _retval); \
  NS_METHOD AddonHasPermission(const nsAString & aAddonId, const nsAString & aPerm, bool *_retval); \
  NS_METHOD AddonMayLoadURI(const nsAString & aAddonId, nsIURI *aURI, bool *_retval); \
  NS_METHOD ExtensionURILoadableByAnyone(nsIURI *aURI, bool *_retval); \
  NS_METHOD ExtensionURIToAddonId(nsIURI *aURI, nsAString & _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIADDONPOLICYSERVICE(_to) \
  NS_IMETHOD GetBaseCSP(nsAString & aBaseCSP) override { return _to GetBaseCSP(aBaseCSP); } \
  NS_IMETHOD GetDefaultCSP(nsAString & aDefaultCSP) override { return _to GetDefaultCSP(aDefaultCSP); } \
  NS_IMETHOD GetAddonCSP(const nsAString & aAddonId, nsAString & _retval) override { return _to GetAddonCSP(aAddonId, _retval); } \
  NS_IMETHOD GetGeneratedBackgroundPageUrl(const nsACString & aAddonId, nsACString & _retval) override { return _to GetGeneratedBackgroundPageUrl(aAddonId, _retval); } \
  NS_IMETHOD AddonHasPermission(const nsAString & aAddonId, const nsAString & aPerm, bool *_retval) override { return _to AddonHasPermission(aAddonId, aPerm, _retval); } \
  NS_IMETHOD AddonMayLoadURI(const nsAString & aAddonId, nsIURI *aURI, bool *_retval) override { return _to AddonMayLoadURI(aAddonId, aURI, _retval); } \
  NS_IMETHOD ExtensionURILoadableByAnyone(nsIURI *aURI, bool *_retval) override { return _to ExtensionURILoadableByAnyone(aURI, _retval); } \
  NS_IMETHOD ExtensionURIToAddonId(nsIURI *aURI, nsAString & _retval) override { return _to ExtensionURIToAddonId(aURI, _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_NSIADDONPOLICYSERVICE(_to) \
  NS_IMETHOD GetBaseCSP(nsAString & aBaseCSP) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBaseCSP(aBaseCSP); } \
  NS_IMETHOD GetDefaultCSP(nsAString & aDefaultCSP) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultCSP(aDefaultCSP); } \
  NS_IMETHOD GetAddonCSP(const nsAString & aAddonId, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddonCSP(aAddonId, _retval); } \
  NS_IMETHOD GetGeneratedBackgroundPageUrl(const nsACString & aAddonId, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGeneratedBackgroundPageUrl(aAddonId, _retval); } \
  NS_IMETHOD AddonHasPermission(const nsAString & aAddonId, const nsAString & aPerm, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddonHasPermission(aAddonId, aPerm, _retval); } \
  NS_IMETHOD AddonMayLoadURI(const nsAString & aAddonId, nsIURI *aURI, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddonMayLoadURI(aAddonId, aURI, _retval); } \
  NS_IMETHOD ExtensionURILoadableByAnyone(nsIURI *aURI, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExtensionURILoadableByAnyone(aURI, _retval); } \
  NS_IMETHOD ExtensionURIToAddonId(nsIURI *aURI, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExtensionURIToAddonId(aURI, _retval); } 

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

/* Header file */
class nsAddonPolicyService : public nsIAddonPolicyService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIADDONPOLICYSERVICE

  nsAddonPolicyService();

private:
  ~nsAddonPolicyService();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsAddonPolicyService, nsIAddonPolicyService)

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

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

/* readonly attribute AString baseCSP; */
NS_IMETHODIMP nsAddonPolicyService::GetBaseCSP(nsAString & aBaseCSP)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute AString defaultCSP; */
NS_IMETHODIMP nsAddonPolicyService::GetDefaultCSP(nsAString & aDefaultCSP)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AString getAddonCSP (in AString aAddonId); */
NS_IMETHODIMP nsAddonPolicyService::GetAddonCSP(const nsAString & aAddonId, nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* ACString getGeneratedBackgroundPageUrl (in ACString aAddonId); */
NS_IMETHODIMP nsAddonPolicyService::GetGeneratedBackgroundPageUrl(const nsACString & aAddonId, nsACString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean addonHasPermission (in AString aAddonId, in AString aPerm); */
NS_IMETHODIMP nsAddonPolicyService::AddonHasPermission(const nsAString & aAddonId, const nsAString & aPerm, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean addonMayLoadURI (in AString aAddonId, in nsIURI aURI); */
NS_IMETHODIMP nsAddonPolicyService::AddonMayLoadURI(const nsAString & aAddonId, nsIURI *aURI, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean extensionURILoadableByAnyone (in nsIURI aURI); */
NS_IMETHODIMP nsAddonPolicyService::ExtensionURILoadableByAnyone(nsIURI *aURI, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* AString extensionURIToAddonId (in nsIURI aURI); */
NS_IMETHODIMP nsAddonPolicyService::ExtensionURIToAddonId(nsIURI *aURI, nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    nsIAddonContentPolicy */
#define NS_IADDONCONTENTPOLICY_IID_STR "7a4fe60b-9131-45f5-83f3-dc63b5d71a5d"

#define NS_IADDONCONTENTPOLICY_IID \
  {0x7a4fe60b, 0x9131, 0x45f5, \
    { 0x83, 0xf3, 0xdc, 0x63, 0xb5, 0xd7, 0x1a, 0x5d }}

class NS_NO_VTABLE nsIAddonContentPolicy : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IADDONCONTENTPOLICY_IID)

  /* AString validateAddonCSP (in AString aPolicyString); */
  NS_IMETHOD ValidateAddonCSP(const nsAString & aPolicyString, nsAString & _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIAddonContentPolicy, NS_IADDONCONTENTPOLICY_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIADDONCONTENTPOLICY \
  NS_IMETHOD ValidateAddonCSP(const nsAString & aPolicyString, nsAString & _retval) 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_NSIADDONCONTENTPOLICY \
  NS_METHOD ValidateAddonCSP(const nsAString & aPolicyString, nsAString & _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIADDONCONTENTPOLICY(_to) \
  NS_IMETHOD ValidateAddonCSP(const nsAString & aPolicyString, nsAString & _retval) override { return _to ValidateAddonCSP(aPolicyString, _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_NSIADDONCONTENTPOLICY(_to) \
  NS_IMETHOD ValidateAddonCSP(const nsAString & aPolicyString, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ValidateAddonCSP(aPolicyString, _retval); } 

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

/* Header file */
class nsAddonContentPolicy : public nsIAddonContentPolicy
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIADDONCONTENTPOLICY

  nsAddonContentPolicy();

private:
  ~nsAddonContentPolicy();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsAddonContentPolicy, nsIAddonContentPolicy)

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

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

/* AString validateAddonCSP (in AString aPolicyString); */
NS_IMETHODIMP nsAddonContentPolicy::ValidateAddonCSP(const nsAString & aPolicyString, nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIAddonPolicyService_h__ */