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/.
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'
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',
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',
71 'constructor': 'URIFixup',
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',
80 'cid': '{56ebedd4-6ccf-48e8-bdae-adc77f044567}',
82 '@mozilla.org/network/protocol/about;1?what=%s' % path
83 for path in about_pages
85 'legacy_constructor': 'nsAboutRedirector::Create',
86 'headers': ['/docshell/base/nsAboutRedirector.h'],
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'],
99 'URI_LOADABLE_BY_ANYONE',
100 'URI_NON_PERSISTABLE',
101 'URI_DOES_NOT_RETURN_DATA',
105 'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
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,
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',
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',
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'],
137 'cid': '{9f6d5d40-90e7-11d3-af80-00a024ffc08c}',
138 'contract_ids': ['@mozilla.org/uriloader;1'],
139 'type': 'nsURILoader',
140 'headers': ['nsURILoader.h'],
143 'cid': '{f30bc0a2-958b-4287-bf62-ce38ba0c811e}',
144 'contract_ids': ['@mozilla.org/webnavigation-info;1'],
145 'type': 'nsWebNavigationInfo',
146 'headers': ['/docshell/base/nsWebNavigationInfo.h'],
150 if defined('MOZ_ENABLE_DBUS'):
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'],
161 if buildconfig.substs['MOZ_WIDGET_TOOLKIT'] == 'android':
163 # Android has its own externel-helper-app-service, so we omit
164 # that here for nsExternalHelperAppService.
166 'cid': '{a7f800e0-4306-11d4-98d0-001083010e9b}',
168 '@mozilla.org/mime;1',
169 '@mozilla.org/uriloader/external-protocol-service;1',
171 'type': 'nsExternalHelperAppService',
172 'constructor': 'nsExternalHelperAppService::GetSingleton',
173 'headers': ['nsExternalHelperAppService.h'],
174 'init_method': 'Init',
175 'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
181 'cid': '{a7f800e0-4306-11d4-98d0-001083010e9b}',
183 '@mozilla.org/mime;1',
184 '@mozilla.org/uriloader/external-helper-app-service;1',
185 '@mozilla.org/uriloader/external-protocol-service;1',
187 'type': 'nsExternalHelperAppService',
188 'constructor': 'nsExternalHelperAppService::GetSingleton',
189 'headers': ['nsExternalHelperAppService.h'],
190 'init_method': 'Init',
191 'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,