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