This file is indexed.

/usr/include/thunderbird/mozIGeckoMediaPluginService.h is in thunderbird-dev 1:38.6.0+build1-0ubuntu1.

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

#ifndef __gen_mozIGeckoMediaPluginService_h__
#define __gen_mozIGeckoMediaPluginService_h__


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

#ifndef __gen_nsIThread_h__
#include "nsIThread.h"
#endif

#ifndef __gen_nsIPrincipal_h__
#include "nsIPrincipal.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
#include "nsTArray.h"
#include "nsStringGlue.h"
class GMPAudioDecoderProxy;
class GMPDecryptorProxy;
class GMPVideoDecoderProxy;
class GMPVideoEncoderProxy;
class GMPVideoHost;

/* starting interface:    mozIGeckoMediaPluginService */
#define MOZIGECKOMEDIAPLUGINSERVICE_IID_STR "46c7cd80-a19d-49e7-a147-ca314ad8d8b0"

#define MOZIGECKOMEDIAPLUGINSERVICE_IID \
  {0x46c7cd80, 0xa19d, 0x49e7, \
    { 0xa1, 0x47, 0xca, 0x31, 0x4a, 0xd8, 0xd8, 0xb0 }}

class NS_NO_VTABLE mozIGeckoMediaPluginService : public nsISupports {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(MOZIGECKOMEDIAPLUGINSERVICE_IID)

  /* readonly attribute nsIThread thread; */
  NS_IMETHOD GetThread(nsIThread * *aThread) = 0;

  /* [noscript] boolean hasPluginForAPI (in ACString api, in TagArray tags); */
  NS_IMETHOD HasPluginForAPI(const nsACString & api, nsTArray<nsCString> *tags, bool *_retval) = 0;

  /* [noscript] ACString getPluginVersionForAPI (in ACString api, in TagArray tags); */
  NS_IMETHOD GetPluginVersionForAPI(const nsACString & api, nsTArray<nsCString> *tags, nsACString & _retval) = 0;

  /* [noscript] GMPVideoDecoderProxy getGMPVideoDecoder (in TagArray tags, [optional] in ACString nodeId, out GMPVideoHost outVideoHost); */
  NS_IMETHOD GetGMPVideoDecoder(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPVideoHost **outVideoHost, GMPVideoDecoderProxy **_retval) = 0;

  /* [noscript] GMPVideoEncoderProxy getGMPVideoEncoder (in TagArray tags, [optional] in ACString nodeId, out GMPVideoHost outVideoHost); */
  NS_IMETHOD GetGMPVideoEncoder(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPVideoHost **outVideoHost, GMPVideoEncoderProxy **_retval) = 0;

  /* GMPAudioDecoderProxy getGMPAudioDecoder (in TagArray tags, [optional] in ACString nodeId); */
  NS_IMETHOD GetGMPAudioDecoder(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPAudioDecoderProxy **_retval) = 0;

  /* GMPDecryptorProxy getGMPDecryptor (in TagArray tags, in ACString nodeId); */
  NS_IMETHOD GetGMPDecryptor(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPDecryptorProxy **_retval) = 0;

  /* void addPluginDirectory (in AString directory); */
  NS_IMETHOD AddPluginDirectory(const nsAString & directory) = 0;

  /* void removePluginDirectory (in AString directory); */
  NS_IMETHOD RemovePluginDirectory(const nsAString & directory) = 0;

  /* void removeAndDeletePluginDirectory (in AString directory, [optional] in bool defer); */
  NS_IMETHOD RemoveAndDeletePluginDirectory(const nsAString & directory, bool defer) = 0;

  /* ACString getNodeId (in AString origin, in AString topLevelOrigin, in bool inPrivateBrowsingMode); */
  NS_IMETHOD GetNodeId(const nsAString & origin, const nsAString & topLevelOrigin, bool inPrivateBrowsingMode, nsACString & _retval) = 0;

  /* void forgetThisSite (in AString site); */
  NS_IMETHOD ForgetThisSite(const nsAString & site) = 0;

  /* bool isPersistentStorageAllowed (in ACString nodeId); */
  NS_IMETHOD IsPersistentStorageAllowed(const nsACString & nodeId, bool *_retval) = 0;

  /* nsIFile getStorageDir (); */
  NS_IMETHOD GetStorageDir(nsIFile * *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(mozIGeckoMediaPluginService, MOZIGECKOMEDIAPLUGINSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_MOZIGECKOMEDIAPLUGINSERVICE \
  NS_IMETHOD GetThread(nsIThread * *aThread) override; \
  NS_IMETHOD HasPluginForAPI(const nsACString & api, nsTArray<nsCString> *tags, bool *_retval) override; \
  NS_IMETHOD GetPluginVersionForAPI(const nsACString & api, nsTArray<nsCString> *tags, nsACString & _retval) override; \
  NS_IMETHOD GetGMPVideoDecoder(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPVideoHost **outVideoHost, GMPVideoDecoderProxy **_retval) override; \
  NS_IMETHOD GetGMPVideoEncoder(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPVideoHost **outVideoHost, GMPVideoEncoderProxy **_retval) override; \
  NS_IMETHOD GetGMPAudioDecoder(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPAudioDecoderProxy **_retval) override; \
  NS_IMETHOD GetGMPDecryptor(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPDecryptorProxy **_retval) override; \
  NS_IMETHOD AddPluginDirectory(const nsAString & directory) override; \
  NS_IMETHOD RemovePluginDirectory(const nsAString & directory) override; \
  NS_IMETHOD RemoveAndDeletePluginDirectory(const nsAString & directory, bool defer) override; \
  NS_IMETHOD GetNodeId(const nsAString & origin, const nsAString & topLevelOrigin, bool inPrivateBrowsingMode, nsACString & _retval) override; \
  NS_IMETHOD ForgetThisSite(const nsAString & site) override; \
  NS_IMETHOD IsPersistentStorageAllowed(const nsACString & nodeId, bool *_retval) override; \
  NS_IMETHOD GetStorageDir(nsIFile * *_retval) override; 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_MOZIGECKOMEDIAPLUGINSERVICE(_to) \
  NS_IMETHOD GetThread(nsIThread * *aThread) override { return _to GetThread(aThread); } \
  NS_IMETHOD HasPluginForAPI(const nsACString & api, nsTArray<nsCString> *tags, bool *_retval) override { return _to HasPluginForAPI(api, tags, _retval); } \
  NS_IMETHOD GetPluginVersionForAPI(const nsACString & api, nsTArray<nsCString> *tags, nsACString & _retval) override { return _to GetPluginVersionForAPI(api, tags, _retval); } \
  NS_IMETHOD GetGMPVideoDecoder(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPVideoHost **outVideoHost, GMPVideoDecoderProxy **_retval) override { return _to GetGMPVideoDecoder(tags, nodeId, outVideoHost, _retval); } \
  NS_IMETHOD GetGMPVideoEncoder(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPVideoHost **outVideoHost, GMPVideoEncoderProxy **_retval) override { return _to GetGMPVideoEncoder(tags, nodeId, outVideoHost, _retval); } \
  NS_IMETHOD GetGMPAudioDecoder(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPAudioDecoderProxy **_retval) override { return _to GetGMPAudioDecoder(tags, nodeId, _retval); } \
  NS_IMETHOD GetGMPDecryptor(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPDecryptorProxy **_retval) override { return _to GetGMPDecryptor(tags, nodeId, _retval); } \
  NS_IMETHOD AddPluginDirectory(const nsAString & directory) override { return _to AddPluginDirectory(directory); } \
  NS_IMETHOD RemovePluginDirectory(const nsAString & directory) override { return _to RemovePluginDirectory(directory); } \
  NS_IMETHOD RemoveAndDeletePluginDirectory(const nsAString & directory, bool defer) override { return _to RemoveAndDeletePluginDirectory(directory, defer); } \
  NS_IMETHOD GetNodeId(const nsAString & origin, const nsAString & topLevelOrigin, bool inPrivateBrowsingMode, nsACString & _retval) override { return _to GetNodeId(origin, topLevelOrigin, inPrivateBrowsingMode, _retval); } \
  NS_IMETHOD ForgetThisSite(const nsAString & site) override { return _to ForgetThisSite(site); } \
  NS_IMETHOD IsPersistentStorageAllowed(const nsACString & nodeId, bool *_retval) override { return _to IsPersistentStorageAllowed(nodeId, _retval); } \
  NS_IMETHOD GetStorageDir(nsIFile * *_retval) override { return _to GetStorageDir(_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_MOZIGECKOMEDIAPLUGINSERVICE(_to) \
  NS_IMETHOD GetThread(nsIThread * *aThread) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetThread(aThread); } \
  NS_IMETHOD HasPluginForAPI(const nsACString & api, nsTArray<nsCString> *tags, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasPluginForAPI(api, tags, _retval); } \
  NS_IMETHOD GetPluginVersionForAPI(const nsACString & api, nsTArray<nsCString> *tags, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPluginVersionForAPI(api, tags, _retval); } \
  NS_IMETHOD GetGMPVideoDecoder(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPVideoHost **outVideoHost, GMPVideoDecoderProxy **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGMPVideoDecoder(tags, nodeId, outVideoHost, _retval); } \
  NS_IMETHOD GetGMPVideoEncoder(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPVideoHost **outVideoHost, GMPVideoEncoderProxy **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGMPVideoEncoder(tags, nodeId, outVideoHost, _retval); } \
  NS_IMETHOD GetGMPAudioDecoder(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPAudioDecoderProxy **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGMPAudioDecoder(tags, nodeId, _retval); } \
  NS_IMETHOD GetGMPDecryptor(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPDecryptorProxy **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGMPDecryptor(tags, nodeId, _retval); } \
  NS_IMETHOD AddPluginDirectory(const nsAString & directory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPluginDirectory(directory); } \
  NS_IMETHOD RemovePluginDirectory(const nsAString & directory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemovePluginDirectory(directory); } \
  NS_IMETHOD RemoveAndDeletePluginDirectory(const nsAString & directory, bool defer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAndDeletePluginDirectory(directory, defer); } \
  NS_IMETHOD GetNodeId(const nsAString & origin, const nsAString & topLevelOrigin, bool inPrivateBrowsingMode, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNodeId(origin, topLevelOrigin, inPrivateBrowsingMode, _retval); } \
  NS_IMETHOD ForgetThisSite(const nsAString & site) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForgetThisSite(site); } \
  NS_IMETHOD IsPersistentStorageAllowed(const nsACString & nodeId, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsPersistentStorageAllowed(nodeId, _retval); } \
  NS_IMETHOD GetStorageDir(nsIFile * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStorageDir(_retval); } 

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

/* Header file */
class _MYCLASS_ : public mozIGeckoMediaPluginService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_MOZIGECKOMEDIAPLUGINSERVICE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(_MYCLASS_, mozIGeckoMediaPluginService)

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

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

/* readonly attribute nsIThread thread; */
NS_IMETHODIMP _MYCLASS_::GetThread(nsIThread * *aThread)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] boolean hasPluginForAPI (in ACString api, in TagArray tags); */
NS_IMETHODIMP _MYCLASS_::HasPluginForAPI(const nsACString & api, nsTArray<nsCString> *tags, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] ACString getPluginVersionForAPI (in ACString api, in TagArray tags); */
NS_IMETHODIMP _MYCLASS_::GetPluginVersionForAPI(const nsACString & api, nsTArray<nsCString> *tags, nsACString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] GMPVideoDecoderProxy getGMPVideoDecoder (in TagArray tags, [optional] in ACString nodeId, out GMPVideoHost outVideoHost); */
NS_IMETHODIMP _MYCLASS_::GetGMPVideoDecoder(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPVideoHost **outVideoHost, GMPVideoDecoderProxy **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* [noscript] GMPVideoEncoderProxy getGMPVideoEncoder (in TagArray tags, [optional] in ACString nodeId, out GMPVideoHost outVideoHost); */
NS_IMETHODIMP _MYCLASS_::GetGMPVideoEncoder(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPVideoHost **outVideoHost, GMPVideoEncoderProxy **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* GMPAudioDecoderProxy getGMPAudioDecoder (in TagArray tags, [optional] in ACString nodeId); */
NS_IMETHODIMP _MYCLASS_::GetGMPAudioDecoder(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPAudioDecoderProxy **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* GMPDecryptorProxy getGMPDecryptor (in TagArray tags, in ACString nodeId); */
NS_IMETHODIMP _MYCLASS_::GetGMPDecryptor(nsTArray<nsCString> *tags, const nsACString & nodeId, GMPDecryptorProxy **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void addPluginDirectory (in AString directory); */
NS_IMETHODIMP _MYCLASS_::AddPluginDirectory(const nsAString & directory)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removePluginDirectory (in AString directory); */
NS_IMETHODIMP _MYCLASS_::RemovePluginDirectory(const nsAString & directory)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeAndDeletePluginDirectory (in AString directory, [optional] in bool defer); */
NS_IMETHODIMP _MYCLASS_::RemoveAndDeletePluginDirectory(const nsAString & directory, bool defer)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* ACString getNodeId (in AString origin, in AString topLevelOrigin, in bool inPrivateBrowsingMode); */
NS_IMETHODIMP _MYCLASS_::GetNodeId(const nsAString & origin, const nsAString & topLevelOrigin, bool inPrivateBrowsingMode, nsACString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void forgetThisSite (in AString site); */
NS_IMETHODIMP _MYCLASS_::ForgetThisSite(const nsAString & site)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* bool isPersistentStorageAllowed (in ACString nodeId); */
NS_IMETHODIMP _MYCLASS_::IsPersistentStorageAllowed(const nsACString & nodeId, bool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* nsIFile getStorageDir (); */
NS_IMETHODIMP _MYCLASS_::GetStorageDir(nsIFile * *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_mozIGeckoMediaPluginService_h__ */