Backed out changeset e9d46c179688 (bug 1855759) for causing build bustages CLOSED...
[gecko.git] / docshell / build / components.conf
blobb3071cc549d27fb6f8014cb47e8150418fe01cd1
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 about_pages = [
8     'about',
9     'addons',
10     'buildconfig',
11     'certificate',
12     'checkerboard',
13     'config',
14     'crashcontent',
15     'crashparent',
16     'crashgpu',
17     'crashextensions',
18     'credits',
19     'httpsonlyerror',
20     'license',
21     'logging',
22     'logo',
23     'memory',
24     'mozilla',
25     'neterror',
26     'networking',
27     'performance',
28     'plugins',
29     'processes',
30     'serviceworkers',
31     'srcdoc',
32     'support',
33     'telemetry',
34     'translations',
35     'url-classifier',
36     'webrtc',
39 if defined('MOZ_CRASHREPORTER'):
40     about_pages.append('crashes')
41 if buildconfig.substs['MOZ_WIDGET_TOOLKIT'] != 'android':
42     about_pages.append('profiles')
43 if buildconfig.substs['MOZ_WIDGET_TOOLKIT'] == 'windows':
44     about_pages.append('third-party')
45     about_pages.append('windows-messages')
46 if not defined('MOZ_GLEAN_ANDROID'):
47     about_pages.append('glean')
49 Headers = ['/docshell/build/nsDocShellModule.h']
51 InitFunc = 'mozilla::InitDocShellModule'
52 UnloadFunc = 'mozilla::UnloadDocShellModule'
54 Classes = [
55     {
56         'name': 'DocLoader',
57         'cid': '{057b04d0-0ccf-11d2-beba-00805f8a66dc}',
58         'contract_ids': ['@mozilla.org/docloaderservice;1'],
59         'type': 'nsDocLoader',
60         'headers': ['nsDocLoader.h'],
61         'init_method': 'Init',
62     },
63     {
64         'name': 'URIFixup',
65         'js_name': 'uriFixup',
66         'cid': '{c6cf88b7-452e-47eb-bdc9-86e3561648ef}',
67         'contract_ids': ['@mozilla.org/docshell/uri-fixup;1'],
68         'interfaces': ['nsIURIFixup'],
69         'esModule': 'resource://gre/modules/URIFixup.sys.mjs',
70         'singleton': True,
71         'constructor': 'URIFixup',
72     },
73     {
74         'cid': '{33d75835-722f-42c0-89cc-44f328e56a86}',
75         'contract_ids': ['@mozilla.org/docshell/uri-fixup-info;1'],
76         'esModule': 'resource://gre/modules/URIFixup.sys.mjs',
77         'constructor': 'URIFixupInfo',
78     },
79     {
80         'cid': '{56ebedd4-6ccf-48e8-bdae-adc77f044567}',
81         'contract_ids': [
82             '@mozilla.org/network/protocol/about;1?what=%s' % path
83             for path in about_pages
84         ],
85         'legacy_constructor': 'nsAboutRedirector::Create',
86         'headers': ['/docshell/base/nsAboutRedirector.h'],
87     },
88     {
89         'name': 'ExternalProtocolHandler',
90         'cid': '{bd6390c8-fbea-11d4-98f6-001083010e9b}',
91         'contract_ids': ['@mozilla.org/network/protocol;1?name=default'],
92         'type': 'nsExternalProtocolHandler',
93         'headers': ['/uriloader/exthandler/nsExternalProtocolHandler.h'],
94         'protocol_config': {
95             'scheme': 'default',
96             'flags': [
97                 'URI_NORELATIVE',
98                 'URI_NOAUTH',
99                 'URI_LOADABLE_BY_ANYONE',
100                 'URI_NON_PERSISTABLE',
101                 'URI_DOES_NOT_RETURN_DATA',
102             ],
103             'default_port': 0,
104         },
105         'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
106     },
107     {
108         'cid': '{95790842-75a0-430d-98bf-f5ce3788ea6d}',
109         'contract_ids': ['@mozilla.org/ospermissionrequest;1'],
110         'type': 'nsOSPermissionRequest',
111         'headers': ['nsOSPermissionRequest.h'],
112         'processes': ProcessSelector.MAIN_PROCESS_ONLY,
113     },
114     {
115         'name': 'Prefetch',
116         'cid': '{6b8bdffc-3394-417d-be83-a81b7c0f63bf}',
117         'contract_ids': ['@mozilla.org/prefetch-service;1'],
118         'type': 'nsPrefetchService',
119         'headers': ['/uriloader/prefetch/nsPrefetchService.h'],
120         'init_method': 'Init',
121     },
122     {
123         'cid': '{c4b6fb7c-bfb1-49dc-a65f-035796524b53}',
124         'contract_ids': ['@mozilla.org/uriloader/handler-service;1'],
125         'type': 'nsIHandlerService',
126         'headers': ['ContentHandlerService.h'],
127         'constructor': 'mozilla::dom::ContentHandlerService::Create',
128     },
129     {
130         'cid': '{bc0017e3-2438-47be-a567-41db58f17627}',
131         'contract_ids': ['@mozilla.org/uriloader/local-handler-app;1'],
132         'type': 'PlatformLocalHandlerApp_t',
133         'headers': ['/uriloader/exthandler/nsLocalHandlerApp.h'],
134     },
135     {
136         'name': 'URILoader',
137         'cid': '{9f6d5d40-90e7-11d3-af80-00a024ffc08c}',
138         'contract_ids': ['@mozilla.org/uriloader;1'],
139         'type': 'nsURILoader',
140         'headers': ['nsURILoader.h'],
141     },
142     {
143         'cid': '{f30bc0a2-958b-4287-bf62-ce38ba0c811e}',
144         'contract_ids': ['@mozilla.org/webnavigation-info;1'],
145         'type': 'nsWebNavigationInfo',
146         'headers': ['/docshell/base/nsWebNavigationInfo.h'],
147     },
150 if defined('MOZ_ENABLE_DBUS'):
151     Classes += [
152         {
153             'name': 'DBusHandlerApp',
154             'cid': '{6c3c274b-4cbf-4bb5-a635-05ad2cbb6535}',
155             'contract_ids': ['@mozilla.org/uriloader/dbus-handler-app;1'],
156             'type': 'nsDBusHandlerApp',
157             'headers': ['/uriloader/exthandler/nsDBusHandlerApp.h'],
158         },
159     ]
161 if buildconfig.substs['MOZ_WIDGET_TOOLKIT'] == 'android':
162     Classes += [
163         # Android has its own externel-helper-app-service, so we omit
164         # that here for nsExternalHelperAppService.
165         {
166             'cid': '{a7f800e0-4306-11d4-98d0-001083010e9b}',
167             'contract_ids': [
168                 '@mozilla.org/mime;1',
169                 '@mozilla.org/uriloader/external-protocol-service;1',
170             ],
171             'type': 'nsExternalHelperAppService',
172             'constructor': 'nsExternalHelperAppService::GetSingleton',
173             'headers': ['nsExternalHelperAppService.h'],
174             'init_method': 'Init',
175             'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
176         },
177     ]
178 else:
179     Classes += [
180         {
181             'cid': '{a7f800e0-4306-11d4-98d0-001083010e9b}',
182             'contract_ids': [
183                 '@mozilla.org/mime;1',
184                 '@mozilla.org/uriloader/external-helper-app-service;1',
185                 '@mozilla.org/uriloader/external-protocol-service;1',
186             ],
187             'type': 'nsExternalHelperAppService',
188             'constructor': 'nsExternalHelperAppService::GetSingleton',
189             'headers': ['nsExternalHelperAppService.h'],
190             'init_method': 'Init',
191             'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
192         },
193     ]