Bug 1852754: part 9) Add tests for dynamically loading <link rel="prefetch"> elements...
[gecko.git] / xpcom / build / components.conf
bloba34076a525b7b54e347837d5133d4d7510237c7f
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 Classes = [
8     {
9         'cid': '{c521a612-2aad-46db-b6ab-3b821fb150b1}',
10         'contract_ids': ['@mozilla.org/binaryinputstream;1'],
11         'type': 'nsBinaryInputStream',
12         'headers': ['/xpcom/io/nsBinaryStream.h'],
13     },
14     {
15         'cid': '{86c37b9a-74e7-4672-844e-6e7dd83ba484}',
16         'contract_ids': ['@mozilla.org/binaryoutputstream;1'],
17         'type': 'nsBinaryOutputStream',
18         'headers': ['/xpcom/io/nsBinaryStream.h'],
19     },
20     {
21         'cid': '{61ba33c0-3031-11d3-8cd0-0060b0fc14a3}',
22         'contract_ids': ['@mozilla.org/network/protocol;1?name=chrome'],
23         'type': 'nsChromeProtocolHandler',
24         'headers': ['/chrome/nsChromeProtocolHandler.h'],
25         'protocol_config': {
26             'scheme': 'chrome',
27             'flags': [
28                 'URI_STD',
29                 'URI_IS_UI_RESOURCE',
30                 'URI_IS_LOCAL_RESOURCE',
31                 'URI_HAS_WEB_EXPOSED_ORIGIN',
32             ],
33         },
34     },
35     {
36         'name': 'ChromeRegistry',
37         'cid': '{47049e42-1d87-482a-984d-56ae185e367a}',
38         'contract_ids': ['@mozilla.org/chrome/chrome-registry;1'],
39         'singleton': True,
40         'type': 'nsChromeRegistry',
41         'headers': ['/chrome/nsChromeRegistry.h'],
42         'constructor': 'nsChromeRegistry::GetSingleton',
43     },
44     {
45         'js_name': 'console',
46         'cid': '{7e3ff85c-1dd2-11b2-8d4b-eb452cb0ff40}',
47         'contract_ids': ['@mozilla.org/consoleservice;1'],
48         'interfaces': ['nsIConsoleService'],
49         'type': 'nsConsoleService',
50         'headers': ['/xpcom/base/nsConsoleService.h'],
51         'init_method': 'Init',
52     },
53     {
54         'cid': '{678c50b8-6bcb-4ad0-b9b8-c81175955199}',
55         'contract_ids': ['@mozilla.org/hash-property-bag;1'],
56         'type': 'nsHashPropertyBagCC',
57         'headers': ['nsHashPropertyBag.h'],
58     },
59     {
60         'cid': '{eb833911-4f49-4623-845f-e58a8e6de4c2}',
61         'contract_ids': ['@mozilla.org/io-util;1'],
62         'type': 'nsIOUtil',
63         'headers': ['/xpcom/io/nsIOUtil.h'],
64     },
65     {
66         'cid': '{2e23e220-60be-11d3-8c4a-000064657374}',
67         'contract_ids': ['@mozilla.org/file/local;1'],
68         'legacy_constructor': 'nsLocalFileConstructor',
69     },
70     {
71         'cid': '{00bd71fb-7f09-4ec3-96af-a0b522b77969}',
72         'contract_ids': ['@mozilla.org/memory-info-dumper;1'],
73         'type': 'nsMemoryInfoDumper',
74         'headers': ['mozilla/nsMemoryInfoDumper.h'],
75     },
76     {
77         'cid': '{fb97e4f5-32dd-497a-baa2-7d1e55079910}',
78         'contract_ids': ['@mozilla.org/memory-reporter-manager;1'],
79         'type': 'nsMemoryReporterManager',
80         'headers': ['/xpcom/base/nsMemoryReporterManager.h'],
81         'init_method': 'Init',
82         'processes': ProcessSelector.ALLOW_IN_GPU_RDD_VR_SOCKET_UTILITY_AND_GMPLUGIN_PROCESS,
83     },
84     {
85         'cid': '{7b4eeb20-d781-11d4-8a83-0010a4e0c9ca}',
86         'contract_ids': ['@mozilla.org/process/util;1'],
87         'type': 'nsProcess',
88         'headers': ['nsProcess.h'],
89     },
90     {
91         'cid': '{aaf68860-f849-40ee-bb7a-b229bce036a3}',
92         'contract_ids': ['@mozilla.org/scriptablebase64encoder;1'],
93         'type': 'nsScriptableBase64Encoder',
94         'headers': ['/xpcom/io/nsScriptableBase64Encoder.h'],
95     },
96     {
97         'cid': '{43ebf210-8a7b-4ddb-a83d-b87c51a058db}',
98         'contract_ids': ['@mozilla.org/securityconsole/message;1'],
99         'type': 'nsSecurityConsoleMessage',
100         'headers': ['/xpcom/base/nsSecurityConsoleMessage.h'],
101     },
102     {
103         'cid': '{669a9795-6ff7-4ed4-9150-c34ce2971b63}',
104         'contract_ids': ['@mozilla.org/storagestream;1'],
105         'type': 'nsStorageStream',
106         'headers': ['nsStorageStream.h'],
107     },
108     {
109         'cid': '{acf8dc41-4a25-11d3-9890-006008962422}',
110         'contract_ids': ['@mozilla.org/supports-cstring;1'],
111         'type': 'nsSupportsCString',
112         'headers': ['nsSupportsPrimitives.h'],
113     },
114     {
115         'cid': '{acf8dc4a-4a25-11d3-9890-006008962422}',
116         'contract_ids': ['@mozilla.org/supports-char;1'],
117         'type': 'nsSupportsChar',
118         'headers': ['nsSupportsPrimitives.h'],
119     },
120     {
121         'cid': '{cbf86871-4ac0-11d3-baea-00805f8a5dd7}',
122         'contract_ids': ['@mozilla.org/supports-double;1'],
123         'type': 'nsSupportsDouble',
124         'headers': ['nsSupportsPrimitives.h'],
125     },
126     {
127         'cid': '{cbf86870-4ac0-11d3-baea-00805f8a5dd7}',
128         'contract_ids': ['@mozilla.org/supports-float;1'],
129         'type': 'nsSupportsFloat',
130         'headers': ['nsSupportsPrimitives.h'],
131     },
132     {
133         'cid': '{a99febba-1dd1-11b2-a943-b02334a6d083}',
134         'contract_ids': ['@mozilla.org/supports-interface-pointer;1'],
135         'type': 'nsSupportsInterfacePointer',
136         'headers': ['nsSupportsPrimitives.h'],
137     },
138     {
139         'cid': '{acf8dc43-4a25-11d3-9890-006008962422}',
140         'contract_ids': ['@mozilla.org/supports-PRBool;1'],
141         'type': 'nsSupportsPRBool',
142         'headers': ['nsSupportsPrimitives.h'],
143     },
144     {
145         'cid': '{acf8dc4b-4a25-11d3-9890-006008962422}',
146         'contract_ids': ['@mozilla.org/supports-PRInt16;1'],
147         'type': 'nsSupportsPRInt16',
148         'headers': ['nsSupportsPrimitives.h'],
149     },
150     {
151         'cid': '{acf8dc4c-4a25-11d3-9890-006008962422}',
152         'contract_ids': ['@mozilla.org/supports-PRInt32;1'],
153         'type': 'nsSupportsPRInt32',
154         'headers': ['nsSupportsPrimitives.h'],
155     },
156     {
157         'cid': '{acf8dc4d-4a25-11d3-9890-006008962422}',
158         'contract_ids': ['@mozilla.org/supports-PRInt64;1'],
159         'type': 'nsSupportsPRInt64',
160         'headers': ['nsSupportsPrimitives.h'],
161     },
162     {
163         'cid': '{acf8dc49-4a25-11d3-9890-006008962422}',
164         'contract_ids': ['@mozilla.org/supports-PRTime;1'],
165         'type': 'nsSupportsPRTime',
166         'headers': ['nsSupportsPrimitives.h'],
167     },
168     {
169         'cid': '{acf8dc46-4a25-11d3-9890-006008962422}',
170         'contract_ids': ['@mozilla.org/supports-PRUint16;1'],
171         'type': 'nsSupportsPRUint16',
172         'headers': ['nsSupportsPrimitives.h'],
173     },
174     {
175         'cid': '{acf8dc47-4a25-11d3-9890-006008962422}',
176         'contract_ids': ['@mozilla.org/supports-PRUint32;1'],
177         'type': 'nsSupportsPRUint32',
178         'headers': ['nsSupportsPrimitives.h'],
179     },
180     {
181         'cid': '{acf8dc48-4a25-11d3-9890-006008962422}',
182         'contract_ids': ['@mozilla.org/supports-PRUint64;1'],
183         'type': 'nsSupportsPRUint64',
184         'headers': ['nsSupportsPrimitives.h'],
185     },
186     {
187         'cid': '{acf8dc44-4a25-11d3-9890-006008962422}',
188         'contract_ids': ['@mozilla.org/supports-PRUint8;1'],
189         'type': 'nsSupportsPRUint8',
190         'headers': ['nsSupportsPrimitives.h'],
191     },
192     {
193         'cid': '{acf8dc42-4a25-11d3-9890-006008962422}',
194         'contract_ids': ['@mozilla.org/supports-string;1'],
195         'type': 'nsSupportsString',
196         'headers': ['nsSupportsPrimitives.h'],
197     },
198     {
199         'js_name': 'sysinfo',
200         'cid': '{d962398a-99e5-49b2-857a-c159049c7f6c}',
201         'contract_ids': ['@mozilla.org/system-info;1'],
202         'interfaces': ['nsIPropertyBag2', 'nsISystemInfo'],
203         'type': 'nsSystemInfo',
204         'headers': ['nsSystemInfo.h'],
205         'init_method': 'Init',
206         'overridable': True,
207     },
208     {
209         'js_name': 'tm',
210         'cid': '{7a4204c6-e45a-4c37-8ebb-6709a22c917c}',
211         'contract_ids': ['@mozilla.org/thread-manager;1'],
212         'interfaces': ['nsIThreadManager'],
213         'legacy_constructor': 'nsThreadManagerGetSingleton',
214         'headers': ['/xpcom/build/XPCOMModule.h'],
215     },
216     {
217         'js_name': 'uuid',
218         'name': 'UUIDGenerator',
219         'cid': '{706d36bb-bf79-4293-81f2-8f6828c18f9d}',
220         'contract_ids': ['@mozilla.org/uuid-generator;1'],
221         'interfaces': ['nsIUUIDGenerator'],
222         'type': 'nsUUIDGenerator',
223         'headers': ['/xpcom/base/nsUUIDGenerator.h'],
224         'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
225     },
226     {
227         'cid': '{0d6ea1d0-879c-11d5-90ef-0010a4e73d9a}',
228         'contract_ids': ['@mozilla.org/variant;1'],
229         'type': 'nsVariantCC',
230         'headers': ['nsVariant.h'],
231     },
232     {
233         'js_name': 'vc',
234         'cid': '{c6e47036-ca94-4be3-963a-9abd8705f7a8}',
235         'contract_ids': ['@mozilla.org/xpcom/version-comparator;1'],
236         'interfaces': ['nsIVersionComparator'],
237         'type': 'nsVersionComparatorImpl',
238         'headers': ['/xpcom/base/nsVersionComparatorImpl.h'],
239     },
240     {
241         'cid': '{dfac10a9-dd24-43cf-a095-6ffa2e4b6a6c}',
242         'contract_ids': ['@mozilla.org/xpcom/ini-parser-factory;1'],
243         'type': 'nsINIParserFactory',
244         'headers': ['/xpcom/ds/nsINIParserImpl.h'],
245         'processes': ProcessSelector.ALLOW_IN_GPU_RDD_VR_SOCKET_AND_UTILITY_PROCESS,
246     },
249 if buildconfig.substs['OS_ARCH'] == 'WINNT':
250     Classes += [
251         {
252             'cid': '{a53bc624-d577-4839-b8ec-bb5040a52ff4}',
253             'contract_ids': ['@mozilla.org/windows-registry-key;1'],
254             'legacy_constructor': 'nsWindowsRegKeyConstructor',
255             'headers': ['nsWindowsRegKey.h'],
256         },
257     ]
259 if buildconfig.substs['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
260     Classes += [
261         {
262             'cid': '{b0f20595-88ce-4738-a1a4-24de78eb8051}',
263             'contract_ids': ['@mozilla.org/mac-preferences-reader;1'],
264             'type': 'nsMacPreferencesReader',
265             'headers': ['mozilla/nsMacPreferencesReader.h'],
266         },
267     ]