michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsNetCID_h__ michael@0: #define nsNetCID_h__ michael@0: michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/base/ classes michael@0: */ michael@0: michael@0: // service implementing nsIIOService and nsIIOService2. michael@0: #define NS_IOSERVICE_CONTRACTID \ michael@0: "@mozilla.org/network/io-service;1" michael@0: #define NS_IOSERVICE_CID \ michael@0: { /* 9ac9e770-18bc-11d3-9337-00104ba0fd40 */ \ michael@0: 0x9ac9e770, \ michael@0: 0x18bc, \ michael@0: 0x11d3, \ michael@0: {0x93, 0x37, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \ michael@0: } michael@0: michael@0: // service implementing nsINetUtil michael@0: #define NS_NETUTIL_CONTRACTID \ michael@0: "@mozilla.org/network/util;1" michael@0: michael@0: // serialization scriptable helper michael@0: #define NS_SERIALIZATION_HELPER_CONTRACTID \ michael@0: "@mozilla.org/network/serialization-helper;1" michael@0: #define NS_SERIALIZATION_HELPER_CID \ michael@0: { /* D6EF593D-A429-4b14-A887-D9E2F765D9ED */ \ michael@0: 0xd6ef593d, \ michael@0: 0xa429, \ michael@0: 0x4b14, \ michael@0: { 0xa8, 0x87, 0xd9, 0xe2, 0xf7, 0x65, 0xd9, 0xed } \ michael@0: } michael@0: michael@0: // service implementing nsIProtocolProxyService and nsPIProtocolProxyService. michael@0: #define NS_PROTOCOLPROXYSERVICE_CONTRACTID \ michael@0: "@mozilla.org/network/protocol-proxy-service;1" michael@0: #define NS_PROTOCOLPROXYSERVICE_CID \ michael@0: { /* E9B301C0-E0E4-11d3-A1A8-0050041CAF44 */ \ michael@0: 0xe9b301c0, \ michael@0: 0xe0e4, \ michael@0: 0x11d3, \ michael@0: {0xa1, 0xa8, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44} \ michael@0: } michael@0: michael@0: // service implementing nsIProxyAutoConfig. michael@0: #define NS_PROXYAUTOCONFIG_CONTRACTID \ michael@0: "@mozilla.org/network/proxy-auto-config;1" michael@0: #define NS_PROXYAUTOCONFIG_CID \ michael@0: { /* 63ac8c66-1dd2-11b2-b070-84d00d3eaece */ \ michael@0: 0x63ac8c66, \ michael@0: 0x1dd2, \ michael@0: 0x11b2, \ michael@0: {0xb0, 0x70, 0x84, 0xd0, 0x0d, 0x3e, 0xae, 0xce} \ michael@0: } michael@0: michael@0: // component implementing nsILoadGroup. michael@0: #define NS_LOADGROUP_CONTRACTID \ michael@0: "@mozilla.org/network/load-group;1" michael@0: #define NS_LOADGROUP_CID \ michael@0: { /* e1c61582-2a84-11d3-8cce-0060b0fc14a3 */ \ michael@0: 0xe1c61582, \ michael@0: 0x2a84, \ michael@0: 0x11d3, \ michael@0: {0x8c, 0xce, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \ michael@0: } michael@0: michael@0: // component implementing nsIURI, nsISerializable, and nsIClassInfo. michael@0: #define NS_SIMPLEURI_CONTRACTID \ michael@0: "@mozilla.org/network/simple-uri;1" michael@0: #define NS_SIMPLEURI_CID \ michael@0: { /* e0da1d70-2f7b-11d3-8cd0-0060b0fc14a3 */ \ michael@0: 0xe0da1d70, \ michael@0: 0x2f7b, \ michael@0: 0x11d3, \ michael@0: {0x8c, 0xd0, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \ michael@0: } michael@0: michael@0: // component inheriting from the simple URI component and also michael@0: // implementing nsINestedURI. michael@0: #define NS_SIMPLENESTEDURI_CID \ michael@0: { /* 56388dad-287b-4240-a785-85c394012503 */ \ michael@0: 0x56388dad, \ michael@0: 0x287b, \ michael@0: 0x4240, \ michael@0: { 0xa7, 0x85, 0x85, 0xc3, 0x94, 0x01, 0x25, 0x03 } \ michael@0: } michael@0: michael@0: // component inheriting from the nested simple URI component and also michael@0: // carrying along its base URI michael@0: #define NS_NESTEDABOUTURI_CID \ michael@0: { /* 2f277c00-0eaf-4ddb-b936-41326ba48aae */ \ michael@0: 0x2f277c00, \ michael@0: 0x0eaf, \ michael@0: 0x4ddb, \ michael@0: { 0xb9, 0x36, 0x41, 0x32, 0x6b, 0xa4, 0x8a, 0xae } \ michael@0: } michael@0: michael@0: // component implementing nsIStandardURL, nsIURI, nsIURL, nsISerializable, michael@0: // and nsIClassInfo. michael@0: #define NS_STANDARDURL_CONTRACTID \ michael@0: "@mozilla.org/network/standard-url;1" michael@0: #define NS_STANDARDURL_CID \ michael@0: { /* de9472d0-8034-11d3-9399-00104ba0fd40 */ \ michael@0: 0xde9472d0, \ michael@0: 0x8034, \ michael@0: 0x11d3, \ michael@0: {0x93, 0x99, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \ michael@0: } michael@0: michael@0: // service implementing nsIURLParser that assumes the URL will NOT contain an michael@0: // authority section. michael@0: #define NS_NOAUTHURLPARSER_CONTRACTID \ michael@0: "@mozilla.org/network/url-parser;1?auth=no" michael@0: #define NS_NOAUTHURLPARSER_CID \ michael@0: { /* 78804a84-8173-42b6-bb94-789f0816a810 */ \ michael@0: 0x78804a84, \ michael@0: 0x8173, \ michael@0: 0x42b6, \ michael@0: {0xbb, 0x94, 0x78, 0x9f, 0x08, 0x16, 0xa8, 0x10} \ michael@0: } michael@0: michael@0: // service implementing nsIURLParser that assumes the URL will contain an michael@0: // authority section. michael@0: #define NS_AUTHURLPARSER_CONTRACTID \ michael@0: "@mozilla.org/network/url-parser;1?auth=yes" michael@0: #define NS_AUTHURLPARSER_CID \ michael@0: { /* 275d800e-3f60-4896-adb7-d7f390ce0e42 */ \ michael@0: 0x275d800e, \ michael@0: 0x3f60, \ michael@0: 0x4896, \ michael@0: {0xad, 0xb7, 0xd7, 0xf3, 0x90, 0xce, 0x0e, 0x42} \ michael@0: } michael@0: michael@0: // service implementing nsIURLParser that does not make any assumptions about michael@0: // whether or not the URL contains an authority section. michael@0: #define NS_STDURLPARSER_CONTRACTID \ michael@0: "@mozilla.org/network/url-parser;1?auth=maybe" michael@0: #define NS_STDURLPARSER_CID \ michael@0: { /* ff41913b-546a-4bff-9201-dc9b2c032eba */ \ michael@0: 0xff41913b, \ michael@0: 0x546a, \ michael@0: 0x4bff, \ michael@0: {0x92, 0x01, 0xdc, 0x9b, 0x2c, 0x03, 0x2e, 0xba} \ michael@0: } michael@0: michael@0: // component implementing nsIRequestObserverProxy. michael@0: #define NS_REQUESTOBSERVERPROXY_CONTRACTID \ michael@0: "@mozilla.org/network/request-observer-proxy;1" michael@0: #define NS_REQUESTOBSERVERPROXY_CID \ michael@0: { /* 51fa28c7-74c0-4b85-9c46-d03faa7b696b */ \ michael@0: 0x51fa28c7, \ michael@0: 0x74c0, \ michael@0: 0x4b85, \ michael@0: {0x9c, 0x46, 0xd0, 0x3f, 0xaa, 0x7b, 0x69, 0x6b} \ michael@0: } michael@0: michael@0: // component implementing nsISimpleStreamListener. michael@0: #define NS_SIMPLESTREAMLISTENER_CONTRACTID \ michael@0: "@mozilla.org/network/simple-stream-listener;1" michael@0: #define NS_SIMPLESTREAMLISTENER_CID \ michael@0: { /* fb8cbf4e-4701-4ba1-b1d6-5388e041fb67 */ \ michael@0: 0xfb8cbf4e, \ michael@0: 0x4701, \ michael@0: 0x4ba1, \ michael@0: {0xb1, 0xd6, 0x53, 0x88, 0xe0, 0x41, 0xfb, 0x67} \ michael@0: } michael@0: michael@0: // component implementing nsIStreamListenerTee. michael@0: #define NS_STREAMLISTENERTEE_CONTRACTID \ michael@0: "@mozilla.org/network/stream-listener-tee;1" michael@0: #define NS_STREAMLISTENERTEE_CID \ michael@0: { /* 831f8f13-7aa8-485f-b02e-77c881cc5773 */ \ michael@0: 0x831f8f13, \ michael@0: 0x7aa8, \ michael@0: 0x485f, \ michael@0: {0xb0, 0x2e, 0x77, 0xc8, 0x81, 0xcc, 0x57, 0x73} \ michael@0: } michael@0: michael@0: // component implementing nsIAsyncStreamCopier. michael@0: #define NS_ASYNCSTREAMCOPIER_CONTRACTID \ michael@0: "@mozilla.org/network/async-stream-copier;1" michael@0: #define NS_ASYNCSTREAMCOPIER_CID \ michael@0: { /* e746a8b1-c97a-4fc5-baa4-66607521bd08 */ \ michael@0: 0xe746a8b1, \ michael@0: 0xc97a, \ michael@0: 0x4fc5, \ michael@0: {0xba, 0xa4, 0x66, 0x60, 0x75, 0x21, 0xbd, 0x08} \ michael@0: } michael@0: michael@0: // component implementing nsIInputStreamPump. michael@0: #define NS_INPUTSTREAMPUMP_CONTRACTID \ michael@0: "@mozilla.org/network/input-stream-pump;1" michael@0: #define NS_INPUTSTREAMPUMP_CID \ michael@0: { /* ccd0e960-7947-4635-b70e-4c661b63d675 */ \ michael@0: 0xccd0e960, \ michael@0: 0x7947, \ michael@0: 0x4635, \ michael@0: {0xb7, 0x0e, 0x4c, 0x66, 0x1b, 0x63, 0xd6, 0x75} \ michael@0: } michael@0: michael@0: // component implementing nsIInputStreamChannel. michael@0: #define NS_INPUTSTREAMCHANNEL_CONTRACTID \ michael@0: "@mozilla.org/network/input-stream-channel;1" michael@0: #define NS_INPUTSTREAMCHANNEL_CID \ michael@0: { /* 6ddb050c-0d04-11d4-986e-00c04fa0cf4a */ \ michael@0: 0x6ddb050c, \ michael@0: 0x0d04, \ michael@0: 0x11d4, \ michael@0: {0x98, 0x6e, 0x00, 0xc0, 0x4f, 0xa0, 0xcf, 0x4a} \ michael@0: } michael@0: michael@0: // component implementing nsIStreamLoader. michael@0: #define NS_STREAMLOADER_CONTRACTID \ michael@0: "@mozilla.org/network/stream-loader;1" michael@0: #define NS_STREAMLOADER_CID \ michael@0: { /* 5BA6D920-D4E9-11d3-A1A5-0050041CAF44 */ \ michael@0: 0x5ba6d920, \ michael@0: 0xd4e9, \ michael@0: 0x11d3, \ michael@0: { 0xa1, 0xa5, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44 } \ michael@0: } michael@0: michael@0: // component implementing nsIUnicharStreamLoader. michael@0: #define NS_UNICHARSTREAMLOADER_CONTRACTID \ michael@0: "@mozilla.org/network/unichar-stream-loader;1" michael@0: #define NS_UNICHARSTREAMLOADER_CID \ michael@0: { /* 9445791f-fa4c-4669-b174-df5032bb67b3 */ \ michael@0: 0x9445791f, \ michael@0: 0xfa4c, \ michael@0: 0x4669, \ michael@0: { 0xb1, 0x74, 0xdf, 0x50, 0x32, 0xbb, 0x67, 0xb3 } \ michael@0: } michael@0: michael@0: // component implementing nsIDownloader. michael@0: #define NS_DOWNLOADER_CONTRACTID \ michael@0: "@mozilla.org/network/downloader;1" michael@0: #define NS_DOWNLOADER_CID \ michael@0: { /* 510a86bb-6019-4ed1-bb4f-965cffd23ece */ \ michael@0: 0x510a86bb, \ michael@0: 0x6019, \ michael@0: 0x4ed1, \ michael@0: {0xbb, 0x4f, 0x96, 0x5c, 0xff, 0xd2, 0x3e, 0xce} \ michael@0: } michael@0: michael@0: // component implementing nsIBackgroundFileSaver and michael@0: // nsIOutputStream. michael@0: #define NS_BACKGROUNDFILESAVEROUTPUTSTREAM_CONTRACTID \ michael@0: "@mozilla.org/network/background-file-saver;1?mode=outputstream" michael@0: #define NS_BACKGROUNDFILESAVEROUTPUTSTREAM_CID \ michael@0: { /* 62147d1e-ef6a-40e8-aaf8-d039f5caaa81 */ \ michael@0: 0x62147d1e, \ michael@0: 0xef6a, \ michael@0: 0x40e8, \ michael@0: {0xaa, 0xf8, 0xd0, 0x39, 0xf5, 0xca, 0xaa, 0x81} \ michael@0: } michael@0: michael@0: // component implementing nsIBackgroundFileSaver and michael@0: // nsIStreamListener. michael@0: #define NS_BACKGROUNDFILESAVERSTREAMLISTENER_CONTRACTID \ michael@0: "@mozilla.org/network/background-file-saver;1?mode=streamlistener" michael@0: #define NS_BACKGROUNDFILESAVERSTREAMLISTENER_CID \ michael@0: { /* 208de7fc-a781-4031-bbae-cc0de539f61a */ \ michael@0: 0x208de7fc, \ michael@0: 0xa781, \ michael@0: 0x4031, \ michael@0: {0xbb, 0xae, 0xcc, 0x0d, 0xe5, 0x39, 0xf6, 0x1a} \ michael@0: } michael@0: michael@0: // component implementing nsISyncStreamListener. michael@0: #define NS_SYNCSTREAMLISTENER_CONTRACTID \ michael@0: "@mozilla.org/network/sync-stream-listener;1" michael@0: #define NS_SYNCSTREAMLISTENER_CID \ michael@0: { /* 439400d3-6f23-43db-8b06-8aafe1869bd8 */ \ michael@0: 0x439400d3, \ michael@0: 0x6f23, \ michael@0: 0x43db, \ michael@0: {0x8b, 0x06, 0x8a, 0xaf, 0xe1, 0x86, 0x9b, 0xd8} \ michael@0: } michael@0: michael@0: // component implementing nsIURIChecker. michael@0: #define NS_URICHECKER_CONTRACT_ID \ michael@0: "@mozilla.org/network/urichecker;1" michael@0: #define NS_URICHECKER_CID \ michael@0: { /* cf3a0e06-1dd1-11b2-a904-ac1d6da77a02 */ \ michael@0: 0xcf3a0e06, \ michael@0: 0x1dd1, \ michael@0: 0x11b2, \ michael@0: {0xa9, 0x04, 0xac, 0x1d, 0x6d, 0xa7, 0x7a, 0x02} \ michael@0: } michael@0: michael@0: // component implementing nsIIncrementalDownload. michael@0: #define NS_INCREMENTALDOWNLOAD_CONTRACTID \ michael@0: "@mozilla.org/network/incremental-download;1" michael@0: michael@0: // component implementing nsISystemProxySettings. michael@0: #define NS_SYSTEMPROXYSETTINGS_CONTRACTID \ michael@0: "@mozilla.org/system-proxy-settings;1" michael@0: michael@0: // service implementing nsIStreamTransportService michael@0: #define NS_STREAMTRANSPORTSERVICE_CONTRACTID \ michael@0: "@mozilla.org/network/stream-transport-service;1" michael@0: #define NS_STREAMTRANSPORTSERVICE_CID \ michael@0: { /* 0885d4f8-f7b8-4cda-902e-94ba38bc256e */ \ michael@0: 0x0885d4f8, \ michael@0: 0xf7b8, \ michael@0: 0x4cda, \ michael@0: {0x90, 0x2e, 0x94, 0xba, 0x38, 0xbc, 0x25, 0x6e} \ michael@0: } michael@0: michael@0: // service implementing nsISocketTransportService michael@0: #define NS_SOCKETTRANSPORTSERVICE_CONTRACTID \ michael@0: "@mozilla.org/network/socket-transport-service;1" michael@0: #define NS_SOCKETTRANSPORTSERVICE_CID \ michael@0: { /* c07e81e0-ef12-11d2-92b6-00105a1b0d64 */ \ michael@0: 0xc07e81e0, \ michael@0: 0xef12, \ michael@0: 0x11d2, \ michael@0: {0x92, 0xb6, 0x00, 0x10, 0x5a, 0x1b, 0x0d, 0x64} \ michael@0: } michael@0: michael@0: // component implementing nsIServerSocket michael@0: #define NS_SERVERSOCKET_CONTRACTID \ michael@0: "@mozilla.org/network/server-socket;1" michael@0: #define NS_SERVERSOCKET_CID \ michael@0: { /* 2ec62893-3b35-48fa-ab1d-5e68a9f45f08 */ \ michael@0: 0x2ec62893, \ michael@0: 0x3b35, \ michael@0: 0x48fa, \ michael@0: {0xab, 0x1d, 0x5e, 0x68, 0xa9, 0xf4, 0x5f, 0x08} \ michael@0: } michael@0: michael@0: // component implementing nsIUDPSocket michael@0: #define NS_UDPSOCKET_CONTRACTID \ michael@0: "@mozilla.org/network/udp-socket;1" michael@0: #define NS_UDPSOCKET_CID \ michael@0: { /* c9f74572-7b8e-4fec-bb4a-03c0d3021bd6 */ \ michael@0: 0xc9f74572, \ michael@0: 0x7b8e, \ michael@0: 0x4fec, \ michael@0: {0xbb, 0x4a, 0x03, 0xc0, 0xd3, 0x02, 0x1b, 0xd6} \ michael@0: } michael@0: michael@0: #define NS_LOCALFILEINPUTSTREAM_CONTRACTID \ michael@0: "@mozilla.org/network/file-input-stream;1" michael@0: #define NS_LOCALFILEINPUTSTREAM_CID \ michael@0: { /* be9a53ae-c7e9-11d3-8cda-0060b0fc14a3 */ \ michael@0: 0xbe9a53ae, \ michael@0: 0xc7e9, \ michael@0: 0x11d3, \ michael@0: {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \ michael@0: } michael@0: michael@0: #define NS_LOCALFILEOUTPUTSTREAM_CONTRACTID \ michael@0: "@mozilla.org/network/file-output-stream;1" michael@0: #define NS_LOCALFILEOUTPUTSTREAM_CID \ michael@0: { /* c272fee0-c7e9-11d3-8cda-0060b0fc14a3 */ \ michael@0: 0xc272fee0, \ michael@0: 0xc7e9, \ michael@0: 0x11d3, \ michael@0: {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \ michael@0: } michael@0: michael@0: #define NS_PARTIALLOCALFILEINPUTSTREAM_CONTRACTID \ michael@0: "@mozilla.org/network/partial-file-input-stream;1" michael@0: #define NS_PARTIALLOCALFILEINPUTSTREAM_CID \ michael@0: { /* 8738afd6-162a-418d-a99b-75b3a6b10a56 */ \ michael@0: 0x8738afd6, \ michael@0: 0x162a, \ michael@0: 0x418d, \ michael@0: {0xa9, 0x9b, 0x75, 0xb3, 0xa6, 0xb1, 0x0a, 0x56} \ michael@0: } michael@0: michael@0: #define NS_BUFFEREDINPUTSTREAM_CONTRACTID \ michael@0: "@mozilla.org/network/buffered-input-stream;1" michael@0: #define NS_BUFFEREDINPUTSTREAM_CID \ michael@0: { /* 9226888e-da08-11d3-8cda-0060b0fc14a3 */ \ michael@0: 0x9226888e, \ michael@0: 0xda08, \ michael@0: 0x11d3, \ michael@0: {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \ michael@0: } michael@0: michael@0: #define NS_BUFFEREDOUTPUTSTREAM_CONTRACTID \ michael@0: "@mozilla.org/network/buffered-output-stream;1" michael@0: #define NS_BUFFEREDOUTPUTSTREAM_CID \ michael@0: { /* 9868b4ce-da08-11d3-8cda-0060b0fc14a3 */ \ michael@0: 0x9868b4ce, \ michael@0: 0xda08, \ michael@0: 0x11d3, \ michael@0: {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \ michael@0: } michael@0: michael@0: // components implementing nsISafeOutputStream michael@0: #define NS_ATOMICLOCALFILEOUTPUTSTREAM_CONTRACTID \ michael@0: "@mozilla.org/network/atomic-file-output-stream;1" michael@0: #define NS_ATOMICLOCALFILEOUTPUTSTREAM_CID \ michael@0: { /* 6EAE857E-4BA9-11E3-9B39-B4036188709B */ \ michael@0: 0x6EAE857E, \ michael@0: 0x4BA9, \ michael@0: 0x11E3, \ michael@0: {0x9b, 0x39, 0xb4, 0x03, 0x61, 0x88, 0x70, 0x9b} \ michael@0: } michael@0: michael@0: #define NS_SAFELOCALFILEOUTPUTSTREAM_CONTRACTID \ michael@0: "@mozilla.org/network/safe-file-output-stream;1" michael@0: #define NS_SAFELOCALFILEOUTPUTSTREAM_CID \ michael@0: { /* a181af0d-68b8-4308-94db-d4f859058215 */ \ michael@0: 0xa181af0d, \ michael@0: 0x68b8, \ michael@0: 0x4308, \ michael@0: {0x94, 0xdb, 0xd4, 0xf8, 0x59, 0x05, 0x82, 0x15} \ michael@0: } michael@0: michael@0: // component implementing nsIFileStream michael@0: #define NS_LOCALFILESTREAM_CONTRACTID \ michael@0: "@mozilla.org/network/file-stream;1" michael@0: #define NS_LOCALFILESTREAM_CID \ michael@0: { /* f8a69bd7-176c-4a60-9a05-b6d92f8f229a */ \ michael@0: 0xf8a69bd7, \ michael@0: 0x176c, \ michael@0: 0x4a60, \ michael@0: {0x9a, 0x05, 0xb6, 0xd9, 0x2f, 0x8f, 0x22, 0x9a} \ michael@0: } michael@0: michael@0: /** michael@0: * Contract ID for a service implementing nsIURIClassifier that identifies michael@0: * phishing and malware sites. michael@0: */ michael@0: #define NS_URICLASSIFIERSERVICE_CONTRACTID \ michael@0: "@mozilla.org/uriclassifierservice" michael@0: michael@0: // Redirect channel registrar used for redirect to various protocols michael@0: #define NS_REDIRECTCHANNELREGISTRAR_CONTRACTID \ michael@0: "@mozilla.org/redirectchannelregistrar;1" michael@0: #define NS_REDIRECTCHANNELREGISTRAR_CID \ michael@0: { /* {b69043a6-8929-4d60-8d17-a27e44a8393e} */ \ michael@0: 0xb69043a6, \ michael@0: 0x8929, \ michael@0: 0x4d60, \ michael@0: { 0x8d, 0x17, 0xa2, 0x7e, 0x44, 0xa8, 0x39, 0x3e } \ michael@0: } michael@0: michael@0: // service implementing nsINetworkSeer michael@0: #define NS_NETWORKSEER_CONTRACTID \ michael@0: "@mozilla.org/network/seer;1" michael@0: #define NS_NETWORKSEER_CID \ michael@0: { /* {1C218009-A531-46AD-8351-1E7F45D5A3C4} */ \ michael@0: 0x1C218009, \ michael@0: 0xA531, \ michael@0: 0x46AD, \ michael@0: { 0x83, 0x51, 0x1E, 0x7F, 0x45, 0xD5, 0xA3, 0xC4 } \ michael@0: } michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/cache/ classes michael@0: */ michael@0: michael@0: // service implementing nsICacheService. michael@0: #define NS_CACHESERVICE_CONTRACTID \ michael@0: "@mozilla.org/network/cache-service;1" michael@0: #define NS_CACHESERVICE_CID \ michael@0: { /* 6c84aec9-29a5-4264-8fbc-bee8f922ea67 */ \ michael@0: 0x6c84aec9, \ michael@0: 0x29a5, \ michael@0: 0x4264, \ michael@0: {0x8f, 0xbc, 0xbe, 0xe8, 0xf9, 0x22, 0xea, 0x67} \ michael@0: } michael@0: michael@0: // service implementing nsIApplicationCacheService. michael@0: #define NS_APPLICATIONCACHESERVICE_CONTRACTID \ michael@0: "@mozilla.org/network/application-cache-service;1" michael@0: #define NS_APPLICATIONCACHESERVICE_CID \ michael@0: { /* 02bf7a2a-39d8-4a23-a50c-2cbb085ab7a5 */ \ michael@0: 0x02bf7a2a, \ michael@0: 0x39d8, \ michael@0: 0x4a23, \ michael@0: {0xa5, 0x0c, 0x2c, 0xbb, 0x08, 0x5a, 0xb7, 0xa5} \ michael@0: } michael@0: michael@0: #define NS_APPLICATIONCACHENAMESPACE_CONTRACTID \ michael@0: "@mozilla.org/network/application-cache-namespace;1" michael@0: #define NS_APPLICATIONCACHENAMESPACE_CID \ michael@0: { /* b00ed78a-04e2-4f74-8e1c-d1af79dfd12f */ \ michael@0: 0xb00ed78a, \ michael@0: 0x04e2, \ michael@0: 0x4f74, \ michael@0: {0x8e, 0x1c, 0xd1, 0xaf, 0x79, 0xdf, 0xd1, 0x2f} \ michael@0: } michael@0: michael@0: #define NS_APPLICATIONCACHE_CONTRACTID \ michael@0: "@mozilla.org/network/application-cache;1" michael@0: michael@0: #define NS_APPLICATIONCACHE_CID \ michael@0: { /* 463440c5-baad-4f3c-9e50-0b107abe7183 */ \ michael@0: 0x463440c5, \ michael@0: 0xbaad, \ michael@0: 0x4f3c, \ michael@0: {0x9e, 0x50, 0xb, 0x10, 0x7a, 0xbe, 0x71, 0x83 } \ michael@0: } michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/protocol/http/ classes michael@0: */ michael@0: michael@0: #define NS_HTTPPROTOCOLHANDLER_CID \ michael@0: { /* 4f47e42e-4d23-4dd3-bfda-eb29255e9ea3 */ \ michael@0: 0x4f47e42e, \ michael@0: 0x4d23, \ michael@0: 0x4dd3, \ michael@0: {0xbf, 0xda, 0xeb, 0x29, 0x25, 0x5e, 0x9e, 0xa3} \ michael@0: } michael@0: michael@0: #define NS_HTTPSPROTOCOLHANDLER_CID \ michael@0: { /* dccbe7e4-7750-466b-a557-5ea36c8ff24e */ \ michael@0: 0xdccbe7e4, \ michael@0: 0x7750, \ michael@0: 0x466b, \ michael@0: {0xa5, 0x57, 0x5e, 0xa3, 0x6c, 0x8f, 0xf2, 0x4e} \ michael@0: } michael@0: michael@0: #define NS_HTTPBASICAUTH_CID \ michael@0: { /* fca3766a-434a-4ae7-83cf-0909e18a093a */ \ michael@0: 0xfca3766a, \ michael@0: 0x434a, \ michael@0: 0x4ae7, \ michael@0: {0x83, 0xcf, 0x09, 0x09, 0xe1, 0x8a, 0x09, 0x3a} \ michael@0: } michael@0: michael@0: #define NS_HTTPDIGESTAUTH_CID \ michael@0: { /* 17491ba4-1dd2-11b2-aae3-de6b92dab620 */ \ michael@0: 0x17491ba4, \ michael@0: 0x1dd2, \ michael@0: 0x11b2, \ michael@0: {0xaa, 0xe3, 0xde, 0x6b, 0x92, 0xda, 0xb6, 0x20} \ michael@0: } michael@0: michael@0: #define NS_HTTPNTLMAUTH_CID \ michael@0: { /* bbef8185-c628-4cc1-b53e-e61e74c2451a */ \ michael@0: 0xbbef8185, \ michael@0: 0xc628, \ michael@0: 0x4cc1, \ michael@0: {0xb5, 0x3e, 0xe6, 0x1e, 0x74, 0xc2, 0x45, 0x1a} \ michael@0: } michael@0: michael@0: #define NS_HTTPAUTHMANAGER_CONTRACTID \ michael@0: "@mozilla.org/network/http-auth-manager;1" michael@0: #define NS_HTTPAUTHMANAGER_CID \ michael@0: { /* 36b63ef3-e0fa-4c49-9fd4-e065e85568f4 */ \ michael@0: 0x36b63ef3, \ michael@0: 0xe0fa, \ michael@0: 0x4c49, \ michael@0: {0x9f, 0xd4, 0xe0, 0x65, 0xe8, 0x55, 0x68, 0xf4} \ michael@0: } michael@0: michael@0: #define NS_HTTPCHANNELAUTHPROVIDER_CONTRACTID \ michael@0: "@mozilla.org/network/http-channel-auth-provider;1" michael@0: #define NS_HTTPCHANNELAUTHPROVIDER_CID \ michael@0: { /* 02f5a8d8-4ef3-48b1-b527-8a643056abbd */ \ michael@0: 0x02f5a8d8, \ michael@0: 0x4ef3, \ michael@0: 0x48b1, \ michael@0: {0xb5, 0x27, 0x8a, 0x64, 0x30, 0x56, 0xab, 0xbd} \ michael@0: } michael@0: michael@0: #define NS_HTTPACTIVITYDISTRIBUTOR_CONTRACTID \ michael@0: "@mozilla.org/network/http-activity-distributor;1" michael@0: #define NS_HTTPACTIVITYDISTRIBUTOR_CID \ michael@0: { /* 15629ada-a41c-4a09-961f-6553cd60b1a2 */ \ michael@0: 0x15629ada, \ michael@0: 0xa41c, \ michael@0: 0x4a09, \ michael@0: {0x96, 0x1f, 0x65, 0x53, 0xcd, 0x60, 0xb1, 0xa2} \ michael@0: } michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/protocol/ftp/ classes michael@0: */ michael@0: michael@0: #define NS_FTPPROTOCOLHANDLER_CID \ michael@0: { /* 25029490-F132-11d2-9588-00805F369F95 */ \ michael@0: 0x25029490, \ michael@0: 0xf132, \ michael@0: 0x11d2, \ michael@0: {0x95, 0x88, 0x0, 0x80, 0x5f, 0x36, 0x9f, 0x95} \ michael@0: } michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/protocol/res/ classes michael@0: */ michael@0: michael@0: #define NS_RESPROTOCOLHANDLER_CID \ michael@0: { /* e64f152a-9f07-11d3-8cda-0060b0fc14a3 */ \ michael@0: 0xe64f152a, \ michael@0: 0x9f07, \ michael@0: 0x11d3, \ michael@0: {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \ michael@0: } michael@0: michael@0: #define NS_RESURL_CID \ michael@0: { /* ff8fe7ec-2f74-4408-b742-6b7a546029a8 */ \ michael@0: 0xff8fe7ec, \ michael@0: 0x2f74, \ michael@0: 0x4408, \ michael@0: {0xb7, 0x42, 0x6b, 0x7a, 0x54, 0x60, 0x29, 0xa8} \ michael@0: } michael@0: michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/protocol/file/ classes michael@0: */ michael@0: michael@0: #define NS_FILEPROTOCOLHANDLER_CID \ michael@0: { /* fbc81170-1f69-11d3-9344-00104ba0fd40 */ \ michael@0: 0xfbc81170, \ michael@0: 0x1f69, \ michael@0: 0x11d3, \ michael@0: {0x93, 0x44, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \ michael@0: } michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/protocol/app/ classes michael@0: */ michael@0: michael@0: #define NS_APPPROTOCOLHANDLER_CID \ michael@0: { /* {B6ED3030-9999-11d3-A178-0050041CAF44} */ \ michael@0: 0xb6ed3030, \ michael@0: 0x9999, \ michael@0: 0x11d3, \ michael@0: {0xa1, 0x78, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44} \ michael@0: } michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/protocol/data/ classes michael@0: */ michael@0: michael@0: #define NS_DATAPROTOCOLHANDLER_CID \ michael@0: { /* {B6ED3030-6183-11d3-A178-0050041CAF44} */ \ michael@0: 0xb6ed3030, \ michael@0: 0x6183, \ michael@0: 0x11d3, \ michael@0: {0xa1, 0x78, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44} \ michael@0: } michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/protocol/device classes michael@0: */ michael@0: #define NS_DEVICEPROTOCOLHANDLER_CID \ michael@0: { /* 6b0ffe9e-d114-486b-aeb7-da62e7273ed5 */ \ michael@0: 0x60ffe9e, \ michael@0: 0xd114, \ michael@0: 0x486b, \ michael@0: {0xae, 0xb7, 0xda, 0x62, 0xe7, 0x27, 0x3e, 0xd5} \ michael@0: } michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/protocol/viewsource/ classes michael@0: */ michael@0: michael@0: // service implementing nsIProtocolHandler michael@0: #define NS_VIEWSOURCEHANDLER_CID \ michael@0: { /* {0x9c7ec5d1-23f9-11d5-aea8-8fcc0793e97f} */ \ michael@0: 0x9c7ec5d1, \ michael@0: 0x23f9, \ michael@0: 0x11d5, \ michael@0: {0xae, 0xa8, 0x8f, 0xcc, 0x07, 0x93, 0xe9, 0x7f} \ michael@0: } michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/protocol/wyciwyg/ classes michael@0: */ michael@0: michael@0: #define NS_WYCIWYGPROTOCOLHANDLER_CID \ michael@0: { /* {0xe7509b46-2eB2-410a-9d7c-c3ce73284d01} */ \ michael@0: 0xe7509b46, \ michael@0: 0x2eb2, \ michael@0: 0x410a, \ michael@0: {0x9d, 0x7c, 0xc3, 0xce, 0x73, 0x28, 0x4d, 0x01} \ michael@0: } michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/protocol/websocket/ classes michael@0: */ michael@0: michael@0: #define NS_WEBSOCKETPROTOCOLHANDLER_CID \ michael@0: { /* {dc01db59-a513-4c90-824b-085cce06c0aa} */ \ michael@0: 0xdc01db59, \ michael@0: 0xa513, \ michael@0: 0x4c90, \ michael@0: {0x82, 0x4b, 0x08, 0x5c, 0xce, 0x06, 0xc0, 0xaa} \ michael@0: } michael@0: michael@0: #define NS_WEBSOCKETSSLPROTOCOLHANDLER_CID \ michael@0: { /* {dc01dbbb-a5bb-4cbb-82bb-085cce06c0bb} */ \ michael@0: 0xdc01dbbb, \ michael@0: 0xa5bb, \ michael@0: 0x4cbb, \ michael@0: {0x82, 0xbb, 0x08, 0x5c, 0xce, 0x06, 0xc0, 0xbb} \ michael@0: } michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/protocol/rtsp / classes michael@0: */ michael@0: michael@0: #define NS_RTSPPROTOCOLHANDLER_CID \ michael@0: { /* {5bb4b980-7b10-11e2-b92a-0800200c9a66} */ \ michael@0: 0x5bb4b980, \ michael@0: 0x7b10, \ michael@0: 0x11e2, \ michael@0: {0xb9, 0x2a, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66} \ michael@0: } michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/protocol/about/ classes michael@0: */ michael@0: michael@0: #define NS_ABOUTPROTOCOLHANDLER_CID \ michael@0: { /* 9e3b6c90-2f75-11d3-8cd0-0060b0fc14a3 */ \ michael@0: 0x9e3b6c90, \ michael@0: 0x2f75, \ michael@0: 0x11d3, \ michael@0: {0x8c, 0xd0, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \ michael@0: } michael@0: michael@0: #define NS_SAFEABOUTPROTOCOLHANDLER_CID \ michael@0: { /* 1423e739-782c-4081-b5d8-fe6fba68c0ef */ \ michael@0: 0x1423e739, \ michael@0: 0x782c, \ michael@0: 0x4081, \ michael@0: {0xb5, 0xd8, 0xfe, 0x6f, 0xba, 0x68, 0xc0, 0xef} \ michael@0: } michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/dns/ classes michael@0: */ michael@0: michael@0: #define NS_DNSSERVICE_CONTRACTID \ michael@0: "@mozilla.org/network/dns-service;1" michael@0: #define NS_DNSSERVICE_CID \ michael@0: { /* b0ff4572-dae4-4bef-a092-83c1b88f6be9 */ \ michael@0: 0xb0ff4572, \ michael@0: 0xdae4, \ michael@0: 0x4bef, \ michael@0: {0xa0, 0x92, 0x83, 0xc1, 0xb8, 0x8f, 0x6b, 0xe9} \ michael@0: } michael@0: michael@0: /* ContractID of the XPCOM package that implements nsIIDNService */ michael@0: #define NS_IDNSERVICE_CONTRACTID \ michael@0: "@mozilla.org/network/idn-service;1" michael@0: #define NS_IDNSERVICE_CID \ michael@0: { /* 62b778a6-bce3-456b-8c31-2865fbb68c91 */ \ michael@0: 0x62b778a6, \ michael@0: 0xbce3, \ michael@0: 0x456b, \ michael@0: {0x8c, 0x31, 0x28, 0x65, 0xfb, 0xb6, 0x8c, 0x91} \ michael@0: } michael@0: michael@0: #define NS_EFFECTIVETLDSERVICE_CONTRACTID \ michael@0: "@mozilla.org/network/effective-tld-service;1" michael@0: #define NS_EFFECTIVETLDSERVICE_CID \ michael@0: { /* cb9abbae-66b6-4609-8594-5c4ff300888e */ \ michael@0: 0xcb9abbae, \ michael@0: 0x66b6, \ michael@0: 0x4609, \ michael@0: {0x85, 0x94, 0x5c, 0x4f, 0xf3, 0x00, 0x88, 0x8e} \ michael@0: } michael@0: michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/mime classes michael@0: */ michael@0: michael@0: // {1F4DBCF7-245C-4c8c-943D-8A1DA0495E8A} michael@0: #define NS_MIMEHEADERPARAM_CID \ michael@0: { 0x1f4dbcf7, \ michael@0: 0x245c, \ michael@0: 0x4c8c, \ michael@0: { 0x94, 0x3d, 0x8a, 0x1d, 0xa0, 0x49, 0x5e, 0x8a } \ michael@0: } michael@0: michael@0: #define NS_MIMEHEADERPARAM_CONTRACTID "@mozilla.org/network/mime-hdrparam;1" michael@0: michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/socket classes michael@0: */ michael@0: michael@0: #define NS_SOCKETPROVIDERSERVICE_CONTRACTID \ michael@0: "@mozilla.org/network/socket-provider-service;1" michael@0: #define NS_SOCKETPROVIDERSERVICE_CID \ michael@0: { /* ed394ba0-5472-11d3-bbc8-0000861d1237 */ \ michael@0: 0xed394ba0, \ michael@0: 0x5472, \ michael@0: 0x11d3, \ michael@0: { 0xbb, 0xc8, 0x00, 0x00, 0x86, 0x1d, 0x12, 0x37 } \ michael@0: } michael@0: michael@0: #define NS_SOCKSSOCKETPROVIDER_CID \ michael@0: { /* 8dbe7246-1dd2-11b2-9b8f-b9a849e4403a */ \ michael@0: 0x8dbe7246, \ michael@0: 0x1dd2, \ michael@0: 0x11b2, \ michael@0: { 0x9b, 0x8f, 0xb9, 0xa8, 0x49, 0xe4, 0x40, 0x3a } \ michael@0: } michael@0: michael@0: #define NS_SOCKS4SOCKETPROVIDER_CID \ michael@0: { /* F7C9F5F4-4451-41c3-A28A-5BA2447FBACE */ \ michael@0: 0xf7c9f5f4, \ michael@0: 0x4451, \ michael@0: 0x41c3, \ michael@0: { 0xa2, 0x8a, 0x5b, 0xa2, 0x44, 0x7f, 0xba, 0xce } \ michael@0: } michael@0: michael@0: #define NS_UDPSOCKETPROVIDER_CID \ michael@0: { /* 320706D2-2E81-42c6-89C3-8D83B17D3FB4 */ \ michael@0: 0x320706d2, \ michael@0: 0x2e81, \ michael@0: 0x42c6, \ michael@0: { 0x89, 0xc3, 0x8d, 0x83, 0xb1, 0x7d, 0x3f, 0xb4 } \ michael@0: } michael@0: michael@0: #define NS_SSLSOCKETPROVIDER_CONTRACTID \ michael@0: NS_NETWORK_SOCKET_CONTRACTID_PREFIX "ssl" michael@0: michael@0: /* This code produces a normal socket which can be used to initiate the michael@0: * STARTTLS protocol by calling its nsISSLSocketControl->StartTLS() michael@0: */ michael@0: #define NS_STARTTLSSOCKETPROVIDER_CONTRACTID \ michael@0: NS_NETWORK_SOCKET_CONTRACTID_PREFIX "starttls" michael@0: michael@0: michael@0: #define NS_DASHBOARD_CONTRACTID \ michael@0: "@mozilla.org/network/dashboard;1" michael@0: #define NS_DASHBOARD_CID \ michael@0: { /*c79eb3c6-091a-45a6-8544-5a8d1ab79537 */ \ michael@0: 0xc79eb3c6, \ michael@0: 0x091a, \ michael@0: 0x45a6, \ michael@0: { 0x85, 0x44, 0x5a, 0x8d, 0x1a, 0xb7, 0x95, 0x37 } \ michael@0: } michael@0: michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/cookie classes michael@0: */ michael@0: michael@0: // service implementing nsICookieManager and nsICookieManager2. michael@0: #define NS_COOKIEMANAGER_CONTRACTID \ michael@0: "@mozilla.org/cookiemanager;1" michael@0: #define NS_COOKIEMANAGER_CID \ michael@0: { /* aaab6710-0f2c-11d5-a53b-0010a401eb10 */ \ michael@0: 0xaaab6710, \ michael@0: 0x0f2c, \ michael@0: 0x11d5, \ michael@0: { 0xa5, 0x3b, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 } \ michael@0: } michael@0: michael@0: // service implementing nsICookieService. michael@0: #define NS_COOKIESERVICE_CONTRACTID \ michael@0: "@mozilla.org/cookieService;1" michael@0: #define NS_COOKIESERVICE_CID \ michael@0: { /* c375fa80-150f-11d6-a618-0010a401eb10 */ \ michael@0: 0xc375fa80, \ michael@0: 0x150f, \ michael@0: 0x11d6, \ michael@0: { 0xa6, 0x18, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 } \ michael@0: } michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/wifi classes michael@0: */ michael@0: #ifdef NECKO_WIFI michael@0: #define NS_WIFI_MONITOR_CONTRACTID "@mozilla.org/wifi/monitor;1" michael@0: michael@0: #define NS_WIFI_MONITOR_COMPONENT_CID \ michael@0: { 0x3FF8FB9F, \ michael@0: 0xEE63, \ michael@0: 0x48DF, \ michael@0: { 0x89, 0xF0, 0xDA, 0xCE, 0x02, 0x42, 0xFD, 0x82 } \ michael@0: } michael@0: #endif michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/streamconv classes michael@0: */ michael@0: michael@0: // service implementing nsIStreamConverterService michael@0: #define NS_STREAMCONVERTERSERVICE_CONTRACTID \ michael@0: "@mozilla.org/streamConverters;1" michael@0: #define NS_STREAMCONVERTERSERVICE_CID \ michael@0: { /* 892FFEB0-3F80-11d3-A16C-0050041CAF44 */ \ michael@0: 0x892ffeb0, \ michael@0: 0x3f80, \ michael@0: 0x11d3, \ michael@0: {0xa1, 0x6c, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44} \ michael@0: } michael@0: michael@0: /** michael@0: * General-purpose content sniffer component. Use with CreateInstance. michael@0: * michael@0: * Implements nsIContentSniffer michael@0: */ michael@0: #define NS_GENERIC_CONTENT_SNIFFER \ michael@0: "@mozilla.org/network/content-sniffer;1" michael@0: michael@0: /** michael@0: * Detector that can act as either an nsIStreamConverter or an michael@0: * nsIContentSniffer to decide whether text/plain data is "really" text/plain michael@0: * or APPLICATION_GUESS_FROM_EXT. Use with CreateInstance. michael@0: */ michael@0: #define NS_BINARYDETECTOR_CONTRACTID \ michael@0: "@mozilla.org/network/binary-detector;1" michael@0: michael@0: /****************************************************************************** michael@0: * netwerk/system classes michael@0: */ michael@0: michael@0: // service implementing nsINetworkLinkService michael@0: #define NS_NETWORK_LINK_SERVICE_CID \ michael@0: { 0x75a500a2, \ michael@0: 0x0030, \ michael@0: 0x40f7, \ michael@0: { 0x86, 0xf8, 0x63, 0xf2, 0x25, 0xb9, 0x40, 0xae } \ michael@0: } michael@0: michael@0: /****************************************************************************** michael@0: * Contracts that can be implemented by necko users. michael@0: */ michael@0: michael@0: /** michael@0: * This contract ID will be gotten as a service and gets the opportunity to look michael@0: * at and veto all redirects that are processed by necko. michael@0: * michael@0: * Must implement nsIChannelEventSink michael@0: */ michael@0: #define NS_GLOBAL_CHANNELEVENTSINK_CONTRACTID \ michael@0: "@mozilla.org/netwerk/global-channel-event-sink;1" michael@0: michael@0: /** michael@0: * This contract ID will be gotten as a service implementing nsINetworkLinkService michael@0: * and monitored by IOService for automatic online/offline management. michael@0: * michael@0: * Must implement nsINetworkLinkService michael@0: */ michael@0: #define NS_NETWORK_LINK_SERVICE_CONTRACTID \ michael@0: "@mozilla.org/network/network-link-service;1" michael@0: michael@0: /** michael@0: * This contract ID is used when Necko needs to wrap an nsIAuthPrompt as michael@0: * nsIAuthPrompt2. Implementing it is required for backwards compatibility michael@0: * with Versions before 1.9. michael@0: * michael@0: * Must implement nsIAuthPromptAdapterFactory michael@0: */ michael@0: #define NS_AUTHPROMPT_ADAPTER_FACTORY_CONTRACTID \ michael@0: "@mozilla.org/network/authprompt-adapter-factory;1" michael@0: michael@0: /** michael@0: * Must implement nsICryptoHash. michael@0: */ michael@0: #define NS_CRYPTO_HASH_CONTRACTID "@mozilla.org/security/hash;1" michael@0: michael@0: /** michael@0: * Must implement nsICryptoHMAC. michael@0: */ michael@0: #define NS_CRYPTO_HMAC_CONTRACTID "@mozilla.org/security/hmac;1" michael@0: michael@0: /****************************************************************************** michael@0: * Categories michael@0: */ michael@0: /** michael@0: * Services registered in this category will get notified via michael@0: * nsIChannelEventSink about all redirects that happen and have the opportunity michael@0: * to veto them. The value of the category entries is interpreted as the michael@0: * contract ID of the service. michael@0: */ michael@0: #define NS_CHANNEL_EVENT_SINK_CATEGORY "net-channel-event-sinks" michael@0: michael@0: /** michael@0: * Services in this category will get told about each load that happens and get michael@0: * the opportunity to override the detected MIME type via nsIContentSniffer. michael@0: * Services should not set the MIME type on the channel directly, but return the michael@0: * new type. If getMIMETypeFromContent throws an exception, the type will remain michael@0: * unchanged. michael@0: * michael@0: * Note that only channels with the LOAD_CALL_CONTENT_SNIFFERS flag will call michael@0: * content sniffers. Also note that there can be security implications about michael@0: * changing the MIME type -- proxies filtering responses based on their MIME michael@0: * type might consider certain types to be safe, which these sniffers can michael@0: * override. michael@0: * michael@0: * Not all channels may implement content sniffing. See also michael@0: * nsIChannel::LOAD_CALL_CONTENT_SNIFFERS. michael@0: */ michael@0: #define NS_CONTENT_SNIFFER_CATEGORY "net-content-sniffers" michael@0: michael@0: /** michael@0: * Services in this category can sniff content that is not necessarily loaded michael@0: * from the network, and they won't be told about each load. michael@0: */ michael@0: #define NS_DATA_SNIFFER_CATEGORY "content-sniffing-services" michael@0: michael@0: /** michael@0: * Must implement nsINSSErrorsService. michael@0: */ michael@0: #define NS_NSS_ERRORS_SERVICE_CONTRACTID "@mozilla.org/nss_errors_service;1" michael@0: michael@0: #endif // nsNetCID_h__