mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
ec5835855a
Differential Revision: https://phabricator.services.mozilla.com/D113788
667 lines
26 KiB
Python
667 lines
26 KiB
Python
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
Headers = [
|
|
'/netwerk/build/nsNetModule.h'
|
|
]
|
|
|
|
InitFunc = 'nsNetStartup'
|
|
UnloadFunc = 'nsNetShutdown'
|
|
|
|
Classes = [
|
|
{
|
|
'cid': '{3014dde6-aa1c-41db-87d0-48764a3710f6}',
|
|
'contract_ids': ['@mozilla.org/io/arraybuffer-input-stream;1'],
|
|
'type': 'ArrayBufferInputStream',
|
|
'headers': ['/netwerk/base/ArrayBufferInputStream.h'],
|
|
},
|
|
{
|
|
'js_name': 'loadContextInfo',
|
|
'cid': '{62d4b190-3642-4450-b019-d1c1fba56025}',
|
|
'contract_ids': ['@mozilla.org/load-context-info-factory;1'],
|
|
'interfaces': ['nsILoadContextInfoFactory'],
|
|
'type': 'mozilla::net::LoadContextInfoFactory',
|
|
'headers': ['mozilla/LoadContextInfo.h'],
|
|
},
|
|
{
|
|
'name': 'CacheStorage',
|
|
'js_name': 'cache2',
|
|
'cid': '{ea70b098-5014-4e21-aee1-75e6b2c4b8e0}',
|
|
'contract_ids': [
|
|
'@mozilla.org/netwerk/cache-storage-service;1',
|
|
'@mozilla.org/network/cache-storage-service;1',
|
|
],
|
|
'interfaces': ['nsICacheStorageService'],
|
|
'singleton': True,
|
|
'type': 'mozilla::net::CacheStorageService',
|
|
'headers': ['CacheStorageService.h'],
|
|
},
|
|
{
|
|
'cid': '{02bf7a2a-39d8-4a23-a50c-2cbb085ab7a5}',
|
|
'contract_ids': ['@mozilla.org/network/application-cache-service;1'],
|
|
'singleton': True,
|
|
'type': 'nsApplicationCacheService',
|
|
'headers': ['nsApplicationCacheService.h'],
|
|
},
|
|
{
|
|
'cid': '{e746a8b1-c97a-4fc5-baa4-66607521bd08}',
|
|
'contract_ids': ['@mozilla.org/network/async-stream-copier;1'],
|
|
'type': 'nsAsyncStreamCopier',
|
|
'headers': ['/netwerk/base/nsAsyncStreamCopier.h'],
|
|
},
|
|
{
|
|
'cid': '{6eae857e-4ba9-11e3-9b39-b4036188709b}',
|
|
'contract_ids': ['@mozilla.org/network/atomic-file-output-stream;1'],
|
|
'type': 'nsAtomicFileOutputStream',
|
|
'headers': ['nsFileStreams.h'],
|
|
},
|
|
{
|
|
'cid': '{62147d1e-ef6a-40e8-aaf8-d039f5caaa81}',
|
|
'contract_ids': ['@mozilla.org/network/background-file-saver;1?mode=outputstream'],
|
|
'type': 'mozilla::net::BackgroundFileSaverOutputStream',
|
|
'headers': ['/netwerk/base/BackgroundFileSaver.h'],
|
|
'init_method': 'Init',
|
|
},
|
|
{
|
|
'cid': '{208de7fc-a781-4031-bbae-cc0de539f61a}',
|
|
'contract_ids': ['@mozilla.org/network/background-file-saver;1?mode=streamlistener'],
|
|
'type': 'mozilla::net::BackgroundFileSaverStreamListener',
|
|
'headers': ['/netwerk/base/BackgroundFileSaver.h'],
|
|
'init_method': 'Init',
|
|
},
|
|
{
|
|
'cid': '{a2027ec6-ba0d-4c72-805d-148233f5f33c}',
|
|
'contract_ids': ['@mozilla.org/network/binary-detector;1'],
|
|
'legacy_constructor': 'CreateNewBinaryDetectorFactory',
|
|
},
|
|
{
|
|
'cid': '{9226888e-da08-11d3-8cda-0060b0fc14a3}',
|
|
'contract_ids': ['@mozilla.org/network/buffered-input-stream;1'],
|
|
'legacy_constructor': 'nsBufferedInputStream::Create',
|
|
'headers': ['/netwerk/base/nsBufferedStreams.h'],
|
|
},
|
|
{
|
|
'cid': '{9868b4ce-da08-11d3-8cda-0060b0fc14a3}',
|
|
'contract_ids': ['@mozilla.org/network/buffered-output-stream;1'],
|
|
'legacy_constructor': 'nsBufferedOutputStream::Create',
|
|
'headers': ['/netwerk/base/nsBufferedStreams.h'],
|
|
},
|
|
{
|
|
'cid': '{6c84aec9-29a5-4264-8fbc-bee8f922ea67}',
|
|
'contract_ids': ['@mozilla.org/network/cache-service;1'],
|
|
'legacy_constructor': 'nsCacheServiceConstructor',
|
|
},
|
|
{
|
|
'cid': '{bdbe0555-fc3d-4f7b-9205-c309ceb2d641}',
|
|
'contract_ids': ['@mozilla.org/network/captive-portal-service;1'],
|
|
'singleton': True,
|
|
'type': 'nsICaptivePortalService',
|
|
'constructor': 'mozilla::net::CaptivePortalService::GetSingleton',
|
|
'headers': ['mozilla/net/CaptivePortalService.h'],
|
|
},
|
|
{
|
|
'cid': '{c79eb3c6-091a-45a6-8544-5a8d1ab79537}',
|
|
'contract_ids': ['@mozilla.org/network/dashboard;1'],
|
|
'type': 'mozilla::net::Dashboard',
|
|
'headers': ['mozilla/net/Dashboard.h'],
|
|
},
|
|
{
|
|
'cid': '{b0ff4572-dae4-4bef-a092-83c1b88f6be9}',
|
|
'contract_ids': ['@mozilla.org/network/dns-service;1'],
|
|
'singleton': True,
|
|
'type': 'nsIDNSService',
|
|
'constructor': 'nsDNSService::GetXPCOMSingleton',
|
|
'headers': ['/netwerk/dns/nsDNSService2.h'],
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'cid': '{4ffae79e-57bd-4d7a-a0c9-0045a17b3615}',
|
|
'contract_ids': ['@mozilla.org/network/native-dns-override;1'],
|
|
'singleton': True,
|
|
'type': 'nsINativeDNSResolverOverride',
|
|
'constructor': 'mozilla::net::NativeDNSResolverOverride::GetSingleton',
|
|
'headers': ['/netwerk/dns/GetAddrInfo.h'],
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'cid': '{510a86bb-6019-4ed1-bb4f-965cffd23ece}',
|
|
'contract_ids': ['@mozilla.org/network/downloader;1'],
|
|
'type': 'nsDownloader',
|
|
'headers': ['/netwerk/base/nsDownloader.h'],
|
|
},
|
|
{
|
|
'js_name': 'eTLD',
|
|
'cid': '{cb9abbae-66b6-4609-8594-5c4ff300888e}',
|
|
'contract_ids': ['@mozilla.org/network/effective-tld-service;1'],
|
|
'interfaces': ['nsIEffectiveTLDService'],
|
|
'singleton': True,
|
|
'type': 'nsEffectiveTLDService',
|
|
'headers': ['/netwerk/dns/nsEffectiveTLDService.h'],
|
|
'init_method': 'Init',
|
|
},
|
|
{
|
|
'cid': '{be9a53ae-c7e9-11d3-8cda-0060b0fc14a3}',
|
|
'contract_ids': ['@mozilla.org/network/file-input-stream;1'],
|
|
'legacy_constructor': 'nsFileInputStream::Create',
|
|
'headers': ['nsFileStreams.h'],
|
|
},
|
|
{
|
|
'cid': '{c272fee0-c7e9-11d3-8cda-0060b0fc14a3}',
|
|
'contract_ids': ['@mozilla.org/network/file-output-stream;1'],
|
|
'legacy_constructor': 'nsFileOutputStream::Create',
|
|
'headers': ['nsFileStreams.h'],
|
|
},
|
|
{
|
|
'name': 'HttpActivityDistributor',
|
|
'cid': '{15629ada-a41c-4a09-961f-6553cd60b1a2}',
|
|
'contract_ids': ['@mozilla.org/network/http-activity-distributor;1'],
|
|
'type': 'mozilla::net::nsHttpActivityDistributor',
|
|
'headers': ['/netwerk/protocol/http/nsHttpActivityDistributor.h'],
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'cid': '{36b63ef3-e0fa-4c49-9fd4-e065e85568f4}',
|
|
'contract_ids': ['@mozilla.org/network/http-auth-manager;1'],
|
|
'type': 'mozilla::net::nsHttpAuthManager',
|
|
'headers': ['/netwerk/protocol/http/nsHttpAuthManager.h'],
|
|
'init_method': 'Init',
|
|
},
|
|
{
|
|
'cid': '{62b778a6-bce3-456b-8c31-2865fbb68c91}',
|
|
'contract_ids': ['@mozilla.org/network/idn-service;1'],
|
|
'type': 'nsIDNService',
|
|
'headers': ['/netwerk/dns/nsIDNService.h'],
|
|
'init_method': 'Init',
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'cid': '{a62af1ba-79b3-4896-8aaf-b148bfce4280}',
|
|
'contract_ids': ['@mozilla.org/network/incremental-download;1'],
|
|
'legacy_constructor': 'net_NewIncrementalDownload',
|
|
},
|
|
{
|
|
'cid': '{5d6352a3-b9c3-4fa3-87aa-b2a3c6e5a501}',
|
|
'contract_ids': ['@mozilla.org/network/incremental-stream-loader;1'],
|
|
'legacy_constructor': 'nsIncrementalStreamLoader::Create',
|
|
'headers': ['/netwerk/base/nsIncrementalStreamLoader.h'],
|
|
},
|
|
{
|
|
'cid': '{6ddb050c-0d04-11d4-986e-00c04fa0cf4a}',
|
|
'contract_ids': ['@mozilla.org/network/input-stream-channel;1'],
|
|
'type': 'mozilla::net::nsInputStreamChannel',
|
|
'headers': ['/netwerk/base/nsInputStreamChannel.h'],
|
|
},
|
|
{
|
|
'cid': '{ccd0e960-7947-4635-b70e-4c661b63d675}',
|
|
'contract_ids': ['@mozilla.org/network/input-stream-pump;1'],
|
|
'type': 'nsInputStreamPump',
|
|
'headers': ['nsInputStreamPump.h'],
|
|
},
|
|
{
|
|
'name': 'IO',
|
|
'js_name': 'io',
|
|
'cid': '{9ac9e770-18bc-11d3-9337-00104ba0fd40}',
|
|
'contract_ids': [
|
|
'@mozilla.org/network/io-service;1',
|
|
'@mozilla.org/network/util;1',
|
|
],
|
|
'interfaces': ['nsIIOService', 'nsISpeculativeConnect', 'nsINetUtil'],
|
|
'singleton': True,
|
|
'type': 'mozilla::net::nsIOService',
|
|
'headers': ['/netwerk/base/nsIOService.h'],
|
|
'constructor': 'mozilla::net::nsIOService::GetInstance',
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'cid': '{e1c61582-2a84-11d3-8cce-0060b0fc14a3}',
|
|
'contract_ids': ['@mozilla.org/network/load-group;1'],
|
|
'legacy_constructor': 'nsLoadGroupConstructor',
|
|
},
|
|
{
|
|
'cid': '{1f4dbcf7-245c-4c8c-943d-8a1da0495e8a}',
|
|
'contract_ids': ['@mozilla.org/network/mime-hdrparam;1'],
|
|
'type': 'nsMIMEHeaderParamImpl',
|
|
'headers': ['/netwerk/mime/nsMIMEHeaderParamImpl.h'],
|
|
},
|
|
{
|
|
'cid': '{58a1c31c-1dd2-11b2-a3f6-d36949d48268}',
|
|
'contract_ids': ['@mozilla.org/network/mime-input-stream;1'],
|
|
'legacy_constructor': 'nsMIMEInputStreamConstructor',
|
|
'headers': ['nsMIMEInputStream.h'],
|
|
},
|
|
{
|
|
'cid': '{2693457e-3ba5-4455-991f-5350946adb12}',
|
|
'contract_ids': ['@mozilla.org/network/network-connectivity-service;1'],
|
|
'singleton': True,
|
|
'type': 'nsINetworkConnectivityService',
|
|
'constructor': 'mozilla::net::NetworkConnectivityService::GetSingleton',
|
|
'headers': ['mozilla/net/NetworkConnectivityService.h'],
|
|
},
|
|
{
|
|
'cid': '{969adfdf-7221-4419-aecf-05f8faf00c9b}',
|
|
'contract_ids': ['@mozilla.org/network/predictor;1'],
|
|
'singleton': True,
|
|
'legacy_constructor': 'mozilla::net::Predictor::Create',
|
|
'headers': ['mozilla/net/Predictor.h'],
|
|
},
|
|
{
|
|
'cid': '{e9b301c0-e0e4-11d3-a1a8-0050041caf44}',
|
|
'contract_ids': ['@mozilla.org/network/protocol-proxy-service;1'],
|
|
'singleton': True,
|
|
'type': 'mozilla::net::nsProtocolProxyService',
|
|
'headers': ['/netwerk/base/nsProtocolProxyService.h'],
|
|
'init_method': 'Init',
|
|
},
|
|
{
|
|
'cid': '{3decd6c8-30ef-11d3-8cd0-0060b0fc14a3}',
|
|
'contract_ids': ['@mozilla.org/network/protocol/about;1?what=blank'],
|
|
'legacy_constructor': 'nsAboutBlank::Create',
|
|
'headers': ['/netwerk/protocol/about/nsAboutBlank.h'],
|
|
},
|
|
{
|
|
'cid': '{9158c470-86e4-11d4-9be2-00e09872a416}',
|
|
'contract_ids': ['@mozilla.org/network/protocol/about;1?what=cache'],
|
|
'legacy_constructor': 'nsAboutCache::Create',
|
|
'headers': ['/netwerk/protocol/about/nsAboutCache.h'],
|
|
},
|
|
{
|
|
'cid': '{7fa5237d-b0eb-438f-9e50-ca0166e63788}',
|
|
'contract_ids': ['@mozilla.org/network/protocol/about;1?what=cache-entry'],
|
|
'type': 'nsAboutCacheEntry',
|
|
'headers': ['/netwerk/protocol/about/nsAboutCacheEntry.h'],
|
|
},
|
|
{
|
|
'cid': '{9e3b6c90-2f75-11d3-8cd0-0060b0fc14a3}',
|
|
'contract_ids': ['@mozilla.org/network/protocol;1?name=about'],
|
|
'singleton': True,
|
|
'type': 'mozilla::net::nsAboutProtocolHandler',
|
|
'headers': ['/netwerk/protocol/about/nsAboutProtocolHandler.h'],
|
|
},
|
|
{
|
|
'cid': '{b6ed3030-6183-11d3-a178-0050041caf44}',
|
|
'contract_ids': ['@mozilla.org/network/protocol;1?name=data'],
|
|
'singleton': True,
|
|
'legacy_constructor': 'nsDataHandler::Create',
|
|
'headers': ['/netwerk/protocol/data/nsDataHandler.h'],
|
|
},
|
|
{
|
|
'cid': '{fbc81170-1f69-11d3-9344-00104ba0fd40}',
|
|
'contract_ids': ['@mozilla.org/network/protocol;1?name=file'],
|
|
'singleton': True,
|
|
'type': 'nsFileProtocolHandler',
|
|
'headers': ['mozilla/net/nsFileProtocolHandler.h'],
|
|
'init_method': 'Init',
|
|
},
|
|
{
|
|
'cid': '{4f47e42e-4d23-4dd3-bfda-eb29255e9ea3}',
|
|
'contract_ids': ['@mozilla.org/network/protocol;1?name=http'],
|
|
'singleton': True,
|
|
'type': 'mozilla::net::nsHttpHandler',
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'cid': '{dccbe7e4-7750-466b-a557-5ea36c8ff24e}',
|
|
'contract_ids': ['@mozilla.org/network/protocol;1?name=https'],
|
|
'singleton': True,
|
|
'type': 'mozilla::net::nsHttpsHandler',
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'cid': '{aea16cd0-f020-4138-b068-0716c4a15b5a}',
|
|
'contract_ids': ['@mozilla.org/network/protocol;1?name=moz-extension'],
|
|
'singleton': True,
|
|
'type': 'mozilla::net::ExtensionProtocolHandler',
|
|
'headers': ['mozilla/net/ExtensionProtocolHandler.h'],
|
|
'constructor': 'mozilla::net::ExtensionProtocolHandler::GetSingleton',
|
|
},
|
|
{
|
|
'cid': '{450a2b55-620a-44b3-9f67-839b3b0c329c}',
|
|
'contract_ids': ['@mozilla.org/network/protocol;1?name=moz-page-thumb'],
|
|
'singleton': True,
|
|
'type': 'mozilla::net::PageThumbProtocolHandler',
|
|
'headers': ['mozilla/net/PageThumbProtocolHandler.h'],
|
|
'constructor': 'mozilla::net::PageThumbProtocolHandler::GetSingleton',
|
|
},
|
|
{
|
|
'cid': '{1423e739-782c-4081-b5d8-fe6fba68c0ef}',
|
|
'contract_ids': ['@mozilla.org/network/protocol;1?name=moz-safe-about'],
|
|
'singleton': True,
|
|
'type': 'mozilla::net::nsSafeAboutProtocolHandler',
|
|
'headers': ['/netwerk/protocol/about/nsAboutProtocolHandler.h'],
|
|
},
|
|
{
|
|
'cid': '{e64f152a-9f07-11d3-8cda-0060b0fc14a3}',
|
|
'contract_ids': ['@mozilla.org/network/protocol;1?name=resource'],
|
|
'singleton': True,
|
|
'type': 'nsResProtocolHandler',
|
|
'headers': ['/netwerk/protocol/res/nsResProtocolHandler.h'],
|
|
'constructor': 'nsResProtocolHandler::GetSingleton',
|
|
},
|
|
{
|
|
'cid': '{9c7ec5d1-23f9-11d5-aea8-8fcc0793e97f}',
|
|
'contract_ids': ['@mozilla.org/network/protocol;1?name=view-source'],
|
|
'singleton': True,
|
|
'type': 'mozilla::net::nsViewSourceHandler',
|
|
'headers': ['/netwerk/protocol/viewsource/nsViewSourceHandler.h'],
|
|
},
|
|
{
|
|
'cid': '{dc01db59-a513-4c90-824b-085cce06c0aa}',
|
|
'contract_ids': ['@mozilla.org/network/protocol;1?name=ws'],
|
|
'singleton': True,
|
|
'legacy_constructor': 'mozilla::net::WebSocketChannelConstructor',
|
|
},
|
|
{
|
|
'cid': '{dc01dbbb-a5bb-4cbb-82bb-085cce06c0bb}',
|
|
'contract_ids': ['@mozilla.org/network/protocol;1?name=wss'],
|
|
'singleton': True,
|
|
'legacy_constructor': 'mozilla::net::WebSocketSSLChannelConstructor',
|
|
},
|
|
{
|
|
'cid': '{a181af0d-68b8-4308-94db-d4f859058215}',
|
|
'contract_ids': ['@mozilla.org/network/safe-file-output-stream;1'],
|
|
'type': 'nsSafeFileOutputStream',
|
|
'headers': ['nsFileStreams.h'],
|
|
},
|
|
{
|
|
'cid': '{d6ef593d-a429-4b14-a887-d9e2f765d9ed}',
|
|
'contract_ids': ['@mozilla.org/network/serialization-helper;1'],
|
|
'type': 'nsSerializationHelper',
|
|
'headers': ['nsSerializationHelper.h'],
|
|
},
|
|
{
|
|
'cid': '{2ec62893-3b35-48fa-ab1d-5e68a9f45f08}',
|
|
'contract_ids': ['@mozilla.org/network/server-socket;1'],
|
|
'type': 'mozilla::net::nsServerSocket',
|
|
'headers': ['/netwerk/base/nsServerSocket.h'],
|
|
},
|
|
{
|
|
'cid': '{fb8cbf4e-4701-4ba1-b1d6-5388e041fb67}',
|
|
'contract_ids': ['@mozilla.org/network/simple-stream-listener;1'],
|
|
'type': 'mozilla::net::nsSimpleStreamListener',
|
|
'headers': ['/netwerk/base/nsSimpleStreamListener.h'],
|
|
},
|
|
{
|
|
'cid': '{2be14592-28d4-4a83-8fe9-08e778849f6e}',
|
|
'contract_ids': ['@mozilla.org/network/simple-uri-mutator;1'],
|
|
'type': 'mozilla::net::nsSimpleURI::Mutator',
|
|
'headers': ['nsSimpleURI.h'],
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'cid': '{04445aa0-fd27-4c99-bd41-6be6318ae92c}',
|
|
'contract_ids': ['@mozilla.org/network/default-uri-mutator;1'],
|
|
'type': 'mozilla::net::DefaultURI::Mutator',
|
|
'headers': ['/netwerk/base/DefaultURI.h'],
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'name': 'SocketTransport',
|
|
'cid': '{ad56b25f-e6bb-4db3-9f7b-5b7db33fd2b1}',
|
|
'contract_ids': ['@mozilla.org/network/socket-transport-service;1'],
|
|
'singleton': True,
|
|
'type': 'mozilla::net::nsSocketTransportService',
|
|
'headers': ['/netwerk/base/nsSocketTransportService2.h'],
|
|
'init_method': 'Init',
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'cid': '{ce7d7da0-fb28-44a3-8c7b-000c165918f4}',
|
|
'contract_ids': ['@mozilla.org/network/standard-url-mutator;1'],
|
|
'type': 'mozilla::net::nsStandardURL::Mutator',
|
|
'headers': ['/netwerk/base/nsStandardURL.h'],
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'cid': '{831f8f13-7aa8-485f-b02e-77c881cc5773}',
|
|
'contract_ids': ['@mozilla.org/network/stream-listener-tee;1'],
|
|
'type': 'mozilla::net::nsStreamListenerTee',
|
|
'headers': ['/netwerk/base/nsStreamListenerTee.h'],
|
|
},
|
|
{
|
|
'cid': '{9879908a-2972-40c0-890b-a91dd7dfb954}',
|
|
'contract_ids': ['@mozilla.org/network/stream-loader;1'],
|
|
'legacy_constructor': 'mozilla::net::nsStreamLoader::Create',
|
|
'headers': ['/netwerk/base/nsStreamLoader.h'],
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'name': 'StreamTransport',
|
|
'cid': '{0885d4f8-f7b8-4cda-902e-94ba38bc256e}',
|
|
'contract_ids': ['@mozilla.org/network/stream-transport-service;1'],
|
|
'type': 'mozilla::net::nsStreamTransportService',
|
|
'headers': ['/netwerk/base/nsStreamTransportService.h'],
|
|
'init_method': 'Init',
|
|
},
|
|
{
|
|
'cid': '{4c39159c-cd90-4dd3-97a7-06af5e6d84c4}',
|
|
'contract_ids': ['@mozilla.org/network/throttlequeue;1'],
|
|
'type': 'nsIInputChannelThrottleQueue',
|
|
'constructor': 'mozilla::net::ThrottleQueue::Create',
|
|
'headers': ['/netwerk/base/ThrottleQueue.h'],
|
|
},
|
|
{
|
|
'cid': '{1813cbb4-c98e-4622-8c7d-839167f3f272}',
|
|
'contract_ids': ['@mozilla.org/network/tls-server-socket;1'],
|
|
'type': 'mozilla::net::TLSServerSocket',
|
|
'headers': ['/netwerk/base/TLSServerSocket.h'],
|
|
},
|
|
{
|
|
'cid': '{c9f74572-7b8e-4fec-bb4a-03c0d3021bd6}',
|
|
'contract_ids': ['@mozilla.org/network/udp-socket;1'],
|
|
'type': 'mozilla::net::nsUDPSocket',
|
|
'headers': ['/netwerk/base/nsUDPSocket.h'],
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'cid': '{ff41913b-546a-4bff-9201-dc9b2c032eba}',
|
|
'contract_ids': ['@mozilla.org/network/url-parser;1?auth=maybe'],
|
|
'type': 'nsStdURLParser',
|
|
'headers': ['nsURLParsers.h'],
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'cid': '{78804a84-8173-42b6-bb94-789f0816a810}',
|
|
'contract_ids': ['@mozilla.org/network/url-parser;1?auth=no'],
|
|
'type': 'nsNoAuthURLParser',
|
|
'headers': ['nsURLParsers.h'],
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'cid': '{275d800e-3f60-4896-adb7-d7f390ce0e42}',
|
|
'contract_ids': ['@mozilla.org/network/url-parser;1?auth=yes'],
|
|
'type': 'nsAuthURLParser',
|
|
'headers': ['nsURLParsers.h'],
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'cid': '{892ffeb0-3f80-11d3-a16c-0050041caf44}',
|
|
'contract_ids': ['@mozilla.org/streamConverters;1'],
|
|
'legacy_constructor': 'CreateNewStreamConvServiceFactory',
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'cid': '{cf0f71fd-fafd-4e2b-9fdc-134d972e16e2}',
|
|
'contract_ids': ['@mozilla.org/streamconv;1?from=application/http-index-format&to=text/html'],
|
|
'legacy_constructor': 'nsIndexedToHTML::Create',
|
|
'headers': ['/netwerk/streamconv/converters/nsIndexedToHTML.h'],
|
|
},
|
|
{
|
|
'cid': '{7d7008a0-c49a-11d3-9b22-0080c7cb1080}',
|
|
'contract_ids': ['@mozilla.org/streamconv;1?from=application/x-unknown-content-type&to=*/*'],
|
|
'legacy_constructor': 'CreateNewUnknownDecoderFactory',
|
|
},
|
|
{
|
|
'cid': '{66230b2b-17fa-4bd3-abf4-07986151022d}',
|
|
'contract_ids': [
|
|
'@mozilla.org/streamconv;1?from=br&to=uncompressed',
|
|
'@mozilla.org/streamconv;1?from=compress&to=uncompressed',
|
|
'@mozilla.org/streamconv;1?from=deflate&to=uncompressed',
|
|
'@mozilla.org/streamconv;1?from=gzip&to=uncompressed',
|
|
'@mozilla.org/streamconv;1?from=x-compress&to=uncompressed',
|
|
'@mozilla.org/streamconv;1?from=x-gzip&to=uncompressed',
|
|
],
|
|
'legacy_constructor': 'CreateNewHTTPCompressConvFactory',
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'cid': '{7584ce90-5b25-11d3-a175-0050041caf44}',
|
|
'contract_ids': [
|
|
'@mozilla.org/streamconv;1?from=multipart/byteranges&to=*/*',
|
|
'@mozilla.org/streamconv;1?from=multipart/mixed&to=*/*',
|
|
'@mozilla.org/streamconv;1?from=multipart/x-mixed-replace&to=*/*',
|
|
],
|
|
'legacy_constructor': 'CreateNewMultiMixedConvFactory',
|
|
},
|
|
{
|
|
'cid': '{77c0e42a-1dd2-11b2-8ebf-edc6606f2f4b}',
|
|
'contract_ids': ['@mozilla.org/txttohtmlconv;1'],
|
|
'legacy_constructor': 'CreateNewTXTToHTMLConvFactory',
|
|
},
|
|
{
|
|
'cid': '{2f277c00-0eaf-4ddb-b936-41326ba48aae}',
|
|
'contract_ids': [],
|
|
'type': 'mozilla::net::nsNestedAboutURI::Mutator',
|
|
'headers': ['/netwerk/protocol/about/nsAboutProtocolHandler.h'],
|
|
},
|
|
{
|
|
'cid': '{56388dad-287b-4240-a785-85c394012503}',
|
|
'contract_ids': [],
|
|
'type': 'mozilla::net::nsSimpleNestedURI::Mutator',
|
|
'headers': ['nsSimpleNestedURI.h'],
|
|
},
|
|
{
|
|
'cid': '{9c4e9d49-ce64-4ca3-acef-3075c5e5aba7}',
|
|
'contract_ids': [],
|
|
'type': 'mozilla::net::nsSimpleNestedURI::Mutator',
|
|
'headers': ['nsSimpleNestedURI.h'],
|
|
},
|
|
{
|
|
'cid': '{b0054ef3-b096-483d-8242-4ee36b7b2115}',
|
|
'contract_ids': [],
|
|
'type': 'mozilla::net::nsNestedAboutURI::Mutator',
|
|
'headers': ['/netwerk/protocol/about/nsAboutProtocolHandler.h'],
|
|
},
|
|
{
|
|
'cid': '{b3cfeb91-332a-46c9-ad97-93ff39841494}',
|
|
'contract_ids': [],
|
|
'type': 'mozilla::net::SubstitutingURL::Mutator',
|
|
'headers': ['mozilla/net/SubstitutingURL.h'],
|
|
},
|
|
{
|
|
'cid': '{de9472d0-8034-11d3-9399-00104ba0fd40}',
|
|
'contract_ids': [],
|
|
'type': 'mozilla::net::nsStandardURL::Mutator',
|
|
'headers': ['/netwerk/base/nsStandardURL.h'],
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'cid': '{dea9657c-18cf-4984-bde9-ccef5d8ab473}',
|
|
'contract_ids': [],
|
|
'type': 'mozilla::net::SubstitutingURL::Mutator',
|
|
'headers': ['mozilla/net/SubstitutingURL.h'],
|
|
},
|
|
{
|
|
'cid': '{50d50ddf-f16a-4652-8705-936b19c3763b}',
|
|
'contract_ids': [],
|
|
'type': 'mozilla::net::SubstitutingJARURI',
|
|
'headers': ['mozilla/net/SubstitutingJARURI.h'],
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'cid': '{e0da1d70-2f7b-11d3-8cd0-0060b0fc14a3}',
|
|
'contract_ids': [],
|
|
'type': 'mozilla::net::nsSimpleURI::Mutator',
|
|
'headers': ['nsSimpleURI.h'],
|
|
'processes': ProcessSelector.ALLOW_IN_SOCKET_PROCESS,
|
|
},
|
|
{
|
|
'js_name': 'cookies',
|
|
'cid': '{c375fa80-150f-11d6-a618-0010a401eb10}',
|
|
'contract_ids': [
|
|
'@mozilla.org/cookieService;1',
|
|
'@mozilla.org/cookiemanager;1',
|
|
],
|
|
'interfaces': ['nsICookieManager'],
|
|
'singleton': True,
|
|
'type': 'nsICookieService',
|
|
'constructor': 'mozilla::net::CookieService::GetXPCOMSingleton',
|
|
'headers': ['/netwerk/cookie/CookieService.h'],
|
|
},
|
|
{
|
|
'cid': '{e1676f84-e6e5-45d0-a4bf-d9905efc5b2e}',
|
|
'contract_ids': ['@mozilla.org/http-sfv-service;1'],
|
|
'singleton': True,
|
|
'constructor': 'mozilla::net::GetSFVService',
|
|
'headers': ['mozilla/net/SFVService.h'],
|
|
},
|
|
{
|
|
'cid': '{4ce234f1-52e8-47a9-8c8d-b02f815733c7}',
|
|
'contract_ids': ['@mozilla.org/cookieJarSettings;1'],
|
|
'type': 'nsICookieJarSettings',
|
|
'constructor': 'mozilla::net::CookieJarSettings::CreateForXPCOM',
|
|
'headers': ['mozilla/net/CookieJarSettings.h'],
|
|
},
|
|
]
|
|
|
|
if defined('NECKO_WIFI'):
|
|
Classes += [
|
|
{
|
|
'cid': '{3ff8fb9f-ee63-48df-89f0-dace0242fd82}',
|
|
'contract_ids': ['@mozilla.org/wifi/monitor;1'],
|
|
'singleton': True,
|
|
'type': 'nsWifiMonitor',
|
|
'headers': ['/netwerk/wifi/nsWifiMonitor.h'],
|
|
},
|
|
]
|
|
|
|
if buildconfig.substs['OS_ARCH'] in ('WINNT', 'Darwin', 'Linux'):
|
|
Classes += [
|
|
{
|
|
'cid': '{296d0900-f8ef-4df0-9c35-db5862abc58d}',
|
|
'contract_ids': ['@mozilla.org/network-info-service;1'],
|
|
'type': 'mozilla::net::nsNetworkInfoService',
|
|
'headers': ['/netwerk/base/nsNetworkInfoService.h'],
|
|
'init_method': 'Init',
|
|
},
|
|
]
|
|
|
|
|
|
toolkit = buildconfig.substs['MOZ_WIDGET_TOOLKIT']
|
|
link_service = None
|
|
if toolkit == 'windows':
|
|
link_service = {
|
|
'type': 'nsNotifyAddrListener',
|
|
'headers': ['/netwerk/system/win32/nsNotifyAddrListener.h'],
|
|
'init_method': 'Init',
|
|
}
|
|
elif toolkit == 'cocoa':
|
|
link_service = {
|
|
'type': 'nsNetworkLinkService',
|
|
'headers': ['/netwerk/system/mac/nsNetworkLinkService.h'],
|
|
'init_method': 'Init',
|
|
}
|
|
elif toolkit == 'android':
|
|
link_service = {
|
|
'type': 'nsAndroidNetworkLinkService',
|
|
'headers': ['/netwerk/system/android/nsAndroidNetworkLinkService.h'],
|
|
'init_method': 'Init',
|
|
}
|
|
elif buildconfig.substs['OS_ARCH'] == 'Linux':
|
|
link_service = {
|
|
'type': 'nsNetworkLinkService',
|
|
'headers': ['/netwerk/system/linux/nsNetworkLinkService.h'],
|
|
'init_method': 'Init',
|
|
}
|
|
|
|
if link_service:
|
|
Classes += [
|
|
dict({
|
|
'cid': '{75a500a2-0030-40f7-86f8-63f225b940ae}',
|
|
'contract_ids': ['@mozilla.org/network/network-link-service;1'],
|
|
'singleton': True,
|
|
}, **link_service)
|
|
]
|