1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/build/nsNetCID.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,1013 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef nsNetCID_h__ 1.10 +#define nsNetCID_h__ 1.11 + 1.12 + 1.13 +/****************************************************************************** 1.14 + * netwerk/base/ classes 1.15 + */ 1.16 + 1.17 +// service implementing nsIIOService and nsIIOService2. 1.18 +#define NS_IOSERVICE_CONTRACTID \ 1.19 + "@mozilla.org/network/io-service;1" 1.20 +#define NS_IOSERVICE_CID \ 1.21 +{ /* 9ac9e770-18bc-11d3-9337-00104ba0fd40 */ \ 1.22 + 0x9ac9e770, \ 1.23 + 0x18bc, \ 1.24 + 0x11d3, \ 1.25 + {0x93, 0x37, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \ 1.26 +} 1.27 + 1.28 +// service implementing nsINetUtil 1.29 +#define NS_NETUTIL_CONTRACTID \ 1.30 + "@mozilla.org/network/util;1" 1.31 + 1.32 +// serialization scriptable helper 1.33 +#define NS_SERIALIZATION_HELPER_CONTRACTID \ 1.34 + "@mozilla.org/network/serialization-helper;1" 1.35 +#define NS_SERIALIZATION_HELPER_CID \ 1.36 +{ /* D6EF593D-A429-4b14-A887-D9E2F765D9ED */ \ 1.37 + 0xd6ef593d, \ 1.38 + 0xa429, \ 1.39 + 0x4b14, \ 1.40 + { 0xa8, 0x87, 0xd9, 0xe2, 0xf7, 0x65, 0xd9, 0xed } \ 1.41 +} 1.42 + 1.43 +// service implementing nsIProtocolProxyService and nsPIProtocolProxyService. 1.44 +#define NS_PROTOCOLPROXYSERVICE_CONTRACTID \ 1.45 + "@mozilla.org/network/protocol-proxy-service;1" 1.46 +#define NS_PROTOCOLPROXYSERVICE_CID \ 1.47 +{ /* E9B301C0-E0E4-11d3-A1A8-0050041CAF44 */ \ 1.48 + 0xe9b301c0, \ 1.49 + 0xe0e4, \ 1.50 + 0x11d3, \ 1.51 + {0xa1, 0xa8, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44} \ 1.52 +} 1.53 + 1.54 +// service implementing nsIProxyAutoConfig. 1.55 +#define NS_PROXYAUTOCONFIG_CONTRACTID \ 1.56 + "@mozilla.org/network/proxy-auto-config;1" 1.57 +#define NS_PROXYAUTOCONFIG_CID \ 1.58 +{ /* 63ac8c66-1dd2-11b2-b070-84d00d3eaece */ \ 1.59 + 0x63ac8c66, \ 1.60 + 0x1dd2, \ 1.61 + 0x11b2, \ 1.62 + {0xb0, 0x70, 0x84, 0xd0, 0x0d, 0x3e, 0xae, 0xce} \ 1.63 +} 1.64 + 1.65 +// component implementing nsILoadGroup. 1.66 +#define NS_LOADGROUP_CONTRACTID \ 1.67 + "@mozilla.org/network/load-group;1" 1.68 +#define NS_LOADGROUP_CID \ 1.69 +{ /* e1c61582-2a84-11d3-8cce-0060b0fc14a3 */ \ 1.70 + 0xe1c61582, \ 1.71 + 0x2a84, \ 1.72 + 0x11d3, \ 1.73 + {0x8c, 0xce, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \ 1.74 +} 1.75 + 1.76 +// component implementing nsIURI, nsISerializable, and nsIClassInfo. 1.77 +#define NS_SIMPLEURI_CONTRACTID \ 1.78 + "@mozilla.org/network/simple-uri;1" 1.79 +#define NS_SIMPLEURI_CID \ 1.80 +{ /* e0da1d70-2f7b-11d3-8cd0-0060b0fc14a3 */ \ 1.81 + 0xe0da1d70, \ 1.82 + 0x2f7b, \ 1.83 + 0x11d3, \ 1.84 + {0x8c, 0xd0, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \ 1.85 +} 1.86 + 1.87 +// component inheriting from the simple URI component and also 1.88 +// implementing nsINestedURI. 1.89 +#define NS_SIMPLENESTEDURI_CID \ 1.90 +{ /* 56388dad-287b-4240-a785-85c394012503 */ \ 1.91 + 0x56388dad, \ 1.92 + 0x287b, \ 1.93 + 0x4240, \ 1.94 + { 0xa7, 0x85, 0x85, 0xc3, 0x94, 0x01, 0x25, 0x03 } \ 1.95 +} 1.96 + 1.97 +// component inheriting from the nested simple URI component and also 1.98 +// carrying along its base URI 1.99 +#define NS_NESTEDABOUTURI_CID \ 1.100 +{ /* 2f277c00-0eaf-4ddb-b936-41326ba48aae */ \ 1.101 + 0x2f277c00, \ 1.102 + 0x0eaf, \ 1.103 + 0x4ddb, \ 1.104 + { 0xb9, 0x36, 0x41, 0x32, 0x6b, 0xa4, 0x8a, 0xae } \ 1.105 +} 1.106 + 1.107 +// component implementing nsIStandardURL, nsIURI, nsIURL, nsISerializable, 1.108 +// and nsIClassInfo. 1.109 +#define NS_STANDARDURL_CONTRACTID \ 1.110 + "@mozilla.org/network/standard-url;1" 1.111 +#define NS_STANDARDURL_CID \ 1.112 +{ /* de9472d0-8034-11d3-9399-00104ba0fd40 */ \ 1.113 + 0xde9472d0, \ 1.114 + 0x8034, \ 1.115 + 0x11d3, \ 1.116 + {0x93, 0x99, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \ 1.117 +} 1.118 + 1.119 +// service implementing nsIURLParser that assumes the URL will NOT contain an 1.120 +// authority section. 1.121 +#define NS_NOAUTHURLPARSER_CONTRACTID \ 1.122 + "@mozilla.org/network/url-parser;1?auth=no" 1.123 +#define NS_NOAUTHURLPARSER_CID \ 1.124 +{ /* 78804a84-8173-42b6-bb94-789f0816a810 */ \ 1.125 + 0x78804a84, \ 1.126 + 0x8173, \ 1.127 + 0x42b6, \ 1.128 + {0xbb, 0x94, 0x78, 0x9f, 0x08, 0x16, 0xa8, 0x10} \ 1.129 +} 1.130 + 1.131 +// service implementing nsIURLParser that assumes the URL will contain an 1.132 +// authority section. 1.133 +#define NS_AUTHURLPARSER_CONTRACTID \ 1.134 + "@mozilla.org/network/url-parser;1?auth=yes" 1.135 +#define NS_AUTHURLPARSER_CID \ 1.136 +{ /* 275d800e-3f60-4896-adb7-d7f390ce0e42 */ \ 1.137 + 0x275d800e, \ 1.138 + 0x3f60, \ 1.139 + 0x4896, \ 1.140 + {0xad, 0xb7, 0xd7, 0xf3, 0x90, 0xce, 0x0e, 0x42} \ 1.141 +} 1.142 + 1.143 +// service implementing nsIURLParser that does not make any assumptions about 1.144 +// whether or not the URL contains an authority section. 1.145 +#define NS_STDURLPARSER_CONTRACTID \ 1.146 + "@mozilla.org/network/url-parser;1?auth=maybe" 1.147 +#define NS_STDURLPARSER_CID \ 1.148 +{ /* ff41913b-546a-4bff-9201-dc9b2c032eba */ \ 1.149 + 0xff41913b, \ 1.150 + 0x546a, \ 1.151 + 0x4bff, \ 1.152 + {0x92, 0x01, 0xdc, 0x9b, 0x2c, 0x03, 0x2e, 0xba} \ 1.153 +} 1.154 + 1.155 +// component implementing nsIRequestObserverProxy. 1.156 +#define NS_REQUESTOBSERVERPROXY_CONTRACTID \ 1.157 + "@mozilla.org/network/request-observer-proxy;1" 1.158 +#define NS_REQUESTOBSERVERPROXY_CID \ 1.159 +{ /* 51fa28c7-74c0-4b85-9c46-d03faa7b696b */ \ 1.160 + 0x51fa28c7, \ 1.161 + 0x74c0, \ 1.162 + 0x4b85, \ 1.163 + {0x9c, 0x46, 0xd0, 0x3f, 0xaa, 0x7b, 0x69, 0x6b} \ 1.164 +} 1.165 + 1.166 +// component implementing nsISimpleStreamListener. 1.167 +#define NS_SIMPLESTREAMLISTENER_CONTRACTID \ 1.168 + "@mozilla.org/network/simple-stream-listener;1" 1.169 +#define NS_SIMPLESTREAMLISTENER_CID \ 1.170 +{ /* fb8cbf4e-4701-4ba1-b1d6-5388e041fb67 */ \ 1.171 + 0xfb8cbf4e, \ 1.172 + 0x4701, \ 1.173 + 0x4ba1, \ 1.174 + {0xb1, 0xd6, 0x53, 0x88, 0xe0, 0x41, 0xfb, 0x67} \ 1.175 +} 1.176 + 1.177 +// component implementing nsIStreamListenerTee. 1.178 +#define NS_STREAMLISTENERTEE_CONTRACTID \ 1.179 + "@mozilla.org/network/stream-listener-tee;1" 1.180 +#define NS_STREAMLISTENERTEE_CID \ 1.181 +{ /* 831f8f13-7aa8-485f-b02e-77c881cc5773 */ \ 1.182 + 0x831f8f13, \ 1.183 + 0x7aa8, \ 1.184 + 0x485f, \ 1.185 + {0xb0, 0x2e, 0x77, 0xc8, 0x81, 0xcc, 0x57, 0x73} \ 1.186 +} 1.187 + 1.188 +// component implementing nsIAsyncStreamCopier. 1.189 +#define NS_ASYNCSTREAMCOPIER_CONTRACTID \ 1.190 + "@mozilla.org/network/async-stream-copier;1" 1.191 +#define NS_ASYNCSTREAMCOPIER_CID \ 1.192 +{ /* e746a8b1-c97a-4fc5-baa4-66607521bd08 */ \ 1.193 + 0xe746a8b1, \ 1.194 + 0xc97a, \ 1.195 + 0x4fc5, \ 1.196 + {0xba, 0xa4, 0x66, 0x60, 0x75, 0x21, 0xbd, 0x08} \ 1.197 +} 1.198 + 1.199 +// component implementing nsIInputStreamPump. 1.200 +#define NS_INPUTSTREAMPUMP_CONTRACTID \ 1.201 + "@mozilla.org/network/input-stream-pump;1" 1.202 +#define NS_INPUTSTREAMPUMP_CID \ 1.203 +{ /* ccd0e960-7947-4635-b70e-4c661b63d675 */ \ 1.204 + 0xccd0e960, \ 1.205 + 0x7947, \ 1.206 + 0x4635, \ 1.207 + {0xb7, 0x0e, 0x4c, 0x66, 0x1b, 0x63, 0xd6, 0x75} \ 1.208 +} 1.209 + 1.210 +// component implementing nsIInputStreamChannel. 1.211 +#define NS_INPUTSTREAMCHANNEL_CONTRACTID \ 1.212 + "@mozilla.org/network/input-stream-channel;1" 1.213 +#define NS_INPUTSTREAMCHANNEL_CID \ 1.214 +{ /* 6ddb050c-0d04-11d4-986e-00c04fa0cf4a */ \ 1.215 + 0x6ddb050c, \ 1.216 + 0x0d04, \ 1.217 + 0x11d4, \ 1.218 + {0x98, 0x6e, 0x00, 0xc0, 0x4f, 0xa0, 0xcf, 0x4a} \ 1.219 +} 1.220 + 1.221 +// component implementing nsIStreamLoader. 1.222 +#define NS_STREAMLOADER_CONTRACTID \ 1.223 + "@mozilla.org/network/stream-loader;1" 1.224 +#define NS_STREAMLOADER_CID \ 1.225 +{ /* 5BA6D920-D4E9-11d3-A1A5-0050041CAF44 */ \ 1.226 + 0x5ba6d920, \ 1.227 + 0xd4e9, \ 1.228 + 0x11d3, \ 1.229 + { 0xa1, 0xa5, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44 } \ 1.230 +} 1.231 + 1.232 +// component implementing nsIUnicharStreamLoader. 1.233 +#define NS_UNICHARSTREAMLOADER_CONTRACTID \ 1.234 + "@mozilla.org/network/unichar-stream-loader;1" 1.235 +#define NS_UNICHARSTREAMLOADER_CID \ 1.236 +{ /* 9445791f-fa4c-4669-b174-df5032bb67b3 */ \ 1.237 + 0x9445791f, \ 1.238 + 0xfa4c, \ 1.239 + 0x4669, \ 1.240 + { 0xb1, 0x74, 0xdf, 0x50, 0x32, 0xbb, 0x67, 0xb3 } \ 1.241 +} 1.242 + 1.243 +// component implementing nsIDownloader. 1.244 +#define NS_DOWNLOADER_CONTRACTID \ 1.245 + "@mozilla.org/network/downloader;1" 1.246 +#define NS_DOWNLOADER_CID \ 1.247 +{ /* 510a86bb-6019-4ed1-bb4f-965cffd23ece */ \ 1.248 + 0x510a86bb, \ 1.249 + 0x6019, \ 1.250 + 0x4ed1, \ 1.251 + {0xbb, 0x4f, 0x96, 0x5c, 0xff, 0xd2, 0x3e, 0xce} \ 1.252 +} 1.253 + 1.254 +// component implementing nsIBackgroundFileSaver and 1.255 +// nsIOutputStream. 1.256 +#define NS_BACKGROUNDFILESAVEROUTPUTSTREAM_CONTRACTID \ 1.257 + "@mozilla.org/network/background-file-saver;1?mode=outputstream" 1.258 +#define NS_BACKGROUNDFILESAVEROUTPUTSTREAM_CID \ 1.259 +{ /* 62147d1e-ef6a-40e8-aaf8-d039f5caaa81 */ \ 1.260 + 0x62147d1e, \ 1.261 + 0xef6a, \ 1.262 + 0x40e8, \ 1.263 + {0xaa, 0xf8, 0xd0, 0x39, 0xf5, 0xca, 0xaa, 0x81} \ 1.264 +} 1.265 + 1.266 +// component implementing nsIBackgroundFileSaver and 1.267 +// nsIStreamListener. 1.268 +#define NS_BACKGROUNDFILESAVERSTREAMLISTENER_CONTRACTID \ 1.269 + "@mozilla.org/network/background-file-saver;1?mode=streamlistener" 1.270 +#define NS_BACKGROUNDFILESAVERSTREAMLISTENER_CID \ 1.271 +{ /* 208de7fc-a781-4031-bbae-cc0de539f61a */ \ 1.272 + 0x208de7fc, \ 1.273 + 0xa781, \ 1.274 + 0x4031, \ 1.275 + {0xbb, 0xae, 0xcc, 0x0d, 0xe5, 0x39, 0xf6, 0x1a} \ 1.276 +} 1.277 + 1.278 +// component implementing nsISyncStreamListener. 1.279 +#define NS_SYNCSTREAMLISTENER_CONTRACTID \ 1.280 + "@mozilla.org/network/sync-stream-listener;1" 1.281 +#define NS_SYNCSTREAMLISTENER_CID \ 1.282 +{ /* 439400d3-6f23-43db-8b06-8aafe1869bd8 */ \ 1.283 + 0x439400d3, \ 1.284 + 0x6f23, \ 1.285 + 0x43db, \ 1.286 + {0x8b, 0x06, 0x8a, 0xaf, 0xe1, 0x86, 0x9b, 0xd8} \ 1.287 +} 1.288 + 1.289 +// component implementing nsIURIChecker. 1.290 +#define NS_URICHECKER_CONTRACT_ID \ 1.291 + "@mozilla.org/network/urichecker;1" 1.292 +#define NS_URICHECKER_CID \ 1.293 +{ /* cf3a0e06-1dd1-11b2-a904-ac1d6da77a02 */ \ 1.294 + 0xcf3a0e06, \ 1.295 + 0x1dd1, \ 1.296 + 0x11b2, \ 1.297 + {0xa9, 0x04, 0xac, 0x1d, 0x6d, 0xa7, 0x7a, 0x02} \ 1.298 +} 1.299 + 1.300 +// component implementing nsIIncrementalDownload. 1.301 +#define NS_INCREMENTALDOWNLOAD_CONTRACTID \ 1.302 + "@mozilla.org/network/incremental-download;1" 1.303 + 1.304 +// component implementing nsISystemProxySettings. 1.305 +#define NS_SYSTEMPROXYSETTINGS_CONTRACTID \ 1.306 + "@mozilla.org/system-proxy-settings;1" 1.307 + 1.308 +// service implementing nsIStreamTransportService 1.309 +#define NS_STREAMTRANSPORTSERVICE_CONTRACTID \ 1.310 + "@mozilla.org/network/stream-transport-service;1" 1.311 +#define NS_STREAMTRANSPORTSERVICE_CID \ 1.312 +{ /* 0885d4f8-f7b8-4cda-902e-94ba38bc256e */ \ 1.313 + 0x0885d4f8, \ 1.314 + 0xf7b8, \ 1.315 + 0x4cda, \ 1.316 + {0x90, 0x2e, 0x94, 0xba, 0x38, 0xbc, 0x25, 0x6e} \ 1.317 +} 1.318 + 1.319 +// service implementing nsISocketTransportService 1.320 +#define NS_SOCKETTRANSPORTSERVICE_CONTRACTID \ 1.321 + "@mozilla.org/network/socket-transport-service;1" 1.322 +#define NS_SOCKETTRANSPORTSERVICE_CID \ 1.323 +{ /* c07e81e0-ef12-11d2-92b6-00105a1b0d64 */ \ 1.324 + 0xc07e81e0, \ 1.325 + 0xef12, \ 1.326 + 0x11d2, \ 1.327 + {0x92, 0xb6, 0x00, 0x10, 0x5a, 0x1b, 0x0d, 0x64} \ 1.328 +} 1.329 + 1.330 +// component implementing nsIServerSocket 1.331 +#define NS_SERVERSOCKET_CONTRACTID \ 1.332 + "@mozilla.org/network/server-socket;1" 1.333 +#define NS_SERVERSOCKET_CID \ 1.334 +{ /* 2ec62893-3b35-48fa-ab1d-5e68a9f45f08 */ \ 1.335 + 0x2ec62893, \ 1.336 + 0x3b35, \ 1.337 + 0x48fa, \ 1.338 + {0xab, 0x1d, 0x5e, 0x68, 0xa9, 0xf4, 0x5f, 0x08} \ 1.339 +} 1.340 + 1.341 +// component implementing nsIUDPSocket 1.342 +#define NS_UDPSOCKET_CONTRACTID \ 1.343 + "@mozilla.org/network/udp-socket;1" 1.344 +#define NS_UDPSOCKET_CID \ 1.345 +{ /* c9f74572-7b8e-4fec-bb4a-03c0d3021bd6 */ \ 1.346 + 0xc9f74572, \ 1.347 + 0x7b8e, \ 1.348 + 0x4fec, \ 1.349 + {0xbb, 0x4a, 0x03, 0xc0, 0xd3, 0x02, 0x1b, 0xd6} \ 1.350 +} 1.351 + 1.352 +#define NS_LOCALFILEINPUTSTREAM_CONTRACTID \ 1.353 + "@mozilla.org/network/file-input-stream;1" 1.354 +#define NS_LOCALFILEINPUTSTREAM_CID \ 1.355 +{ /* be9a53ae-c7e9-11d3-8cda-0060b0fc14a3 */ \ 1.356 + 0xbe9a53ae, \ 1.357 + 0xc7e9, \ 1.358 + 0x11d3, \ 1.359 + {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \ 1.360 +} 1.361 + 1.362 +#define NS_LOCALFILEOUTPUTSTREAM_CONTRACTID \ 1.363 + "@mozilla.org/network/file-output-stream;1" 1.364 +#define NS_LOCALFILEOUTPUTSTREAM_CID \ 1.365 +{ /* c272fee0-c7e9-11d3-8cda-0060b0fc14a3 */ \ 1.366 + 0xc272fee0, \ 1.367 + 0xc7e9, \ 1.368 + 0x11d3, \ 1.369 + {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \ 1.370 +} 1.371 + 1.372 +#define NS_PARTIALLOCALFILEINPUTSTREAM_CONTRACTID \ 1.373 + "@mozilla.org/network/partial-file-input-stream;1" 1.374 +#define NS_PARTIALLOCALFILEINPUTSTREAM_CID \ 1.375 +{ /* 8738afd6-162a-418d-a99b-75b3a6b10a56 */ \ 1.376 + 0x8738afd6, \ 1.377 + 0x162a, \ 1.378 + 0x418d, \ 1.379 + {0xa9, 0x9b, 0x75, 0xb3, 0xa6, 0xb1, 0x0a, 0x56} \ 1.380 +} 1.381 + 1.382 +#define NS_BUFFEREDINPUTSTREAM_CONTRACTID \ 1.383 + "@mozilla.org/network/buffered-input-stream;1" 1.384 +#define NS_BUFFEREDINPUTSTREAM_CID \ 1.385 +{ /* 9226888e-da08-11d3-8cda-0060b0fc14a3 */ \ 1.386 + 0x9226888e, \ 1.387 + 0xda08, \ 1.388 + 0x11d3, \ 1.389 + {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \ 1.390 +} 1.391 + 1.392 +#define NS_BUFFEREDOUTPUTSTREAM_CONTRACTID \ 1.393 + "@mozilla.org/network/buffered-output-stream;1" 1.394 +#define NS_BUFFEREDOUTPUTSTREAM_CID \ 1.395 +{ /* 9868b4ce-da08-11d3-8cda-0060b0fc14a3 */ \ 1.396 + 0x9868b4ce, \ 1.397 + 0xda08, \ 1.398 + 0x11d3, \ 1.399 + {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \ 1.400 +} 1.401 + 1.402 +// components implementing nsISafeOutputStream 1.403 +#define NS_ATOMICLOCALFILEOUTPUTSTREAM_CONTRACTID \ 1.404 + "@mozilla.org/network/atomic-file-output-stream;1" 1.405 +#define NS_ATOMICLOCALFILEOUTPUTSTREAM_CID \ 1.406 +{ /* 6EAE857E-4BA9-11E3-9B39-B4036188709B */ \ 1.407 + 0x6EAE857E, \ 1.408 + 0x4BA9, \ 1.409 + 0x11E3, \ 1.410 + {0x9b, 0x39, 0xb4, 0x03, 0x61, 0x88, 0x70, 0x9b} \ 1.411 +} 1.412 + 1.413 +#define NS_SAFELOCALFILEOUTPUTSTREAM_CONTRACTID \ 1.414 + "@mozilla.org/network/safe-file-output-stream;1" 1.415 +#define NS_SAFELOCALFILEOUTPUTSTREAM_CID \ 1.416 +{ /* a181af0d-68b8-4308-94db-d4f859058215 */ \ 1.417 + 0xa181af0d, \ 1.418 + 0x68b8, \ 1.419 + 0x4308, \ 1.420 + {0x94, 0xdb, 0xd4, 0xf8, 0x59, 0x05, 0x82, 0x15} \ 1.421 +} 1.422 + 1.423 +// component implementing nsIFileStream 1.424 +#define NS_LOCALFILESTREAM_CONTRACTID \ 1.425 + "@mozilla.org/network/file-stream;1" 1.426 +#define NS_LOCALFILESTREAM_CID \ 1.427 +{ /* f8a69bd7-176c-4a60-9a05-b6d92f8f229a */ \ 1.428 + 0xf8a69bd7, \ 1.429 + 0x176c, \ 1.430 + 0x4a60, \ 1.431 + {0x9a, 0x05, 0xb6, 0xd9, 0x2f, 0x8f, 0x22, 0x9a} \ 1.432 +} 1.433 + 1.434 +/** 1.435 + * Contract ID for a service implementing nsIURIClassifier that identifies 1.436 + * phishing and malware sites. 1.437 + */ 1.438 +#define NS_URICLASSIFIERSERVICE_CONTRACTID \ 1.439 + "@mozilla.org/uriclassifierservice" 1.440 + 1.441 +// Redirect channel registrar used for redirect to various protocols 1.442 +#define NS_REDIRECTCHANNELREGISTRAR_CONTRACTID \ 1.443 + "@mozilla.org/redirectchannelregistrar;1" 1.444 +#define NS_REDIRECTCHANNELREGISTRAR_CID \ 1.445 +{ /* {b69043a6-8929-4d60-8d17-a27e44a8393e} */ \ 1.446 + 0xb69043a6, \ 1.447 + 0x8929, \ 1.448 + 0x4d60, \ 1.449 + { 0x8d, 0x17, 0xa2, 0x7e, 0x44, 0xa8, 0x39, 0x3e } \ 1.450 +} 1.451 + 1.452 +// service implementing nsINetworkSeer 1.453 +#define NS_NETWORKSEER_CONTRACTID \ 1.454 + "@mozilla.org/network/seer;1" 1.455 +#define NS_NETWORKSEER_CID \ 1.456 +{ /* {1C218009-A531-46AD-8351-1E7F45D5A3C4} */ \ 1.457 + 0x1C218009, \ 1.458 + 0xA531, \ 1.459 + 0x46AD, \ 1.460 + { 0x83, 0x51, 0x1E, 0x7F, 0x45, 0xD5, 0xA3, 0xC4 } \ 1.461 +} 1.462 + 1.463 +/****************************************************************************** 1.464 + * netwerk/cache/ classes 1.465 + */ 1.466 + 1.467 +// service implementing nsICacheService. 1.468 +#define NS_CACHESERVICE_CONTRACTID \ 1.469 + "@mozilla.org/network/cache-service;1" 1.470 +#define NS_CACHESERVICE_CID \ 1.471 +{ /* 6c84aec9-29a5-4264-8fbc-bee8f922ea67 */ \ 1.472 + 0x6c84aec9, \ 1.473 + 0x29a5, \ 1.474 + 0x4264, \ 1.475 + {0x8f, 0xbc, 0xbe, 0xe8, 0xf9, 0x22, 0xea, 0x67} \ 1.476 +} 1.477 + 1.478 +// service implementing nsIApplicationCacheService. 1.479 +#define NS_APPLICATIONCACHESERVICE_CONTRACTID \ 1.480 + "@mozilla.org/network/application-cache-service;1" 1.481 +#define NS_APPLICATIONCACHESERVICE_CID \ 1.482 +{ /* 02bf7a2a-39d8-4a23-a50c-2cbb085ab7a5 */ \ 1.483 + 0x02bf7a2a, \ 1.484 + 0x39d8, \ 1.485 + 0x4a23, \ 1.486 + {0xa5, 0x0c, 0x2c, 0xbb, 0x08, 0x5a, 0xb7, 0xa5} \ 1.487 +} 1.488 + 1.489 +#define NS_APPLICATIONCACHENAMESPACE_CONTRACTID \ 1.490 + "@mozilla.org/network/application-cache-namespace;1" 1.491 +#define NS_APPLICATIONCACHENAMESPACE_CID \ 1.492 +{ /* b00ed78a-04e2-4f74-8e1c-d1af79dfd12f */ \ 1.493 + 0xb00ed78a, \ 1.494 + 0x04e2, \ 1.495 + 0x4f74, \ 1.496 + {0x8e, 0x1c, 0xd1, 0xaf, 0x79, 0xdf, 0xd1, 0x2f} \ 1.497 +} 1.498 + 1.499 +#define NS_APPLICATIONCACHE_CONTRACTID \ 1.500 + "@mozilla.org/network/application-cache;1" 1.501 + 1.502 +#define NS_APPLICATIONCACHE_CID \ 1.503 +{ /* 463440c5-baad-4f3c-9e50-0b107abe7183 */ \ 1.504 + 0x463440c5, \ 1.505 + 0xbaad, \ 1.506 + 0x4f3c, \ 1.507 + {0x9e, 0x50, 0xb, 0x10, 0x7a, 0xbe, 0x71, 0x83 } \ 1.508 +} 1.509 + 1.510 +/****************************************************************************** 1.511 + * netwerk/protocol/http/ classes 1.512 + */ 1.513 + 1.514 +#define NS_HTTPPROTOCOLHANDLER_CID \ 1.515 +{ /* 4f47e42e-4d23-4dd3-bfda-eb29255e9ea3 */ \ 1.516 + 0x4f47e42e, \ 1.517 + 0x4d23, \ 1.518 + 0x4dd3, \ 1.519 + {0xbf, 0xda, 0xeb, 0x29, 0x25, 0x5e, 0x9e, 0xa3} \ 1.520 +} 1.521 + 1.522 +#define NS_HTTPSPROTOCOLHANDLER_CID \ 1.523 +{ /* dccbe7e4-7750-466b-a557-5ea36c8ff24e */ \ 1.524 + 0xdccbe7e4, \ 1.525 + 0x7750, \ 1.526 + 0x466b, \ 1.527 + {0xa5, 0x57, 0x5e, 0xa3, 0x6c, 0x8f, 0xf2, 0x4e} \ 1.528 +} 1.529 + 1.530 +#define NS_HTTPBASICAUTH_CID \ 1.531 +{ /* fca3766a-434a-4ae7-83cf-0909e18a093a */ \ 1.532 + 0xfca3766a, \ 1.533 + 0x434a, \ 1.534 + 0x4ae7, \ 1.535 + {0x83, 0xcf, 0x09, 0x09, 0xe1, 0x8a, 0x09, 0x3a} \ 1.536 +} 1.537 + 1.538 +#define NS_HTTPDIGESTAUTH_CID \ 1.539 +{ /* 17491ba4-1dd2-11b2-aae3-de6b92dab620 */ \ 1.540 + 0x17491ba4, \ 1.541 + 0x1dd2, \ 1.542 + 0x11b2, \ 1.543 + {0xaa, 0xe3, 0xde, 0x6b, 0x92, 0xda, 0xb6, 0x20} \ 1.544 +} 1.545 + 1.546 +#define NS_HTTPNTLMAUTH_CID \ 1.547 +{ /* bbef8185-c628-4cc1-b53e-e61e74c2451a */ \ 1.548 + 0xbbef8185, \ 1.549 + 0xc628, \ 1.550 + 0x4cc1, \ 1.551 + {0xb5, 0x3e, 0xe6, 0x1e, 0x74, 0xc2, 0x45, 0x1a} \ 1.552 +} 1.553 + 1.554 +#define NS_HTTPAUTHMANAGER_CONTRACTID \ 1.555 + "@mozilla.org/network/http-auth-manager;1" 1.556 +#define NS_HTTPAUTHMANAGER_CID \ 1.557 +{ /* 36b63ef3-e0fa-4c49-9fd4-e065e85568f4 */ \ 1.558 + 0x36b63ef3, \ 1.559 + 0xe0fa, \ 1.560 + 0x4c49, \ 1.561 + {0x9f, 0xd4, 0xe0, 0x65, 0xe8, 0x55, 0x68, 0xf4} \ 1.562 +} 1.563 + 1.564 +#define NS_HTTPCHANNELAUTHPROVIDER_CONTRACTID \ 1.565 + "@mozilla.org/network/http-channel-auth-provider;1" 1.566 +#define NS_HTTPCHANNELAUTHPROVIDER_CID \ 1.567 +{ /* 02f5a8d8-4ef3-48b1-b527-8a643056abbd */ \ 1.568 + 0x02f5a8d8, \ 1.569 + 0x4ef3, \ 1.570 + 0x48b1, \ 1.571 + {0xb5, 0x27, 0x8a, 0x64, 0x30, 0x56, 0xab, 0xbd} \ 1.572 +} 1.573 + 1.574 +#define NS_HTTPACTIVITYDISTRIBUTOR_CONTRACTID \ 1.575 + "@mozilla.org/network/http-activity-distributor;1" 1.576 +#define NS_HTTPACTIVITYDISTRIBUTOR_CID \ 1.577 +{ /* 15629ada-a41c-4a09-961f-6553cd60b1a2 */ \ 1.578 + 0x15629ada, \ 1.579 + 0xa41c, \ 1.580 + 0x4a09, \ 1.581 + {0x96, 0x1f, 0x65, 0x53, 0xcd, 0x60, 0xb1, 0xa2} \ 1.582 +} 1.583 + 1.584 +/****************************************************************************** 1.585 + * netwerk/protocol/ftp/ classes 1.586 + */ 1.587 + 1.588 +#define NS_FTPPROTOCOLHANDLER_CID \ 1.589 +{ /* 25029490-F132-11d2-9588-00805F369F95 */ \ 1.590 + 0x25029490, \ 1.591 + 0xf132, \ 1.592 + 0x11d2, \ 1.593 + {0x95, 0x88, 0x0, 0x80, 0x5f, 0x36, 0x9f, 0x95} \ 1.594 +} 1.595 + 1.596 +/****************************************************************************** 1.597 + * netwerk/protocol/res/ classes 1.598 + */ 1.599 + 1.600 +#define NS_RESPROTOCOLHANDLER_CID \ 1.601 +{ /* e64f152a-9f07-11d3-8cda-0060b0fc14a3 */ \ 1.602 + 0xe64f152a, \ 1.603 + 0x9f07, \ 1.604 + 0x11d3, \ 1.605 + {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \ 1.606 +} 1.607 + 1.608 +#define NS_RESURL_CID \ 1.609 +{ /* ff8fe7ec-2f74-4408-b742-6b7a546029a8 */ \ 1.610 + 0xff8fe7ec, \ 1.611 + 0x2f74, \ 1.612 + 0x4408, \ 1.613 + {0xb7, 0x42, 0x6b, 0x7a, 0x54, 0x60, 0x29, 0xa8} \ 1.614 +} 1.615 + 1.616 + 1.617 +/****************************************************************************** 1.618 + * netwerk/protocol/file/ classes 1.619 + */ 1.620 + 1.621 +#define NS_FILEPROTOCOLHANDLER_CID \ 1.622 +{ /* fbc81170-1f69-11d3-9344-00104ba0fd40 */ \ 1.623 + 0xfbc81170, \ 1.624 + 0x1f69, \ 1.625 + 0x11d3, \ 1.626 + {0x93, 0x44, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \ 1.627 +} 1.628 + 1.629 +/****************************************************************************** 1.630 + * netwerk/protocol/app/ classes 1.631 + */ 1.632 + 1.633 +#define NS_APPPROTOCOLHANDLER_CID \ 1.634 +{ /* {B6ED3030-9999-11d3-A178-0050041CAF44} */ \ 1.635 + 0xb6ed3030, \ 1.636 + 0x9999, \ 1.637 + 0x11d3, \ 1.638 + {0xa1, 0x78, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44} \ 1.639 +} 1.640 + 1.641 +/****************************************************************************** 1.642 + * netwerk/protocol/data/ classes 1.643 + */ 1.644 + 1.645 +#define NS_DATAPROTOCOLHANDLER_CID \ 1.646 +{ /* {B6ED3030-6183-11d3-A178-0050041CAF44} */ \ 1.647 + 0xb6ed3030, \ 1.648 + 0x6183, \ 1.649 + 0x11d3, \ 1.650 + {0xa1, 0x78, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44} \ 1.651 +} 1.652 + 1.653 +/****************************************************************************** 1.654 + * netwerk/protocol/device classes 1.655 + */ 1.656 +#define NS_DEVICEPROTOCOLHANDLER_CID \ 1.657 +{ /* 6b0ffe9e-d114-486b-aeb7-da62e7273ed5 */ \ 1.658 + 0x60ffe9e, \ 1.659 + 0xd114, \ 1.660 + 0x486b, \ 1.661 + {0xae, 0xb7, 0xda, 0x62, 0xe7, 0x27, 0x3e, 0xd5} \ 1.662 +} 1.663 + 1.664 +/****************************************************************************** 1.665 + * netwerk/protocol/viewsource/ classes 1.666 + */ 1.667 + 1.668 +// service implementing nsIProtocolHandler 1.669 +#define NS_VIEWSOURCEHANDLER_CID \ 1.670 +{ /* {0x9c7ec5d1-23f9-11d5-aea8-8fcc0793e97f} */ \ 1.671 + 0x9c7ec5d1, \ 1.672 + 0x23f9, \ 1.673 + 0x11d5, \ 1.674 + {0xae, 0xa8, 0x8f, 0xcc, 0x07, 0x93, 0xe9, 0x7f} \ 1.675 +} 1.676 + 1.677 +/****************************************************************************** 1.678 + * netwerk/protocol/wyciwyg/ classes 1.679 + */ 1.680 + 1.681 +#define NS_WYCIWYGPROTOCOLHANDLER_CID \ 1.682 +{ /* {0xe7509b46-2eB2-410a-9d7c-c3ce73284d01} */ \ 1.683 + 0xe7509b46, \ 1.684 + 0x2eb2, \ 1.685 + 0x410a, \ 1.686 + {0x9d, 0x7c, 0xc3, 0xce, 0x73, 0x28, 0x4d, 0x01} \ 1.687 +} 1.688 + 1.689 +/****************************************************************************** 1.690 + * netwerk/protocol/websocket/ classes 1.691 + */ 1.692 + 1.693 +#define NS_WEBSOCKETPROTOCOLHANDLER_CID \ 1.694 +{ /* {dc01db59-a513-4c90-824b-085cce06c0aa} */ \ 1.695 + 0xdc01db59, \ 1.696 + 0xa513, \ 1.697 + 0x4c90, \ 1.698 + {0x82, 0x4b, 0x08, 0x5c, 0xce, 0x06, 0xc0, 0xaa} \ 1.699 +} 1.700 + 1.701 +#define NS_WEBSOCKETSSLPROTOCOLHANDLER_CID \ 1.702 +{ /* {dc01dbbb-a5bb-4cbb-82bb-085cce06c0bb} */ \ 1.703 + 0xdc01dbbb, \ 1.704 + 0xa5bb, \ 1.705 + 0x4cbb, \ 1.706 + {0x82, 0xbb, 0x08, 0x5c, 0xce, 0x06, 0xc0, 0xbb} \ 1.707 +} 1.708 + 1.709 +/****************************************************************************** 1.710 + * netwerk/protocol/rtsp / classes 1.711 + */ 1.712 + 1.713 +#define NS_RTSPPROTOCOLHANDLER_CID \ 1.714 +{ /* {5bb4b980-7b10-11e2-b92a-0800200c9a66} */ \ 1.715 + 0x5bb4b980, \ 1.716 + 0x7b10, \ 1.717 + 0x11e2, \ 1.718 + {0xb9, 0x2a, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66} \ 1.719 +} 1.720 + 1.721 +/****************************************************************************** 1.722 + * netwerk/protocol/about/ classes 1.723 + */ 1.724 + 1.725 +#define NS_ABOUTPROTOCOLHANDLER_CID \ 1.726 +{ /* 9e3b6c90-2f75-11d3-8cd0-0060b0fc14a3 */ \ 1.727 + 0x9e3b6c90, \ 1.728 + 0x2f75, \ 1.729 + 0x11d3, \ 1.730 + {0x8c, 0xd0, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \ 1.731 +} 1.732 + 1.733 +#define NS_SAFEABOUTPROTOCOLHANDLER_CID \ 1.734 +{ /* 1423e739-782c-4081-b5d8-fe6fba68c0ef */ \ 1.735 + 0x1423e739, \ 1.736 + 0x782c, \ 1.737 + 0x4081, \ 1.738 + {0xb5, 0xd8, 0xfe, 0x6f, 0xba, 0x68, 0xc0, 0xef} \ 1.739 +} 1.740 + 1.741 +/****************************************************************************** 1.742 + * netwerk/dns/ classes 1.743 + */ 1.744 + 1.745 +#define NS_DNSSERVICE_CONTRACTID \ 1.746 + "@mozilla.org/network/dns-service;1" 1.747 +#define NS_DNSSERVICE_CID \ 1.748 +{ /* b0ff4572-dae4-4bef-a092-83c1b88f6be9 */ \ 1.749 + 0xb0ff4572, \ 1.750 + 0xdae4, \ 1.751 + 0x4bef, \ 1.752 + {0xa0, 0x92, 0x83, 0xc1, 0xb8, 0x8f, 0x6b, 0xe9} \ 1.753 +} 1.754 + 1.755 +/* ContractID of the XPCOM package that implements nsIIDNService */ 1.756 +#define NS_IDNSERVICE_CONTRACTID \ 1.757 + "@mozilla.org/network/idn-service;1" 1.758 +#define NS_IDNSERVICE_CID \ 1.759 +{ /* 62b778a6-bce3-456b-8c31-2865fbb68c91 */ \ 1.760 + 0x62b778a6, \ 1.761 + 0xbce3, \ 1.762 + 0x456b, \ 1.763 + {0x8c, 0x31, 0x28, 0x65, 0xfb, 0xb6, 0x8c, 0x91} \ 1.764 +} 1.765 + 1.766 +#define NS_EFFECTIVETLDSERVICE_CONTRACTID \ 1.767 + "@mozilla.org/network/effective-tld-service;1" 1.768 +#define NS_EFFECTIVETLDSERVICE_CID \ 1.769 +{ /* cb9abbae-66b6-4609-8594-5c4ff300888e */ \ 1.770 + 0xcb9abbae, \ 1.771 + 0x66b6, \ 1.772 + 0x4609, \ 1.773 + {0x85, 0x94, 0x5c, 0x4f, 0xf3, 0x00, 0x88, 0x8e} \ 1.774 +} 1.775 + 1.776 + 1.777 +/****************************************************************************** 1.778 + * netwerk/mime classes 1.779 + */ 1.780 + 1.781 +// {1F4DBCF7-245C-4c8c-943D-8A1DA0495E8A} 1.782 +#define NS_MIMEHEADERPARAM_CID \ 1.783 +{ 0x1f4dbcf7, \ 1.784 + 0x245c, \ 1.785 + 0x4c8c, \ 1.786 + { 0x94, 0x3d, 0x8a, 0x1d, 0xa0, 0x49, 0x5e, 0x8a } \ 1.787 +} 1.788 + 1.789 +#define NS_MIMEHEADERPARAM_CONTRACTID "@mozilla.org/network/mime-hdrparam;1" 1.790 + 1.791 + 1.792 +/****************************************************************************** 1.793 + * netwerk/socket classes 1.794 + */ 1.795 + 1.796 +#define NS_SOCKETPROVIDERSERVICE_CONTRACTID \ 1.797 + "@mozilla.org/network/socket-provider-service;1" 1.798 +#define NS_SOCKETPROVIDERSERVICE_CID \ 1.799 +{ /* ed394ba0-5472-11d3-bbc8-0000861d1237 */ \ 1.800 + 0xed394ba0, \ 1.801 + 0x5472, \ 1.802 + 0x11d3, \ 1.803 + { 0xbb, 0xc8, 0x00, 0x00, 0x86, 0x1d, 0x12, 0x37 } \ 1.804 +} 1.805 + 1.806 +#define NS_SOCKSSOCKETPROVIDER_CID \ 1.807 +{ /* 8dbe7246-1dd2-11b2-9b8f-b9a849e4403a */ \ 1.808 + 0x8dbe7246, \ 1.809 + 0x1dd2, \ 1.810 + 0x11b2, \ 1.811 + { 0x9b, 0x8f, 0xb9, 0xa8, 0x49, 0xe4, 0x40, 0x3a } \ 1.812 +} 1.813 + 1.814 +#define NS_SOCKS4SOCKETPROVIDER_CID \ 1.815 +{ /* F7C9F5F4-4451-41c3-A28A-5BA2447FBACE */ \ 1.816 + 0xf7c9f5f4, \ 1.817 + 0x4451, \ 1.818 + 0x41c3, \ 1.819 + { 0xa2, 0x8a, 0x5b, 0xa2, 0x44, 0x7f, 0xba, 0xce } \ 1.820 +} 1.821 + 1.822 +#define NS_UDPSOCKETPROVIDER_CID \ 1.823 +{ /* 320706D2-2E81-42c6-89C3-8D83B17D3FB4 */ \ 1.824 + 0x320706d2, \ 1.825 + 0x2e81, \ 1.826 + 0x42c6, \ 1.827 + { 0x89, 0xc3, 0x8d, 0x83, 0xb1, 0x7d, 0x3f, 0xb4 } \ 1.828 +} 1.829 + 1.830 +#define NS_SSLSOCKETPROVIDER_CONTRACTID \ 1.831 + NS_NETWORK_SOCKET_CONTRACTID_PREFIX "ssl" 1.832 + 1.833 +/* This code produces a normal socket which can be used to initiate the 1.834 + * STARTTLS protocol by calling its nsISSLSocketControl->StartTLS() 1.835 + */ 1.836 +#define NS_STARTTLSSOCKETPROVIDER_CONTRACTID \ 1.837 + NS_NETWORK_SOCKET_CONTRACTID_PREFIX "starttls" 1.838 + 1.839 + 1.840 +#define NS_DASHBOARD_CONTRACTID \ 1.841 + "@mozilla.org/network/dashboard;1" 1.842 +#define NS_DASHBOARD_CID \ 1.843 +{ /*c79eb3c6-091a-45a6-8544-5a8d1ab79537 */ \ 1.844 + 0xc79eb3c6, \ 1.845 + 0x091a, \ 1.846 + 0x45a6, \ 1.847 + { 0x85, 0x44, 0x5a, 0x8d, 0x1a, 0xb7, 0x95, 0x37 } \ 1.848 +} 1.849 + 1.850 + 1.851 +/****************************************************************************** 1.852 + * netwerk/cookie classes 1.853 + */ 1.854 + 1.855 +// service implementing nsICookieManager and nsICookieManager2. 1.856 +#define NS_COOKIEMANAGER_CONTRACTID \ 1.857 + "@mozilla.org/cookiemanager;1" 1.858 +#define NS_COOKIEMANAGER_CID \ 1.859 +{ /* aaab6710-0f2c-11d5-a53b-0010a401eb10 */ \ 1.860 + 0xaaab6710, \ 1.861 + 0x0f2c, \ 1.862 + 0x11d5, \ 1.863 + { 0xa5, 0x3b, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 } \ 1.864 +} 1.865 + 1.866 +// service implementing nsICookieService. 1.867 +#define NS_COOKIESERVICE_CONTRACTID \ 1.868 + "@mozilla.org/cookieService;1" 1.869 +#define NS_COOKIESERVICE_CID \ 1.870 +{ /* c375fa80-150f-11d6-a618-0010a401eb10 */ \ 1.871 + 0xc375fa80, \ 1.872 + 0x150f, \ 1.873 + 0x11d6, \ 1.874 + { 0xa6, 0x18, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 } \ 1.875 +} 1.876 + 1.877 +/****************************************************************************** 1.878 + * netwerk/wifi classes 1.879 + */ 1.880 +#ifdef NECKO_WIFI 1.881 +#define NS_WIFI_MONITOR_CONTRACTID "@mozilla.org/wifi/monitor;1" 1.882 + 1.883 +#define NS_WIFI_MONITOR_COMPONENT_CID \ 1.884 +{ 0x3FF8FB9F, \ 1.885 + 0xEE63, \ 1.886 + 0x48DF, \ 1.887 + { 0x89, 0xF0, 0xDA, 0xCE, 0x02, 0x42, 0xFD, 0x82 } \ 1.888 +} 1.889 +#endif 1.890 + 1.891 +/****************************************************************************** 1.892 + * netwerk/streamconv classes 1.893 + */ 1.894 + 1.895 +// service implementing nsIStreamConverterService 1.896 +#define NS_STREAMCONVERTERSERVICE_CONTRACTID \ 1.897 + "@mozilla.org/streamConverters;1" 1.898 +#define NS_STREAMCONVERTERSERVICE_CID \ 1.899 +{ /* 892FFEB0-3F80-11d3-A16C-0050041CAF44 */ \ 1.900 + 0x892ffeb0, \ 1.901 + 0x3f80, \ 1.902 + 0x11d3, \ 1.903 + {0xa1, 0x6c, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44} \ 1.904 +} 1.905 + 1.906 +/** 1.907 + * General-purpose content sniffer component. Use with CreateInstance. 1.908 + * 1.909 + * Implements nsIContentSniffer 1.910 + */ 1.911 +#define NS_GENERIC_CONTENT_SNIFFER \ 1.912 + "@mozilla.org/network/content-sniffer;1" 1.913 + 1.914 +/** 1.915 + * Detector that can act as either an nsIStreamConverter or an 1.916 + * nsIContentSniffer to decide whether text/plain data is "really" text/plain 1.917 + * or APPLICATION_GUESS_FROM_EXT. Use with CreateInstance. 1.918 + */ 1.919 +#define NS_BINARYDETECTOR_CONTRACTID \ 1.920 + "@mozilla.org/network/binary-detector;1" 1.921 + 1.922 +/****************************************************************************** 1.923 + * netwerk/system classes 1.924 + */ 1.925 + 1.926 +// service implementing nsINetworkLinkService 1.927 +#define NS_NETWORK_LINK_SERVICE_CID \ 1.928 + { 0x75a500a2, \ 1.929 + 0x0030, \ 1.930 + 0x40f7, \ 1.931 + { 0x86, 0xf8, 0x63, 0xf2, 0x25, 0xb9, 0x40, 0xae } \ 1.932 + } 1.933 + 1.934 +/****************************************************************************** 1.935 + * Contracts that can be implemented by necko users. 1.936 + */ 1.937 + 1.938 +/** 1.939 + * This contract ID will be gotten as a service and gets the opportunity to look 1.940 + * at and veto all redirects that are processed by necko. 1.941 + * 1.942 + * Must implement nsIChannelEventSink 1.943 + */ 1.944 +#define NS_GLOBAL_CHANNELEVENTSINK_CONTRACTID \ 1.945 + "@mozilla.org/netwerk/global-channel-event-sink;1" 1.946 + 1.947 +/** 1.948 + * This contract ID will be gotten as a service implementing nsINetworkLinkService 1.949 + * and monitored by IOService for automatic online/offline management. 1.950 + * 1.951 + * Must implement nsINetworkLinkService 1.952 + */ 1.953 +#define NS_NETWORK_LINK_SERVICE_CONTRACTID \ 1.954 + "@mozilla.org/network/network-link-service;1" 1.955 + 1.956 +/** 1.957 + * This contract ID is used when Necko needs to wrap an nsIAuthPrompt as 1.958 + * nsIAuthPrompt2. Implementing it is required for backwards compatibility 1.959 + * with Versions before 1.9. 1.960 + * 1.961 + * Must implement nsIAuthPromptAdapterFactory 1.962 + */ 1.963 +#define NS_AUTHPROMPT_ADAPTER_FACTORY_CONTRACTID \ 1.964 + "@mozilla.org/network/authprompt-adapter-factory;1" 1.965 + 1.966 +/** 1.967 + * Must implement nsICryptoHash. 1.968 + */ 1.969 +#define NS_CRYPTO_HASH_CONTRACTID "@mozilla.org/security/hash;1" 1.970 + 1.971 +/** 1.972 + * Must implement nsICryptoHMAC. 1.973 + */ 1.974 +#define NS_CRYPTO_HMAC_CONTRACTID "@mozilla.org/security/hmac;1" 1.975 + 1.976 +/****************************************************************************** 1.977 + * Categories 1.978 + */ 1.979 +/** 1.980 + * Services registered in this category will get notified via 1.981 + * nsIChannelEventSink about all redirects that happen and have the opportunity 1.982 + * to veto them. The value of the category entries is interpreted as the 1.983 + * contract ID of the service. 1.984 + */ 1.985 +#define NS_CHANNEL_EVENT_SINK_CATEGORY "net-channel-event-sinks" 1.986 + 1.987 +/** 1.988 + * Services in this category will get told about each load that happens and get 1.989 + * the opportunity to override the detected MIME type via nsIContentSniffer. 1.990 + * Services should not set the MIME type on the channel directly, but return the 1.991 + * new type. If getMIMETypeFromContent throws an exception, the type will remain 1.992 + * unchanged. 1.993 + * 1.994 + * Note that only channels with the LOAD_CALL_CONTENT_SNIFFERS flag will call 1.995 + * content sniffers. Also note that there can be security implications about 1.996 + * changing the MIME type -- proxies filtering responses based on their MIME 1.997 + * type might consider certain types to be safe, which these sniffers can 1.998 + * override. 1.999 + * 1.1000 + * Not all channels may implement content sniffing. See also 1.1001 + * nsIChannel::LOAD_CALL_CONTENT_SNIFFERS. 1.1002 + */ 1.1003 +#define NS_CONTENT_SNIFFER_CATEGORY "net-content-sniffers" 1.1004 + 1.1005 +/** 1.1006 + * Services in this category can sniff content that is not necessarily loaded 1.1007 + * from the network, and they won't be told about each load. 1.1008 + */ 1.1009 +#define NS_DATA_SNIFFER_CATEGORY "content-sniffing-services" 1.1010 + 1.1011 +/** 1.1012 + * Must implement nsINSSErrorsService. 1.1013 + */ 1.1014 +#define NS_NSS_ERRORS_SERVICE_CONTRACTID "@mozilla.org/nss_errors_service;1" 1.1015 + 1.1016 +#endif // nsNetCID_h__