Bumping manifests a=b2g-bump
[gecko.git] / netwerk / build / nsNetCID.h
blob130170d9b78244e1359d0d791891725349dfcdca
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsNetCID_h__
7 #define nsNetCID_h__
10 /******************************************************************************
11 * netwerk/base/ classes
14 // service implementing nsIIOService and nsIIOService2.
15 #define NS_IOSERVICE_CONTRACTID \
16 "@mozilla.org/network/io-service;1"
17 #define NS_IOSERVICE_CID \
18 { /* 9ac9e770-18bc-11d3-9337-00104ba0fd40 */ \
19 0x9ac9e770, \
20 0x18bc, \
21 0x11d3, \
22 {0x93, 0x37, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
25 // service implementing nsINetUtil
26 #define NS_NETUTIL_CONTRACTID \
27 "@mozilla.org/network/util;1"
29 // serialization scriptable helper
30 #define NS_SERIALIZATION_HELPER_CONTRACTID \
31 "@mozilla.org/network/serialization-helper;1"
32 #define NS_SERIALIZATION_HELPER_CID \
33 { /* D6EF593D-A429-4b14-A887-D9E2F765D9ED */ \
34 0xd6ef593d, \
35 0xa429, \
36 0x4b14, \
37 { 0xa8, 0x87, 0xd9, 0xe2, 0xf7, 0x65, 0xd9, 0xed } \
40 // service implementing nsIProtocolProxyService and nsPIProtocolProxyService.
41 #define NS_PROTOCOLPROXYSERVICE_CONTRACTID \
42 "@mozilla.org/network/protocol-proxy-service;1"
43 #define NS_PROTOCOLPROXYSERVICE_CID \
44 { /* E9B301C0-E0E4-11d3-A1A8-0050041CAF44 */ \
45 0xe9b301c0, \
46 0xe0e4, \
47 0x11d3, \
48 {0xa1, 0xa8, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44} \
51 // service implementing nsIProxyAutoConfig.
52 #define NS_PROXYAUTOCONFIG_CONTRACTID \
53 "@mozilla.org/network/proxy-auto-config;1"
54 #define NS_PROXYAUTOCONFIG_CID \
55 { /* 63ac8c66-1dd2-11b2-b070-84d00d3eaece */ \
56 0x63ac8c66, \
57 0x1dd2, \
58 0x11b2, \
59 {0xb0, 0x70, 0x84, 0xd0, 0x0d, 0x3e, 0xae, 0xce} \
62 // component implementing nsILoadGroup.
63 #define NS_LOADGROUP_CONTRACTID \
64 "@mozilla.org/network/load-group;1"
65 #define NS_LOADGROUP_CID \
66 { /* e1c61582-2a84-11d3-8cce-0060b0fc14a3 */ \
67 0xe1c61582, \
68 0x2a84, \
69 0x11d3, \
70 {0x8c, 0xce, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
73 // component implementing nsIURI, nsISerializable, and nsIClassInfo.
74 #define NS_SIMPLEURI_CONTRACTID \
75 "@mozilla.org/network/simple-uri;1"
76 #define NS_SIMPLEURI_CID \
77 { /* e0da1d70-2f7b-11d3-8cd0-0060b0fc14a3 */ \
78 0xe0da1d70, \
79 0x2f7b, \
80 0x11d3, \
81 {0x8c, 0xd0, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
84 // component inheriting from the simple URI component and also
85 // implementing nsINestedURI.
86 #define NS_SIMPLENESTEDURI_CID \
87 { /* 56388dad-287b-4240-a785-85c394012503 */ \
88 0x56388dad, \
89 0x287b, \
90 0x4240, \
91 { 0xa7, 0x85, 0x85, 0xc3, 0x94, 0x01, 0x25, 0x03 } \
94 // component inheriting from the nested simple URI component and also
95 // carrying along its base URI
96 #define NS_NESTEDABOUTURI_CID \
97 { /* 2f277c00-0eaf-4ddb-b936-41326ba48aae */ \
98 0x2f277c00, \
99 0x0eaf, \
100 0x4ddb, \
101 { 0xb9, 0x36, 0x41, 0x32, 0x6b, 0xa4, 0x8a, 0xae } \
104 // component implementing nsIStandardURL, nsIURI, nsIURL, nsISerializable,
105 // and nsIClassInfo.
106 #define NS_STANDARDURL_CONTRACTID \
107 "@mozilla.org/network/standard-url;1"
108 #define NS_STANDARDURL_CID \
109 { /* de9472d0-8034-11d3-9399-00104ba0fd40 */ \
110 0xde9472d0, \
111 0x8034, \
112 0x11d3, \
113 {0x93, 0x99, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
116 // service implementing nsIURLParser that assumes the URL will NOT contain an
117 // authority section.
118 #define NS_NOAUTHURLPARSER_CONTRACTID \
119 "@mozilla.org/network/url-parser;1?auth=no"
120 #define NS_NOAUTHURLPARSER_CID \
121 { /* 78804a84-8173-42b6-bb94-789f0816a810 */ \
122 0x78804a84, \
123 0x8173, \
124 0x42b6, \
125 {0xbb, 0x94, 0x78, 0x9f, 0x08, 0x16, 0xa8, 0x10} \
128 // service implementing nsIURLParser that assumes the URL will contain an
129 // authority section.
130 #define NS_AUTHURLPARSER_CONTRACTID \
131 "@mozilla.org/network/url-parser;1?auth=yes"
132 #define NS_AUTHURLPARSER_CID \
133 { /* 275d800e-3f60-4896-adb7-d7f390ce0e42 */ \
134 0x275d800e, \
135 0x3f60, \
136 0x4896, \
137 {0xad, 0xb7, 0xd7, 0xf3, 0x90, 0xce, 0x0e, 0x42} \
140 // service implementing nsIURLParser that does not make any assumptions about
141 // whether or not the URL contains an authority section.
142 #define NS_STDURLPARSER_CONTRACTID \
143 "@mozilla.org/network/url-parser;1?auth=maybe"
144 #define NS_STDURLPARSER_CID \
145 { /* ff41913b-546a-4bff-9201-dc9b2c032eba */ \
146 0xff41913b, \
147 0x546a, \
148 0x4bff, \
149 {0x92, 0x01, 0xdc, 0x9b, 0x2c, 0x03, 0x2e, 0xba} \
152 // component implementing nsIRequestObserverProxy.
153 #define NS_REQUESTOBSERVERPROXY_CONTRACTID \
154 "@mozilla.org/network/request-observer-proxy;1"
155 #define NS_REQUESTOBSERVERPROXY_CID \
156 { /* 51fa28c7-74c0-4b85-9c46-d03faa7b696b */ \
157 0x51fa28c7, \
158 0x74c0, \
159 0x4b85, \
160 {0x9c, 0x46, 0xd0, 0x3f, 0xaa, 0x7b, 0x69, 0x6b} \
163 // component implementing nsISimpleStreamListener.
164 #define NS_SIMPLESTREAMLISTENER_CONTRACTID \
165 "@mozilla.org/network/simple-stream-listener;1"
166 #define NS_SIMPLESTREAMLISTENER_CID \
167 { /* fb8cbf4e-4701-4ba1-b1d6-5388e041fb67 */ \
168 0xfb8cbf4e, \
169 0x4701, \
170 0x4ba1, \
171 {0xb1, 0xd6, 0x53, 0x88, 0xe0, 0x41, 0xfb, 0x67} \
174 // component implementing nsIStreamListenerTee.
175 #define NS_STREAMLISTENERTEE_CONTRACTID \
176 "@mozilla.org/network/stream-listener-tee;1"
177 #define NS_STREAMLISTENERTEE_CID \
178 { /* 831f8f13-7aa8-485f-b02e-77c881cc5773 */ \
179 0x831f8f13, \
180 0x7aa8, \
181 0x485f, \
182 {0xb0, 0x2e, 0x77, 0xc8, 0x81, 0xcc, 0x57, 0x73} \
185 // component implementing nsIAsyncStreamCopier.
186 #define NS_ASYNCSTREAMCOPIER_CONTRACTID \
187 "@mozilla.org/network/async-stream-copier;1"
188 #define NS_ASYNCSTREAMCOPIER_CID \
189 { /* e746a8b1-c97a-4fc5-baa4-66607521bd08 */ \
190 0xe746a8b1, \
191 0xc97a, \
192 0x4fc5, \
193 {0xba, 0xa4, 0x66, 0x60, 0x75, 0x21, 0xbd, 0x08} \
196 // component implementing nsIInputStreamPump.
197 #define NS_INPUTSTREAMPUMP_CONTRACTID \
198 "@mozilla.org/network/input-stream-pump;1"
199 #define NS_INPUTSTREAMPUMP_CID \
200 { /* ccd0e960-7947-4635-b70e-4c661b63d675 */ \
201 0xccd0e960, \
202 0x7947, \
203 0x4635, \
204 {0xb7, 0x0e, 0x4c, 0x66, 0x1b, 0x63, 0xd6, 0x75} \
207 // component implementing nsIInputStreamChannel.
208 #define NS_INPUTSTREAMCHANNEL_CONTRACTID \
209 "@mozilla.org/network/input-stream-channel;1"
210 #define NS_INPUTSTREAMCHANNEL_CID \
211 { /* 6ddb050c-0d04-11d4-986e-00c04fa0cf4a */ \
212 0x6ddb050c, \
213 0x0d04, \
214 0x11d4, \
215 {0x98, 0x6e, 0x00, 0xc0, 0x4f, 0xa0, 0xcf, 0x4a} \
218 // component implementing nsIStreamLoader.
219 #define NS_STREAMLOADER_CONTRACTID \
220 "@mozilla.org/network/stream-loader;1"
221 #define NS_STREAMLOADER_CID \
222 { /* 5BA6D920-D4E9-11d3-A1A5-0050041CAF44 */ \
223 0x5ba6d920, \
224 0xd4e9, \
225 0x11d3, \
226 { 0xa1, 0xa5, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44 } \
229 // component implementing nsIUnicharStreamLoader.
230 #define NS_UNICHARSTREAMLOADER_CONTRACTID \
231 "@mozilla.org/network/unichar-stream-loader;1"
232 #define NS_UNICHARSTREAMLOADER_CID \
233 { /* 9445791f-fa4c-4669-b174-df5032bb67b3 */ \
234 0x9445791f, \
235 0xfa4c, \
236 0x4669, \
237 { 0xb1, 0x74, 0xdf, 0x50, 0x32, 0xbb, 0x67, 0xb3 } \
240 // component implementing nsIDownloader.
241 #define NS_DOWNLOADER_CONTRACTID \
242 "@mozilla.org/network/downloader;1"
243 #define NS_DOWNLOADER_CID \
244 { /* 510a86bb-6019-4ed1-bb4f-965cffd23ece */ \
245 0x510a86bb, \
246 0x6019, \
247 0x4ed1, \
248 {0xbb, 0x4f, 0x96, 0x5c, 0xff, 0xd2, 0x3e, 0xce} \
251 // component implementing nsIBackgroundFileSaver and
252 // nsIOutputStream.
253 #define NS_BACKGROUNDFILESAVEROUTPUTSTREAM_CONTRACTID \
254 "@mozilla.org/network/background-file-saver;1?mode=outputstream"
255 #define NS_BACKGROUNDFILESAVEROUTPUTSTREAM_CID \
256 { /* 62147d1e-ef6a-40e8-aaf8-d039f5caaa81 */ \
257 0x62147d1e, \
258 0xef6a, \
259 0x40e8, \
260 {0xaa, 0xf8, 0xd0, 0x39, 0xf5, 0xca, 0xaa, 0x81} \
263 // component implementing nsIBackgroundFileSaver and
264 // nsIStreamListener.
265 #define NS_BACKGROUNDFILESAVERSTREAMLISTENER_CONTRACTID \
266 "@mozilla.org/network/background-file-saver;1?mode=streamlistener"
267 #define NS_BACKGROUNDFILESAVERSTREAMLISTENER_CID \
268 { /* 208de7fc-a781-4031-bbae-cc0de539f61a */ \
269 0x208de7fc, \
270 0xa781, \
271 0x4031, \
272 {0xbb, 0xae, 0xcc, 0x0d, 0xe5, 0x39, 0xf6, 0x1a} \
275 // component implementing nsISyncStreamListener.
276 #define NS_SYNCSTREAMLISTENER_CONTRACTID \
277 "@mozilla.org/network/sync-stream-listener;1"
278 #define NS_SYNCSTREAMLISTENER_CID \
279 { /* 439400d3-6f23-43db-8b06-8aafe1869bd8 */ \
280 0x439400d3, \
281 0x6f23, \
282 0x43db, \
283 {0x8b, 0x06, 0x8a, 0xaf, 0xe1, 0x86, 0x9b, 0xd8} \
286 // component implementing nsIURIChecker.
287 #define NS_URICHECKER_CONTRACT_ID \
288 "@mozilla.org/network/urichecker;1"
289 #define NS_URICHECKER_CID \
290 { /* cf3a0e06-1dd1-11b2-a904-ac1d6da77a02 */ \
291 0xcf3a0e06, \
292 0x1dd1, \
293 0x11b2, \
294 {0xa9, 0x04, 0xac, 0x1d, 0x6d, 0xa7, 0x7a, 0x02} \
297 // component implementing nsIIncrementalDownload.
298 #define NS_INCREMENTALDOWNLOAD_CONTRACTID \
299 "@mozilla.org/network/incremental-download;1"
301 // component implementing nsISystemProxySettings.
302 #define NS_SYSTEMPROXYSETTINGS_CONTRACTID \
303 "@mozilla.org/system-proxy-settings;1"
305 // service implementing nsIStreamTransportService
306 #define NS_STREAMTRANSPORTSERVICE_CONTRACTID \
307 "@mozilla.org/network/stream-transport-service;1"
308 #define NS_STREAMTRANSPORTSERVICE_CID \
309 { /* 0885d4f8-f7b8-4cda-902e-94ba38bc256e */ \
310 0x0885d4f8, \
311 0xf7b8, \
312 0x4cda, \
313 {0x90, 0x2e, 0x94, 0xba, 0x38, 0xbc, 0x25, 0x6e} \
316 // service implementing nsISocketTransportService
317 #define NS_SOCKETTRANSPORTSERVICE_CONTRACTID \
318 "@mozilla.org/network/socket-transport-service;1"
319 #define NS_SOCKETTRANSPORTSERVICE_CID \
320 { /* c07e81e0-ef12-11d2-92b6-00105a1b0d64 */ \
321 0xc07e81e0, \
322 0xef12, \
323 0x11d2, \
324 {0x92, 0xb6, 0x00, 0x10, 0x5a, 0x1b, 0x0d, 0x64} \
327 // component implementing nsIServerSocket
328 #define NS_SERVERSOCKET_CONTRACTID \
329 "@mozilla.org/network/server-socket;1"
330 #define NS_SERVERSOCKET_CID \
331 { /* 2ec62893-3b35-48fa-ab1d-5e68a9f45f08 */ \
332 0x2ec62893, \
333 0x3b35, \
334 0x48fa, \
335 {0xab, 0x1d, 0x5e, 0x68, 0xa9, 0xf4, 0x5f, 0x08} \
338 // component implementing nsIUDPSocket
339 #define NS_UDPSOCKET_CONTRACTID \
340 "@mozilla.org/network/udp-socket;1"
341 #define NS_UDPSOCKET_CID \
342 { /* c9f74572-7b8e-4fec-bb4a-03c0d3021bd6 */ \
343 0xc9f74572, \
344 0x7b8e, \
345 0x4fec, \
346 {0xbb, 0x4a, 0x03, 0xc0, 0xd3, 0x02, 0x1b, 0xd6} \
349 #define NS_LOCALFILEINPUTSTREAM_CONTRACTID \
350 "@mozilla.org/network/file-input-stream;1"
351 #define NS_LOCALFILEINPUTSTREAM_CID \
352 { /* be9a53ae-c7e9-11d3-8cda-0060b0fc14a3 */ \
353 0xbe9a53ae, \
354 0xc7e9, \
355 0x11d3, \
356 {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
359 #define NS_LOCALFILEOUTPUTSTREAM_CONTRACTID \
360 "@mozilla.org/network/file-output-stream;1"
361 #define NS_LOCALFILEOUTPUTSTREAM_CID \
362 { /* c272fee0-c7e9-11d3-8cda-0060b0fc14a3 */ \
363 0xc272fee0, \
364 0xc7e9, \
365 0x11d3, \
366 {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
369 #define NS_PARTIALLOCALFILEINPUTSTREAM_CONTRACTID \
370 "@mozilla.org/network/partial-file-input-stream;1"
371 #define NS_PARTIALLOCALFILEINPUTSTREAM_CID \
372 { /* 8738afd6-162a-418d-a99b-75b3a6b10a56 */ \
373 0x8738afd6, \
374 0x162a, \
375 0x418d, \
376 {0xa9, 0x9b, 0x75, 0xb3, 0xa6, 0xb1, 0x0a, 0x56} \
379 #define NS_BUFFEREDINPUTSTREAM_CONTRACTID \
380 "@mozilla.org/network/buffered-input-stream;1"
381 #define NS_BUFFEREDINPUTSTREAM_CID \
382 { /* 9226888e-da08-11d3-8cda-0060b0fc14a3 */ \
383 0x9226888e, \
384 0xda08, \
385 0x11d3, \
386 {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
389 #define NS_BUFFEREDOUTPUTSTREAM_CONTRACTID \
390 "@mozilla.org/network/buffered-output-stream;1"
391 #define NS_BUFFEREDOUTPUTSTREAM_CID \
392 { /* 9868b4ce-da08-11d3-8cda-0060b0fc14a3 */ \
393 0x9868b4ce, \
394 0xda08, \
395 0x11d3, \
396 {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
399 // components implementing nsISafeOutputStream
400 #define NS_ATOMICLOCALFILEOUTPUTSTREAM_CONTRACTID \
401 "@mozilla.org/network/atomic-file-output-stream;1"
402 #define NS_ATOMICLOCALFILEOUTPUTSTREAM_CID \
403 { /* 6EAE857E-4BA9-11E3-9B39-B4036188709B */ \
404 0x6EAE857E, \
405 0x4BA9, \
406 0x11E3, \
407 {0x9b, 0x39, 0xb4, 0x03, 0x61, 0x88, 0x70, 0x9b} \
410 #define NS_SAFELOCALFILEOUTPUTSTREAM_CONTRACTID \
411 "@mozilla.org/network/safe-file-output-stream;1"
412 #define NS_SAFELOCALFILEOUTPUTSTREAM_CID \
413 { /* a181af0d-68b8-4308-94db-d4f859058215 */ \
414 0xa181af0d, \
415 0x68b8, \
416 0x4308, \
417 {0x94, 0xdb, 0xd4, 0xf8, 0x59, 0x05, 0x82, 0x15} \
420 // component implementing nsIFileStream
421 #define NS_LOCALFILESTREAM_CONTRACTID \
422 "@mozilla.org/network/file-stream;1"
423 #define NS_LOCALFILESTREAM_CID \
424 { /* f8a69bd7-176c-4a60-9a05-b6d92f8f229a */ \
425 0xf8a69bd7, \
426 0x176c, \
427 0x4a60, \
428 {0x9a, 0x05, 0xb6, 0xd9, 0x2f, 0x8f, 0x22, 0x9a} \
432 * Contract ID for a service implementing nsIURIClassifier that identifies
433 * phishing and malware sites.
435 #define NS_URICLASSIFIERSERVICE_CONTRACTID \
436 "@mozilla.org/uriclassifierservice"
438 // Redirect channel registrar used for redirect to various protocols
439 #define NS_REDIRECTCHANNELREGISTRAR_CONTRACTID \
440 "@mozilla.org/redirectchannelregistrar;1"
441 #define NS_REDIRECTCHANNELREGISTRAR_CID \
442 { /* {b69043a6-8929-4d60-8d17-a27e44a8393e} */ \
443 0xb69043a6, \
444 0x8929, \
445 0x4d60, \
446 { 0x8d, 0x17, 0xa2, 0x7e, 0x44, 0xa8, 0x39, 0x3e } \
449 // service implementing nsINetworkPredictor
450 #define NS_NETWORKPREDICTOR_CONTRACTID \
451 "@mozilla.org/network/predictor;1"
452 #define NS_NETWORKPREDICTOR_CID \
453 { /* {969adfdf-7221-4419-aecf-05f8faf00c9b} */ \
454 0x969adfdf, \
455 0x7221, \
456 0x4419, \
457 { 0xae, 0xcf, 0x05, 0xf8, 0xfa, 0xf0, 0x0c, 0x9b } \
460 /******************************************************************************
461 * netwerk/cache/ classes
464 // service implementing nsICacheService.
465 #define NS_CACHESERVICE_CONTRACTID \
466 "@mozilla.org/network/cache-service;1"
467 #define NS_CACHESERVICE_CID \
468 { /* 6c84aec9-29a5-4264-8fbc-bee8f922ea67 */ \
469 0x6c84aec9, \
470 0x29a5, \
471 0x4264, \
472 {0x8f, 0xbc, 0xbe, 0xe8, 0xf9, 0x22, 0xea, 0x67} \
475 // service implementing nsIApplicationCacheService.
476 #define NS_APPLICATIONCACHESERVICE_CONTRACTID \
477 "@mozilla.org/network/application-cache-service;1"
478 #define NS_APPLICATIONCACHESERVICE_CID \
479 { /* 02bf7a2a-39d8-4a23-a50c-2cbb085ab7a5 */ \
480 0x02bf7a2a, \
481 0x39d8, \
482 0x4a23, \
483 {0xa5, 0x0c, 0x2c, 0xbb, 0x08, 0x5a, 0xb7, 0xa5} \
486 #define NS_APPLICATIONCACHENAMESPACE_CONTRACTID \
487 "@mozilla.org/network/application-cache-namespace;1"
488 #define NS_APPLICATIONCACHENAMESPACE_CID \
489 { /* b00ed78a-04e2-4f74-8e1c-d1af79dfd12f */ \
490 0xb00ed78a, \
491 0x04e2, \
492 0x4f74, \
493 {0x8e, 0x1c, 0xd1, 0xaf, 0x79, 0xdf, 0xd1, 0x2f} \
496 #define NS_APPLICATIONCACHE_CONTRACTID \
497 "@mozilla.org/network/application-cache;1"
499 #define NS_APPLICATIONCACHE_CID \
500 { /* 463440c5-baad-4f3c-9e50-0b107abe7183 */ \
501 0x463440c5, \
502 0xbaad, \
503 0x4f3c, \
504 {0x9e, 0x50, 0xb, 0x10, 0x7a, 0xbe, 0x71, 0x83 } \
507 /******************************************************************************
508 * netwerk/protocol/http/ classes
511 #define NS_HTTPPROTOCOLHANDLER_CID \
512 { /* 4f47e42e-4d23-4dd3-bfda-eb29255e9ea3 */ \
513 0x4f47e42e, \
514 0x4d23, \
515 0x4dd3, \
516 {0xbf, 0xda, 0xeb, 0x29, 0x25, 0x5e, 0x9e, 0xa3} \
519 #define NS_HTTPSPROTOCOLHANDLER_CID \
520 { /* dccbe7e4-7750-466b-a557-5ea36c8ff24e */ \
521 0xdccbe7e4, \
522 0x7750, \
523 0x466b, \
524 {0xa5, 0x57, 0x5e, 0xa3, 0x6c, 0x8f, 0xf2, 0x4e} \
527 #define NS_HTTPBASICAUTH_CID \
528 { /* fca3766a-434a-4ae7-83cf-0909e18a093a */ \
529 0xfca3766a, \
530 0x434a, \
531 0x4ae7, \
532 {0x83, 0xcf, 0x09, 0x09, 0xe1, 0x8a, 0x09, 0x3a} \
535 #define NS_HTTPDIGESTAUTH_CID \
536 { /* 17491ba4-1dd2-11b2-aae3-de6b92dab620 */ \
537 0x17491ba4, \
538 0x1dd2, \
539 0x11b2, \
540 {0xaa, 0xe3, 0xde, 0x6b, 0x92, 0xda, 0xb6, 0x20} \
543 #define NS_HTTPNTLMAUTH_CID \
544 { /* bbef8185-c628-4cc1-b53e-e61e74c2451a */ \
545 0xbbef8185, \
546 0xc628, \
547 0x4cc1, \
548 {0xb5, 0x3e, 0xe6, 0x1e, 0x74, 0xc2, 0x45, 0x1a} \
551 #define NS_HTTPAUTHMANAGER_CONTRACTID \
552 "@mozilla.org/network/http-auth-manager;1"
553 #define NS_HTTPAUTHMANAGER_CID \
554 { /* 36b63ef3-e0fa-4c49-9fd4-e065e85568f4 */ \
555 0x36b63ef3, \
556 0xe0fa, \
557 0x4c49, \
558 {0x9f, 0xd4, 0xe0, 0x65, 0xe8, 0x55, 0x68, 0xf4} \
561 #define NS_HTTPCHANNELAUTHPROVIDER_CONTRACTID \
562 "@mozilla.org/network/http-channel-auth-provider;1"
563 #define NS_HTTPCHANNELAUTHPROVIDER_CID \
564 { /* 02f5a8d8-4ef3-48b1-b527-8a643056abbd */ \
565 0x02f5a8d8, \
566 0x4ef3, \
567 0x48b1, \
568 {0xb5, 0x27, 0x8a, 0x64, 0x30, 0x56, 0xab, 0xbd} \
571 #define NS_HTTPACTIVITYDISTRIBUTOR_CONTRACTID \
572 "@mozilla.org/network/http-activity-distributor;1"
573 #define NS_HTTPACTIVITYDISTRIBUTOR_CID \
574 { /* 15629ada-a41c-4a09-961f-6553cd60b1a2 */ \
575 0x15629ada, \
576 0xa41c, \
577 0x4a09, \
578 {0x96, 0x1f, 0x65, 0x53, 0xcd, 0x60, 0xb1, 0xa2} \
581 /******************************************************************************
582 * netwerk/protocol/ftp/ classes
585 #define NS_FTPPROTOCOLHANDLER_CID \
586 { /* 25029490-F132-11d2-9588-00805F369F95 */ \
587 0x25029490, \
588 0xf132, \
589 0x11d2, \
590 {0x95, 0x88, 0x0, 0x80, 0x5f, 0x36, 0x9f, 0x95} \
593 /******************************************************************************
594 * netwerk/protocol/res/ classes
597 #define NS_RESPROTOCOLHANDLER_CID \
598 { /* e64f152a-9f07-11d3-8cda-0060b0fc14a3 */ \
599 0xe64f152a, \
600 0x9f07, \
601 0x11d3, \
602 {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
605 #define NS_RESURL_CID \
606 { /* ff8fe7ec-2f74-4408-b742-6b7a546029a8 */ \
607 0xff8fe7ec, \
608 0x2f74, \
609 0x4408, \
610 {0xb7, 0x42, 0x6b, 0x7a, 0x54, 0x60, 0x29, 0xa8} \
614 /******************************************************************************
615 * netwerk/protocol/file/ classes
618 #define NS_FILEPROTOCOLHANDLER_CID \
619 { /* fbc81170-1f69-11d3-9344-00104ba0fd40 */ \
620 0xfbc81170, \
621 0x1f69, \
622 0x11d3, \
623 {0x93, 0x44, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
626 /******************************************************************************
627 * netwerk/protocol/app/ classes
630 #define NS_APPPROTOCOLHANDLER_CID \
631 { /* {B6ED3030-9999-11d3-A178-0050041CAF44} */ \
632 0xb6ed3030, \
633 0x9999, \
634 0x11d3, \
635 {0xa1, 0x78, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44} \
638 /******************************************************************************
639 * netwerk/protocol/data/ classes
642 #define NS_DATAPROTOCOLHANDLER_CID \
643 { /* {B6ED3030-6183-11d3-A178-0050041CAF44} */ \
644 0xb6ed3030, \
645 0x6183, \
646 0x11d3, \
647 {0xa1, 0x78, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44} \
650 /******************************************************************************
651 * netwerk/protocol/device classes
653 #define NS_DEVICEPROTOCOLHANDLER_CID \
654 { /* 6b0ffe9e-d114-486b-aeb7-da62e7273ed5 */ \
655 0x60ffe9e, \
656 0xd114, \
657 0x486b, \
658 {0xae, 0xb7, 0xda, 0x62, 0xe7, 0x27, 0x3e, 0xd5} \
661 /******************************************************************************
662 * netwerk/protocol/viewsource/ classes
665 // service implementing nsIProtocolHandler
666 #define NS_VIEWSOURCEHANDLER_CID \
667 { /* {0x9c7ec5d1-23f9-11d5-aea8-8fcc0793e97f} */ \
668 0x9c7ec5d1, \
669 0x23f9, \
670 0x11d5, \
671 {0xae, 0xa8, 0x8f, 0xcc, 0x07, 0x93, 0xe9, 0x7f} \
674 /******************************************************************************
675 * netwerk/protocol/wyciwyg/ classes
678 #define NS_WYCIWYGPROTOCOLHANDLER_CID \
679 { /* {0xe7509b46-2eB2-410a-9d7c-c3ce73284d01} */ \
680 0xe7509b46, \
681 0x2eb2, \
682 0x410a, \
683 {0x9d, 0x7c, 0xc3, 0xce, 0x73, 0x28, 0x4d, 0x01} \
686 /******************************************************************************
687 * netwerk/protocol/websocket/ classes
690 #define NS_WEBSOCKETPROTOCOLHANDLER_CID \
691 { /* {dc01db59-a513-4c90-824b-085cce06c0aa} */ \
692 0xdc01db59, \
693 0xa513, \
694 0x4c90, \
695 {0x82, 0x4b, 0x08, 0x5c, 0xce, 0x06, 0xc0, 0xaa} \
698 #define NS_WEBSOCKETSSLPROTOCOLHANDLER_CID \
699 { /* {dc01dbbb-a5bb-4cbb-82bb-085cce06c0bb} */ \
700 0xdc01dbbb, \
701 0xa5bb, \
702 0x4cbb, \
703 {0x82, 0xbb, 0x08, 0x5c, 0xce, 0x06, 0xc0, 0xbb} \
706 /******************************************************************************
707 * netwerk/protocol/rtsp / classes
710 #define NS_RTSPPROTOCOLHANDLER_CID \
711 { /* {5bb4b980-7b10-11e2-b92a-0800200c9a66} */ \
712 0x5bb4b980, \
713 0x7b10, \
714 0x11e2, \
715 {0xb9, 0x2a, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66} \
718 /******************************************************************************
719 * netwerk/protocol/about/ classes
722 #define NS_ABOUTPROTOCOLHANDLER_CID \
723 { /* 9e3b6c90-2f75-11d3-8cd0-0060b0fc14a3 */ \
724 0x9e3b6c90, \
725 0x2f75, \
726 0x11d3, \
727 {0x8c, 0xd0, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
730 #define NS_SAFEABOUTPROTOCOLHANDLER_CID \
731 { /* 1423e739-782c-4081-b5d8-fe6fba68c0ef */ \
732 0x1423e739, \
733 0x782c, \
734 0x4081, \
735 {0xb5, 0xd8, 0xfe, 0x6f, 0xba, 0x68, 0xc0, 0xef} \
738 /******************************************************************************
739 * netwerk/dns/ classes
742 #define NS_DNSSERVICE_CONTRACTID \
743 "@mozilla.org/network/dns-service;1"
744 #define NS_DNSSERVICE_CID \
745 { /* b0ff4572-dae4-4bef-a092-83c1b88f6be9 */ \
746 0xb0ff4572, \
747 0xdae4, \
748 0x4bef, \
749 {0xa0, 0x92, 0x83, 0xc1, 0xb8, 0x8f, 0x6b, 0xe9} \
752 /* ContractID of the XPCOM package that implements nsIIDNService */
753 #define NS_IDNSERVICE_CONTRACTID \
754 "@mozilla.org/network/idn-service;1"
755 #define NS_IDNSERVICE_CID \
756 { /* 62b778a6-bce3-456b-8c31-2865fbb68c91 */ \
757 0x62b778a6, \
758 0xbce3, \
759 0x456b, \
760 {0x8c, 0x31, 0x28, 0x65, 0xfb, 0xb6, 0x8c, 0x91} \
763 #define NS_EFFECTIVETLDSERVICE_CONTRACTID \
764 "@mozilla.org/network/effective-tld-service;1"
765 #define NS_EFFECTIVETLDSERVICE_CID \
766 { /* cb9abbae-66b6-4609-8594-5c4ff300888e */ \
767 0xcb9abbae, \
768 0x66b6, \
769 0x4609, \
770 {0x85, 0x94, 0x5c, 0x4f, 0xf3, 0x00, 0x88, 0x8e} \
774 /******************************************************************************
775 * netwerk/mime classes
778 // {1F4DBCF7-245C-4c8c-943D-8A1DA0495E8A}
779 #define NS_MIMEHEADERPARAM_CID \
780 { 0x1f4dbcf7, \
781 0x245c, \
782 0x4c8c, \
783 { 0x94, 0x3d, 0x8a, 0x1d, 0xa0, 0x49, 0x5e, 0x8a } \
786 #define NS_MIMEHEADERPARAM_CONTRACTID "@mozilla.org/network/mime-hdrparam;1"
789 /******************************************************************************
790 * netwerk/socket classes
793 #define NS_SOCKETPROVIDERSERVICE_CONTRACTID \
794 "@mozilla.org/network/socket-provider-service;1"
795 #define NS_SOCKETPROVIDERSERVICE_CID \
796 { /* ed394ba0-5472-11d3-bbc8-0000861d1237 */ \
797 0xed394ba0, \
798 0x5472, \
799 0x11d3, \
800 { 0xbb, 0xc8, 0x00, 0x00, 0x86, 0x1d, 0x12, 0x37 } \
803 #define NS_SOCKSSOCKETPROVIDER_CID \
804 { /* 8dbe7246-1dd2-11b2-9b8f-b9a849e4403a */ \
805 0x8dbe7246, \
806 0x1dd2, \
807 0x11b2, \
808 { 0x9b, 0x8f, 0xb9, 0xa8, 0x49, 0xe4, 0x40, 0x3a } \
811 #define NS_SOCKS4SOCKETPROVIDER_CID \
812 { /* F7C9F5F4-4451-41c3-A28A-5BA2447FBACE */ \
813 0xf7c9f5f4, \
814 0x4451, \
815 0x41c3, \
816 { 0xa2, 0x8a, 0x5b, 0xa2, 0x44, 0x7f, 0xba, 0xce } \
819 #define NS_UDPSOCKETPROVIDER_CID \
820 { /* 320706D2-2E81-42c6-89C3-8D83B17D3FB4 */ \
821 0x320706d2, \
822 0x2e81, \
823 0x42c6, \
824 { 0x89, 0xc3, 0x8d, 0x83, 0xb1, 0x7d, 0x3f, 0xb4 } \
827 #define NS_SSLSOCKETPROVIDER_CONTRACTID \
828 NS_NETWORK_SOCKET_CONTRACTID_PREFIX "ssl"
830 /* This code produces a normal socket which can be used to initiate the
831 * STARTTLS protocol by calling its nsISSLSocketControl->StartTLS()
833 #define NS_STARTTLSSOCKETPROVIDER_CONTRACTID \
834 NS_NETWORK_SOCKET_CONTRACTID_PREFIX "starttls"
837 #define NS_DASHBOARD_CONTRACTID \
838 "@mozilla.org/network/dashboard;1"
839 #define NS_DASHBOARD_CID \
840 { /*c79eb3c6-091a-45a6-8544-5a8d1ab79537 */ \
841 0xc79eb3c6, \
842 0x091a, \
843 0x45a6, \
844 { 0x85, 0x44, 0x5a, 0x8d, 0x1a, 0xb7, 0x95, 0x37 } \
848 /******************************************************************************
849 * netwerk/cookie classes
852 // service implementing nsICookieManager and nsICookieManager2.
853 #define NS_COOKIEMANAGER_CONTRACTID \
854 "@mozilla.org/cookiemanager;1"
855 #define NS_COOKIEMANAGER_CID \
856 { /* aaab6710-0f2c-11d5-a53b-0010a401eb10 */ \
857 0xaaab6710, \
858 0x0f2c, \
859 0x11d5, \
860 { 0xa5, 0x3b, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 } \
863 // service implementing nsICookieService.
864 #define NS_COOKIESERVICE_CONTRACTID \
865 "@mozilla.org/cookieService;1"
866 #define NS_COOKIESERVICE_CID \
867 { /* c375fa80-150f-11d6-a618-0010a401eb10 */ \
868 0xc375fa80, \
869 0x150f, \
870 0x11d6, \
871 { 0xa6, 0x18, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 } \
874 /******************************************************************************
875 * netwerk/wifi classes
877 #ifdef NECKO_WIFI
878 #define NS_WIFI_MONITOR_CONTRACTID "@mozilla.org/wifi/monitor;1"
880 #define NS_WIFI_MONITOR_COMPONENT_CID \
881 { 0x3FF8FB9F, \
882 0xEE63, \
883 0x48DF, \
884 { 0x89, 0xF0, 0xDA, 0xCE, 0x02, 0x42, 0xFD, 0x82 } \
886 #endif
888 /******************************************************************************
889 * netwerk/streamconv classes
892 // service implementing nsIStreamConverterService
893 #define NS_STREAMCONVERTERSERVICE_CONTRACTID \
894 "@mozilla.org/streamConverters;1"
895 #define NS_STREAMCONVERTERSERVICE_CID \
896 { /* 892FFEB0-3F80-11d3-A16C-0050041CAF44 */ \
897 0x892ffeb0, \
898 0x3f80, \
899 0x11d3, \
900 {0xa1, 0x6c, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44} \
904 * General-purpose content sniffer component. Use with CreateInstance.
906 * Implements nsIContentSniffer
908 #define NS_GENERIC_CONTENT_SNIFFER \
909 "@mozilla.org/network/content-sniffer;1"
912 * Detector that can act as either an nsIStreamConverter or an
913 * nsIContentSniffer to decide whether text/plain data is "really" text/plain
914 * or APPLICATION_GUESS_FROM_EXT. Use with CreateInstance.
916 #define NS_BINARYDETECTOR_CONTRACTID \
917 "@mozilla.org/network/binary-detector;1"
919 /******************************************************************************
920 * netwerk/system classes
923 // service implementing nsINetworkLinkService
924 #define NS_NETWORK_LINK_SERVICE_CID \
925 { 0x75a500a2, \
926 0x0030, \
927 0x40f7, \
928 { 0x86, 0xf8, 0x63, 0xf2, 0x25, 0xb9, 0x40, 0xae } \
931 /******************************************************************************
932 * Contracts that can be implemented by necko users.
936 * This contract ID will be gotten as a service and gets the opportunity to look
937 * at and veto all redirects that are processed by necko.
939 * Must implement nsIChannelEventSink
941 #define NS_GLOBAL_CHANNELEVENTSINK_CONTRACTID \
942 "@mozilla.org/netwerk/global-channel-event-sink;1"
945 * This contract ID will be gotten as a service implementing nsINetworkLinkService
946 * and monitored by IOService for automatic online/offline management.
948 * Must implement nsINetworkLinkService
950 #define NS_NETWORK_LINK_SERVICE_CONTRACTID \
951 "@mozilla.org/network/network-link-service;1"
954 * This contract ID is used when Necko needs to wrap an nsIAuthPrompt as
955 * nsIAuthPrompt2. Implementing it is required for backwards compatibility
956 * with Versions before 1.9.
958 * Must implement nsIAuthPromptAdapterFactory
960 #define NS_AUTHPROMPT_ADAPTER_FACTORY_CONTRACTID \
961 "@mozilla.org/network/authprompt-adapter-factory;1"
964 * Must implement nsICryptoHash.
966 #define NS_CRYPTO_HASH_CONTRACTID "@mozilla.org/security/hash;1"
969 * Must implement nsICryptoHMAC.
971 #define NS_CRYPTO_HMAC_CONTRACTID "@mozilla.org/security/hmac;1"
973 /******************************************************************************
974 * Categories
977 * Services registered in this category will get notified via
978 * nsIChannelEventSink about all redirects that happen and have the opportunity
979 * to veto them. The value of the category entries is interpreted as the
980 * contract ID of the service.
982 #define NS_CHANNEL_EVENT_SINK_CATEGORY "net-channel-event-sinks"
985 * Services in this category will get told about each load that happens and get
986 * the opportunity to override the detected MIME type via nsIContentSniffer.
987 * Services should not set the MIME type on the channel directly, but return the
988 * new type. If getMIMETypeFromContent throws an exception, the type will remain
989 * unchanged.
991 * Note that only channels with the LOAD_CALL_CONTENT_SNIFFERS flag will call
992 * content sniffers. Also note that there can be security implications about
993 * changing the MIME type -- proxies filtering responses based on their MIME
994 * type might consider certain types to be safe, which these sniffers can
995 * override.
997 * Not all channels may implement content sniffing. See also
998 * nsIChannel::LOAD_CALL_CONTENT_SNIFFERS.
1000 #define NS_CONTENT_SNIFFER_CATEGORY "net-content-sniffers"
1003 * Services in this category can sniff content that is not necessarily loaded
1004 * from the network, and they won't be told about each load.
1006 #define NS_DATA_SNIFFER_CATEGORY "content-sniffing-services"
1009 * Must implement nsINSSErrorsService.
1011 #define NS_NSS_ERRORS_SERVICE_CONTRACTID "@mozilla.org/nss_errors_service;1"
1013 #endif // nsNetCID_h__