/work/obj-fuzz/dist/include/mozilla/Services.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* THIS FILE IS GENERATED BY Services.py - DO NOT EDIT */ |
2 | | |
3 | | #ifndef mozilla_Services_h |
4 | | #define mozilla_Services_h |
5 | | |
6 | | #include "nscore.h" |
7 | | #include "nsCOMPtr.h" |
8 | | class nsIChromeRegistry; |
9 | | |
10 | | #ifdef MOZILLA_INTERNAL_API |
11 | | extern "C" { |
12 | | /** |
13 | | * NOTE: Don't call this method directly, instead call mozilla::services::Get{0}. |
14 | | * It is used to expose XPCOM services to rust code. The return value is already addrefed. |
15 | | */ |
16 | | nsIChromeRegistry* XPCOMService_GetChromeRegistryService(); |
17 | | } // extern "C" |
18 | | |
19 | | namespace mozilla { |
20 | | namespace services { |
21 | | /** |
22 | | * Fetch a cached instance of the ChromeRegistryService. |
23 | | * This function will return nullptr during XPCOM shutdown. |
24 | | */ |
25 | | inline already_AddRefed<nsIChromeRegistry> |
26 | | GetChromeRegistryService() |
27 | 6 | { |
28 | 6 | return already_AddRefed<nsIChromeRegistry>(XPCOMService_GetChromeRegistryService()); |
29 | 6 | } |
30 | | } // namespace services |
31 | | } // namespace mozilla |
32 | | #endif // defined(MOZILLA_INTERNAL_API) |
33 | | class nsIToolkitChromeRegistry; |
34 | | |
35 | | #ifdef MOZILLA_INTERNAL_API |
36 | | extern "C" { |
37 | | /** |
38 | | * NOTE: Don't call this method directly, instead call mozilla::services::Get{0}. |
39 | | * It is used to expose XPCOM services to rust code. The return value is already addrefed. |
40 | | */ |
41 | | nsIToolkitChromeRegistry* XPCOMService_GetToolkitChromeRegistryService(); |
42 | | } // extern "C" |
43 | | |
44 | | namespace mozilla { |
45 | | namespace services { |
46 | | /** |
47 | | * Fetch a cached instance of the ToolkitChromeRegistryService. |
48 | | * This function will return nullptr during XPCOM shutdown. |
49 | | */ |
50 | | inline already_AddRefed<nsIToolkitChromeRegistry> |
51 | | GetToolkitChromeRegistryService() |
52 | 0 | { |
53 | 0 | return already_AddRefed<nsIToolkitChromeRegistry>(XPCOMService_GetToolkitChromeRegistryService()); |
54 | 0 | } |
55 | | } // namespace services |
56 | | } // namespace mozilla |
57 | | #endif // defined(MOZILLA_INTERNAL_API) |
58 | | class nsIXULChromeRegistry; |
59 | | |
60 | | #ifdef MOZILLA_INTERNAL_API |
61 | | extern "C" { |
62 | | /** |
63 | | * NOTE: Don't call this method directly, instead call mozilla::services::Get{0}. |
64 | | * It is used to expose XPCOM services to rust code. The return value is already addrefed. |
65 | | */ |
66 | | nsIXULChromeRegistry* XPCOMService_GetXULChromeRegistryService(); |
67 | | } // extern "C" |
68 | | |
69 | | namespace mozilla { |
70 | | namespace services { |
71 | | /** |
72 | | * Fetch a cached instance of the XULChromeRegistryService. |
73 | | * This function will return nullptr during XPCOM shutdown. |
74 | | */ |
75 | | inline already_AddRefed<nsIXULChromeRegistry> |
76 | | GetXULChromeRegistryService() |
77 | 0 | { |
78 | 0 | return already_AddRefed<nsIXULChromeRegistry>(XPCOMService_GetXULChromeRegistryService()); |
79 | 0 | } |
80 | | } // namespace services |
81 | | } // namespace mozilla |
82 | | #endif // defined(MOZILLA_INTERNAL_API) |
83 | | class nsIIOService; |
84 | | |
85 | | #ifdef MOZILLA_INTERNAL_API |
86 | | extern "C" { |
87 | | /** |
88 | | * NOTE: Don't call this method directly, instead call mozilla::services::Get{0}. |
89 | | * It is used to expose XPCOM services to rust code. The return value is already addrefed. |
90 | | */ |
91 | | nsIIOService* XPCOMService_GetIOService(); |
92 | | } // extern "C" |
93 | | |
94 | | namespace mozilla { |
95 | | namespace services { |
96 | | /** |
97 | | * Fetch a cached instance of the IOService. |
98 | | * This function will return nullptr during XPCOM shutdown. |
99 | | */ |
100 | | inline already_AddRefed<nsIIOService> |
101 | | GetIOService() |
102 | 3.06M | { |
103 | 3.06M | return already_AddRefed<nsIIOService>(XPCOMService_GetIOService()); |
104 | 3.06M | } |
105 | | } // namespace services |
106 | | } // namespace mozilla |
107 | | #endif // defined(MOZILLA_INTERNAL_API) |
108 | | class nsIObserverService; |
109 | | |
110 | | #ifdef MOZILLA_INTERNAL_API |
111 | | extern "C" { |
112 | | /** |
113 | | * NOTE: Don't call this method directly, instead call mozilla::services::Get{0}. |
114 | | * It is used to expose XPCOM services to rust code. The return value is already addrefed. |
115 | | */ |
116 | | nsIObserverService* XPCOMService_GetObserverService(); |
117 | | } // extern "C" |
118 | | |
119 | | namespace mozilla { |
120 | | namespace services { |
121 | | /** |
122 | | * Fetch a cached instance of the ObserverService. |
123 | | * This function will return nullptr during XPCOM shutdown. |
124 | | */ |
125 | | inline already_AddRefed<nsIObserverService> |
126 | | GetObserverService() |
127 | 151 | { |
128 | 151 | return already_AddRefed<nsIObserverService>(XPCOMService_GetObserverService()); |
129 | 151 | } |
130 | | } // namespace services |
131 | | } // namespace mozilla |
132 | | #endif // defined(MOZILLA_INTERNAL_API) |
133 | | class nsIStringBundleService; |
134 | | |
135 | | #ifdef MOZILLA_INTERNAL_API |
136 | | extern "C" { |
137 | | /** |
138 | | * NOTE: Don't call this method directly, instead call mozilla::services::Get{0}. |
139 | | * It is used to expose XPCOM services to rust code. The return value is already addrefed. |
140 | | */ |
141 | | nsIStringBundleService* XPCOMService_GetStringBundleService(); |
142 | | } // extern "C" |
143 | | |
144 | | namespace mozilla { |
145 | | namespace services { |
146 | | /** |
147 | | * Fetch a cached instance of the StringBundleService. |
148 | | * This function will return nullptr during XPCOM shutdown. |
149 | | */ |
150 | | inline already_AddRefed<nsIStringBundleService> |
151 | | GetStringBundleService() |
152 | 0 | { |
153 | 0 | return already_AddRefed<nsIStringBundleService>(XPCOMService_GetStringBundleService()); |
154 | 0 | } |
155 | | } // namespace services |
156 | | } // namespace mozilla |
157 | | #endif // defined(MOZILLA_INTERNAL_API) |
158 | | class nsIPermissionManager; |
159 | | |
160 | | #ifdef MOZILLA_INTERNAL_API |
161 | | extern "C" { |
162 | | /** |
163 | | * NOTE: Don't call this method directly, instead call mozilla::services::Get{0}. |
164 | | * It is used to expose XPCOM services to rust code. The return value is already addrefed. |
165 | | */ |
166 | | nsIPermissionManager* XPCOMService_GetPermissionManager(); |
167 | | } // extern "C" |
168 | | |
169 | | namespace mozilla { |
170 | | namespace services { |
171 | | /** |
172 | | * Fetch a cached instance of the PermissionManager. |
173 | | * This function will return nullptr during XPCOM shutdown. |
174 | | */ |
175 | | inline already_AddRefed<nsIPermissionManager> |
176 | | GetPermissionManager() |
177 | 0 | { |
178 | 0 | return already_AddRefed<nsIPermissionManager>(XPCOMService_GetPermissionManager()); |
179 | 0 | } |
180 | | } // namespace services |
181 | | } // namespace mozilla |
182 | | #endif // defined(MOZILLA_INTERNAL_API) |
183 | | class nsIServiceWorkerManager; |
184 | | |
185 | | #ifdef MOZILLA_INTERNAL_API |
186 | | extern "C" { |
187 | | /** |
188 | | * NOTE: Don't call this method directly, instead call mozilla::services::Get{0}. |
189 | | * It is used to expose XPCOM services to rust code. The return value is already addrefed. |
190 | | */ |
191 | | nsIServiceWorkerManager* XPCOMService_GetServiceWorkerManager(); |
192 | | } // extern "C" |
193 | | |
194 | | namespace mozilla { |
195 | | namespace services { |
196 | | /** |
197 | | * Fetch a cached instance of the ServiceWorkerManager. |
198 | | * This function will return nullptr during XPCOM shutdown. |
199 | | */ |
200 | | inline already_AddRefed<nsIServiceWorkerManager> |
201 | | GetServiceWorkerManager() |
202 | 0 | { |
203 | 0 | return already_AddRefed<nsIServiceWorkerManager>(XPCOMService_GetServiceWorkerManager()); |
204 | 0 | } |
205 | | } // namespace services |
206 | | } // namespace mozilla |
207 | | #endif // defined(MOZILLA_INTERNAL_API) |
208 | | class nsIAsyncShutdownService; |
209 | | |
210 | | #ifdef MOZILLA_INTERNAL_API |
211 | | extern "C" { |
212 | | /** |
213 | | * NOTE: Don't call this method directly, instead call mozilla::services::Get{0}. |
214 | | * It is used to expose XPCOM services to rust code. The return value is already addrefed. |
215 | | */ |
216 | | nsIAsyncShutdownService* XPCOMService_GetAsyncShutdown(); |
217 | | } // extern "C" |
218 | | |
219 | | namespace mozilla { |
220 | | namespace services { |
221 | | /** |
222 | | * Fetch a cached instance of the AsyncShutdown. |
223 | | * This function will return nullptr during XPCOM shutdown. |
224 | | */ |
225 | | inline already_AddRefed<nsIAsyncShutdownService> |
226 | | GetAsyncShutdown() |
227 | 0 | { |
228 | 0 | return already_AddRefed<nsIAsyncShutdownService>(XPCOMService_GetAsyncShutdown()); |
229 | 0 | } |
230 | | } // namespace services |
231 | | } // namespace mozilla |
232 | | #endif // defined(MOZILLA_INTERNAL_API) |
233 | | class nsIUUIDGenerator; |
234 | | |
235 | | #ifdef MOZILLA_INTERNAL_API |
236 | | extern "C" { |
237 | | /** |
238 | | * NOTE: Don't call this method directly, instead call mozilla::services::Get{0}. |
239 | | * It is used to expose XPCOM services to rust code. The return value is already addrefed. |
240 | | */ |
241 | | nsIUUIDGenerator* XPCOMService_GetUUIDGenerator(); |
242 | | } // extern "C" |
243 | | |
244 | | namespace mozilla { |
245 | | namespace services { |
246 | | /** |
247 | | * Fetch a cached instance of the UUIDGenerator. |
248 | | * This function will return nullptr during XPCOM shutdown. |
249 | | */ |
250 | | inline already_AddRefed<nsIUUIDGenerator> |
251 | | GetUUIDGenerator() |
252 | 12 | { |
253 | 12 | return already_AddRefed<nsIUUIDGenerator>(XPCOMService_GetUUIDGenerator()); |
254 | 12 | } |
255 | | } // namespace services |
256 | | } // namespace mozilla |
257 | | #endif // defined(MOZILLA_INTERNAL_API) |
258 | | class nsIGfxInfo; |
259 | | |
260 | | #ifdef MOZILLA_INTERNAL_API |
261 | | extern "C" { |
262 | | /** |
263 | | * NOTE: Don't call this method directly, instead call mozilla::services::Get{0}. |
264 | | * It is used to expose XPCOM services to rust code. The return value is already addrefed. |
265 | | */ |
266 | | nsIGfxInfo* XPCOMService_GetGfxInfo(); |
267 | | } // extern "C" |
268 | | |
269 | | namespace mozilla { |
270 | | namespace services { |
271 | | /** |
272 | | * Fetch a cached instance of the GfxInfo. |
273 | | * This function will return nullptr during XPCOM shutdown. |
274 | | */ |
275 | | inline already_AddRefed<nsIGfxInfo> |
276 | | GetGfxInfo() |
277 | 0 | { |
278 | 0 | return already_AddRefed<nsIGfxInfo>(XPCOMService_GetGfxInfo()); |
279 | 0 | } |
280 | | } // namespace services |
281 | | } // namespace mozilla |
282 | | #endif // defined(MOZILLA_INTERNAL_API) |
283 | | class nsISocketTransportService; |
284 | | |
285 | | #ifdef MOZILLA_INTERNAL_API |
286 | | extern "C" { |
287 | | /** |
288 | | * NOTE: Don't call this method directly, instead call mozilla::services::Get{0}. |
289 | | * It is used to expose XPCOM services to rust code. The return value is already addrefed. |
290 | | */ |
291 | | nsISocketTransportService* XPCOMService_GetSocketTransportService(); |
292 | | } // extern "C" |
293 | | |
294 | | namespace mozilla { |
295 | | namespace services { |
296 | | /** |
297 | | * Fetch a cached instance of the SocketTransportService. |
298 | | * This function will return nullptr during XPCOM shutdown. |
299 | | */ |
300 | | inline already_AddRefed<nsISocketTransportService> |
301 | | GetSocketTransportService() |
302 | 2 | { |
303 | 2 | return already_AddRefed<nsISocketTransportService>(XPCOMService_GetSocketTransportService()); |
304 | 2 | } |
305 | | } // namespace services |
306 | | } // namespace mozilla |
307 | | #endif // defined(MOZILLA_INTERNAL_API) |
308 | | class nsIStreamTransportService; |
309 | | |
310 | | #ifdef MOZILLA_INTERNAL_API |
311 | | extern "C" { |
312 | | /** |
313 | | * NOTE: Don't call this method directly, instead call mozilla::services::Get{0}. |
314 | | * It is used to expose XPCOM services to rust code. The return value is already addrefed. |
315 | | */ |
316 | | nsIStreamTransportService* XPCOMService_GetStreamTransportService(); |
317 | | } // extern "C" |
318 | | |
319 | | namespace mozilla { |
320 | | namespace services { |
321 | | /** |
322 | | * Fetch a cached instance of the StreamTransportService. |
323 | | * This function will return nullptr during XPCOM shutdown. |
324 | | */ |
325 | | inline already_AddRefed<nsIStreamTransportService> |
326 | | GetStreamTransportService() |
327 | 0 | { |
328 | 0 | return already_AddRefed<nsIStreamTransportService>(XPCOMService_GetStreamTransportService()); |
329 | 0 | } |
330 | | } // namespace services |
331 | | } // namespace mozilla |
332 | | #endif // defined(MOZILLA_INTERNAL_API) |
333 | | class nsICacheStorageService; |
334 | | |
335 | | #ifdef MOZILLA_INTERNAL_API |
336 | | extern "C" { |
337 | | /** |
338 | | * NOTE: Don't call this method directly, instead call mozilla::services::Get{0}. |
339 | | * It is used to expose XPCOM services to rust code. The return value is already addrefed. |
340 | | */ |
341 | | nsICacheStorageService* XPCOMService_GetCacheStorageService(); |
342 | | } // extern "C" |
343 | | |
344 | | namespace mozilla { |
345 | | namespace services { |
346 | | /** |
347 | | * Fetch a cached instance of the CacheStorageService. |
348 | | * This function will return nullptr during XPCOM shutdown. |
349 | | */ |
350 | | inline already_AddRefed<nsICacheStorageService> |
351 | | GetCacheStorageService() |
352 | 0 | { |
353 | 0 | return already_AddRefed<nsICacheStorageService>(XPCOMService_GetCacheStorageService()); |
354 | 0 | } |
355 | | } // namespace services |
356 | | } // namespace mozilla |
357 | | #endif // defined(MOZILLA_INTERNAL_API) |
358 | | class nsIURIClassifier; |
359 | | |
360 | | #ifdef MOZILLA_INTERNAL_API |
361 | | extern "C" { |
362 | | /** |
363 | | * NOTE: Don't call this method directly, instead call mozilla::services::Get{0}. |
364 | | * It is used to expose XPCOM services to rust code. The return value is already addrefed. |
365 | | */ |
366 | | nsIURIClassifier* XPCOMService_GetURIClassifier(); |
367 | | } // extern "C" |
368 | | |
369 | | namespace mozilla { |
370 | | namespace services { |
371 | | /** |
372 | | * Fetch a cached instance of the URIClassifier. |
373 | | * This function will return nullptr during XPCOM shutdown. |
374 | | */ |
375 | | inline already_AddRefed<nsIURIClassifier> |
376 | | GetURIClassifier() |
377 | 0 | { |
378 | 0 | return already_AddRefed<nsIURIClassifier>(XPCOMService_GetURIClassifier()); |
379 | 0 | } |
380 | | } // namespace services |
381 | | } // namespace mozilla |
382 | | #endif // defined(MOZILLA_INTERNAL_API) |
383 | | class nsIHttpActivityDistributor; |
384 | | |
385 | | #ifdef MOZILLA_INTERNAL_API |
386 | | extern "C" { |
387 | | /** |
388 | | * NOTE: Don't call this method directly, instead call mozilla::services::Get{0}. |
389 | | * It is used to expose XPCOM services to rust code. The return value is already addrefed. |
390 | | */ |
391 | | nsIHttpActivityDistributor* XPCOMService_GetActivityDistributor(); |
392 | | } // extern "C" |
393 | | |
394 | | namespace mozilla { |
395 | | namespace services { |
396 | | /** |
397 | | * Fetch a cached instance of the ActivityDistributor. |
398 | | * This function will return nullptr during XPCOM shutdown. |
399 | | */ |
400 | | inline already_AddRefed<nsIHttpActivityDistributor> |
401 | | GetActivityDistributor() |
402 | 0 | { |
403 | 0 | return already_AddRefed<nsIHttpActivityDistributor>(XPCOMService_GetActivityDistributor()); |
404 | 0 | } |
405 | | } // namespace services |
406 | | } // namespace mozilla |
407 | | #endif // defined(MOZILLA_INTERNAL_API) |
408 | | namespace mozilla { |
409 | | class IHistory; |
410 | | } // namespace mozilla |
411 | | |
412 | | #ifdef MOZILLA_INTERNAL_API |
413 | | extern "C" { |
414 | | /** |
415 | | * NOTE: Don't call this method directly, instead call mozilla::services::Get{0}. |
416 | | * It is used to expose XPCOM services to rust code. The return value is already addrefed. |
417 | | */ |
418 | | mozilla::IHistory* XPCOMService_GetHistoryService(); |
419 | | } // extern "C" |
420 | | |
421 | | namespace mozilla { |
422 | | namespace services { |
423 | | /** |
424 | | * Fetch a cached instance of the HistoryService. |
425 | | * This function will return nullptr during XPCOM shutdown. |
426 | | */ |
427 | | inline already_AddRefed<mozilla::IHistory> |
428 | | GetHistoryService() |
429 | 0 | { |
430 | 0 | return already_AddRefed<mozilla::IHistory>(XPCOMService_GetHistoryService()); |
431 | 0 | } |
432 | | } // namespace services |
433 | | } // namespace mozilla |
434 | | #endif // defined(MOZILLA_INTERNAL_API) |
435 | | class mozIThirdPartyUtil; |
436 | | |
437 | | #ifdef MOZILLA_INTERNAL_API |
438 | | extern "C" { |
439 | | /** |
440 | | * NOTE: Don't call this method directly, instead call mozilla::services::Get{0}. |
441 | | * It is used to expose XPCOM services to rust code. The return value is already addrefed. |
442 | | */ |
443 | | mozIThirdPartyUtil* XPCOMService_GetThirdPartyUtil(); |
444 | | } // extern "C" |
445 | | |
446 | | namespace mozilla { |
447 | | namespace services { |
448 | | /** |
449 | | * Fetch a cached instance of the ThirdPartyUtil. |
450 | | * This function will return nullptr during XPCOM shutdown. |
451 | | */ |
452 | | inline already_AddRefed<mozIThirdPartyUtil> |
453 | | GetThirdPartyUtil() |
454 | 0 | { |
455 | 0 | return already_AddRefed<mozIThirdPartyUtil>(XPCOMService_GetThirdPartyUtil()); |
456 | 0 | } |
457 | | } // namespace services |
458 | | } // namespace mozilla |
459 | | #endif // defined(MOZILLA_INTERNAL_API) |
460 | | #endif // !defined(mozilla_Services_h) |