Bug 853360 - Implement the coneGain part of the AudioPannerNode. r=roc
[gecko.git] / netwerk / build / nsNetCID.h
blobcc5a4caed96e66aaa45d6d421900cd4564cbfa9d
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 nsIUDPServerSocket
339 #define NS_UDPSERVERSOCKET_CONTRACTID \
340 "@mozilla.org/network/server-socket-udp;1"
341 #define NS_UDPSERVERSOCKET_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 // component implementing nsISafeOutputStream
400 #define NS_SAFELOCALFILEOUTPUTSTREAM_CONTRACTID \
401 "@mozilla.org/network/safe-file-output-stream;1"
402 #define NS_SAFELOCALFILEOUTPUTSTREAM_CID \
403 { /* a181af0d-68b8-4308-94db-d4f859058215 */ \
404 0xa181af0d, \
405 0x68b8, \
406 0x4308, \
407 {0x94, 0xdb, 0xd4, 0xf8, 0x59, 0x05, 0x82, 0x15} \
410 // component implementing nsIFileStream
411 #define NS_LOCALFILESTREAM_CONTRACTID \
412 "@mozilla.org/network/file-stream;1"
413 #define NS_LOCALFILESTREAM_CID \
414 { /* f8a69bd7-176c-4a60-9a05-b6d92f8f229a */ \
415 0xf8a69bd7, \
416 0x176c, \
417 0x4a60, \
418 {0x9a, 0x05, 0xb6, 0xd9, 0x2f, 0x8f, 0x22, 0x9a} \
422 * Contract ID for a service implementing nsIURIClassifier that identifies
423 * phishing and malware sites.
425 #define NS_URICLASSIFIERSERVICE_CONTRACTID \
426 "@mozilla.org/uriclassifierservice"
428 // Redirect channel registrar used for redirect to various protocols
429 #define NS_REDIRECTCHANNELREGISTRAR_CONTRACTID \
430 "@mozilla.org/redirectchannelregistrar;1"
431 #define NS_REDIRECTCHANNELREGISTRAR_CID \
432 { /* {b69043a6-8929-4d60-8d17-a27e44a8393e} */ \
433 0xb69043a6, \
434 0x8929, \
435 0x4d60, \
436 { 0x8d, 0x17, 0xa2, 0x7e, 0x44, 0xa8, 0x39, 0x3e } \
439 /******************************************************************************
440 * netwerk/cache/ classes
443 // service implementing nsICacheService.
444 #define NS_CACHESERVICE_CONTRACTID \
445 "@mozilla.org/network/cache-service;1"
446 #define NS_CACHESERVICE_CID \
447 { /* 6c84aec9-29a5-4264-8fbc-bee8f922ea67 */ \
448 0x6c84aec9, \
449 0x29a5, \
450 0x4264, \
451 {0x8f, 0xbc, 0xbe, 0xe8, 0xf9, 0x22, 0xea, 0x67} \
454 // service implementing nsIApplicationCacheService.
455 #define NS_APPLICATIONCACHESERVICE_CONTRACTID \
456 "@mozilla.org/network/application-cache-service;1"
457 #define NS_APPLICATIONCACHESERVICE_CID \
458 { /* 02bf7a2a-39d8-4a23-a50c-2cbb085ab7a5 */ \
459 0x02bf7a2a, \
460 0x39d8, \
461 0x4a23, \
462 {0xa5, 0x0c, 0x2c, 0xbb, 0x08, 0x5a, 0xb7, 0xa5} \
465 #define NS_APPLICATIONCACHENAMESPACE_CONTRACTID \
466 "@mozilla.org/network/application-cache-namespace;1"
467 #define NS_APPLICATIONCACHENAMESPACE_CID \
468 { /* b00ed78a-04e2-4f74-8e1c-d1af79dfd12f */ \
469 0xb00ed78a, \
470 0x04e2, \
471 0x4f74, \
472 {0x8e, 0x1c, 0xd1, 0xaf, 0x79, 0xdf, 0xd1, 0x2f} \
475 #define NS_APPLICATIONCACHE_CONTRACTID \
476 "@mozilla.org/network/application-cache;1"
478 #define NS_APPLICATIONCACHE_CID \
479 { /* 463440c5-baad-4f3c-9e50-0b107abe7183 */ \
480 0x463440c5, \
481 0xbaad, \
482 0x4f3c, \
483 {0x9e, 0x50, 0xb, 0x10, 0x7a, 0xbe, 0x71, 0x83 } \
486 /******************************************************************************
487 * netwerk/protocol/http/ classes
490 #define NS_HTTPPROTOCOLHANDLER_CID \
491 { /* 4f47e42e-4d23-4dd3-bfda-eb29255e9ea3 */ \
492 0x4f47e42e, \
493 0x4d23, \
494 0x4dd3, \
495 {0xbf, 0xda, 0xeb, 0x29, 0x25, 0x5e, 0x9e, 0xa3} \
498 #define NS_HTTPSPROTOCOLHANDLER_CID \
499 { /* dccbe7e4-7750-466b-a557-5ea36c8ff24e */ \
500 0xdccbe7e4, \
501 0x7750, \
502 0x466b, \
503 {0xa5, 0x57, 0x5e, 0xa3, 0x6c, 0x8f, 0xf2, 0x4e} \
506 #define NS_HTTPBASICAUTH_CID \
507 { /* fca3766a-434a-4ae7-83cf-0909e18a093a */ \
508 0xfca3766a, \
509 0x434a, \
510 0x4ae7, \
511 {0x83, 0xcf, 0x09, 0x09, 0xe1, 0x8a, 0x09, 0x3a} \
514 #define NS_HTTPDIGESTAUTH_CID \
515 { /* 17491ba4-1dd2-11b2-aae3-de6b92dab620 */ \
516 0x17491ba4, \
517 0x1dd2, \
518 0x11b2, \
519 {0xaa, 0xe3, 0xde, 0x6b, 0x92, 0xda, 0xb6, 0x20} \
522 #define NS_HTTPNTLMAUTH_CID \
523 { /* bbef8185-c628-4cc1-b53e-e61e74c2451a */ \
524 0xbbef8185, \
525 0xc628, \
526 0x4cc1, \
527 {0xb5, 0x3e, 0xe6, 0x1e, 0x74, 0xc2, 0x45, 0x1a} \
530 #define NS_HTTPAUTHMANAGER_CONTRACTID \
531 "@mozilla.org/network/http-auth-manager;1"
532 #define NS_HTTPAUTHMANAGER_CID \
533 { /* 36b63ef3-e0fa-4c49-9fd4-e065e85568f4 */ \
534 0x36b63ef3, \
535 0xe0fa, \
536 0x4c49, \
537 {0x9f, 0xd4, 0xe0, 0x65, 0xe8, 0x55, 0x68, 0xf4} \
540 #define NS_HTTPCHANNELAUTHPROVIDER_CONTRACTID \
541 "@mozilla.org/network/http-channel-auth-provider;1"
542 #define NS_HTTPCHANNELAUTHPROVIDER_CID \
543 { /* 02f5a8d8-4ef3-48b1-b527-8a643056abbd */ \
544 0x02f5a8d8, \
545 0x4ef3, \
546 0x48b1, \
547 {0xb5, 0x27, 0x8a, 0x64, 0x30, 0x56, 0xab, 0xbd} \
550 #define NS_HTTPACTIVITYDISTRIBUTOR_CONTRACTID \
551 "@mozilla.org/network/http-activity-distributor;1"
552 #define NS_HTTPACTIVITYDISTRIBUTOR_CID \
553 { /* 15629ada-a41c-4a09-961f-6553cd60b1a2 */ \
554 0x15629ada, \
555 0xa41c, \
556 0x4a09, \
557 {0x96, 0x1f, 0x65, 0x53, 0xcd, 0x60, 0xb1, 0xa2} \
560 /******************************************************************************
561 * netwerk/protocol/ftp/ classes
564 #define NS_FTPPROTOCOLHANDLER_CID \
565 { /* 25029490-F132-11d2-9588-00805F369F95 */ \
566 0x25029490, \
567 0xf132, \
568 0x11d2, \
569 {0x95, 0x88, 0x0, 0x80, 0x5f, 0x36, 0x9f, 0x95} \
572 /******************************************************************************
573 * netwerk/protocol/res/ classes
576 #define NS_RESPROTOCOLHANDLER_CID \
577 { /* e64f152a-9f07-11d3-8cda-0060b0fc14a3 */ \
578 0xe64f152a, \
579 0x9f07, \
580 0x11d3, \
581 {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
584 #define NS_RESURL_CID \
585 { /* ff8fe7ec-2f74-4408-b742-6b7a546029a8 */ \
586 0xff8fe7ec, \
587 0x2f74, \
588 0x4408, \
589 {0xb7, 0x42, 0x6b, 0x7a, 0x54, 0x60, 0x29, 0xa8} \
593 /******************************************************************************
594 * netwerk/protocol/file/ classes
597 #define NS_FILEPROTOCOLHANDLER_CID \
598 { /* fbc81170-1f69-11d3-9344-00104ba0fd40 */ \
599 0xfbc81170, \
600 0x1f69, \
601 0x11d3, \
602 {0x93, 0x44, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
605 /******************************************************************************
606 * netwerk/protocol/data/ classes
609 #define NS_DATAPROTOCOLHANDLER_CID \
610 { /* {B6ED3030-6183-11d3-A178-0050041CAF44} */ \
611 0xb6ed3030, \
612 0x6183, \
613 0x11d3, \
614 {0xa1, 0x78, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44} \
617 /******************************************************************************
618 * netwerk/protocol/device classes
620 #define NS_DEVICEPROTOCOLHANDLER_CID \
621 { /* 6b0ffe9e-d114-486b-aeb7-da62e7273ed5 */ \
622 0x60ffe9e, \
623 0xd114, \
624 0x486b, \
625 {0xae, 0xb7, 0xda, 0x62, 0xe7, 0x27, 0x3e, 0xd5} \
628 /******************************************************************************
629 * netwerk/protocol/viewsource/ classes
632 // service implementing nsIProtocolHandler
633 #define NS_VIEWSOURCEHANDLER_CID \
634 { /* {0x9c7ec5d1-23f9-11d5-aea8-8fcc0793e97f} */ \
635 0x9c7ec5d1, \
636 0x23f9, \
637 0x11d5, \
638 {0xae, 0xa8, 0x8f, 0xcc, 0x07, 0x93, 0xe9, 0x7f} \
641 /******************************************************************************
642 * netwerk/protocol/wyciwyg/ classes
645 #define NS_WYCIWYGPROTOCOLHANDLER_CID \
646 { /* {0xe7509b46-2eB2-410a-9d7c-c3ce73284d01} */ \
647 0xe7509b46, \
648 0x2eb2, \
649 0x410a, \
650 {0x9d, 0x7c, 0xc3, 0xce, 0x73, 0x28, 0x4d, 0x01} \
653 /******************************************************************************
654 * netwerk/protocol/websocket/ classes
657 #define NS_WEBSOCKETPROTOCOLHANDLER_CID \
658 { /* {dc01db59-a513-4c90-824b-085cce06c0aa} */ \
659 0xdc01db59, \
660 0xa513, \
661 0x4c90, \
662 {0x82, 0x4b, 0x08, 0x5c, 0xce, 0x06, 0xc0, 0xaa} \
665 #define NS_WEBSOCKETSSLPROTOCOLHANDLER_CID \
666 { /* {dc01dbbb-a5bb-4cbb-82bb-085cce06c0bb} */ \
667 0xdc01dbbb, \
668 0xa5bb, \
669 0x4cbb, \
670 {0x82, 0xbb, 0x08, 0x5c, 0xce, 0x06, 0xc0, 0xbb} \
673 /******************************************************************************
674 * netwerk/protocol/about/ classes
677 #define NS_ABOUTPROTOCOLHANDLER_CID \
678 { /* 9e3b6c90-2f75-11d3-8cd0-0060b0fc14a3 */ \
679 0x9e3b6c90, \
680 0x2f75, \
681 0x11d3, \
682 {0x8c, 0xd0, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
685 #define NS_SAFEABOUTPROTOCOLHANDLER_CID \
686 { /* 1423e739-782c-4081-b5d8-fe6fba68c0ef */ \
687 0x1423e739, \
688 0x782c, \
689 0x4081, \
690 {0xb5, 0xd8, 0xfe, 0x6f, 0xba, 0x68, 0xc0, 0xef} \
693 /******************************************************************************
694 * netwerk/dns/ classes
697 #define NS_DNSSERVICE_CONTRACTID \
698 "@mozilla.org/network/dns-service;1"
699 #define NS_DNSSERVICE_CID \
700 { /* b0ff4572-dae4-4bef-a092-83c1b88f6be9 */ \
701 0xb0ff4572, \
702 0xdae4, \
703 0x4bef, \
704 {0xa0, 0x92, 0x83, 0xc1, 0xb8, 0x8f, 0x6b, 0xe9} \
707 /* ContractID of the XPCOM package that implements nsIIDNService */
708 #define NS_IDNSERVICE_CONTRACTID \
709 "@mozilla.org/network/idn-service;1"
710 #define NS_IDNSERVICE_CID \
711 { /* 62b778a6-bce3-456b-8c31-2865fbb68c91 */ \
712 0x62b778a6, \
713 0xbce3, \
714 0x456b, \
715 {0x8c, 0x31, 0x28, 0x65, 0xfb, 0xb6, 0x8c, 0x91} \
718 #define NS_EFFECTIVETLDSERVICE_CONTRACTID \
719 "@mozilla.org/network/effective-tld-service;1"
720 #define NS_EFFECTIVETLDSERVICE_CID \
721 { /* cb9abbae-66b6-4609-8594-5c4ff300888e */ \
722 0xcb9abbae, \
723 0x66b6, \
724 0x4609, \
725 {0x85, 0x94, 0x5c, 0x4f, 0xf3, 0x00, 0x88, 0x8e} \
729 /******************************************************************************
730 * netwerk/mime classes
733 // {1F4DBCF7-245C-4c8c-943D-8A1DA0495E8A}
734 #define NS_MIMEHEADERPARAM_CID \
735 { 0x1f4dbcf7, \
736 0x245c, \
737 0x4c8c, \
738 { 0x94, 0x3d, 0x8a, 0x1d, 0xa0, 0x49, 0x5e, 0x8a } \
741 #define NS_MIMEHEADERPARAM_CONTRACTID "@mozilla.org/network/mime-hdrparam;1"
744 /******************************************************************************
745 * netwerk/socket classes
748 #define NS_SOCKETPROVIDERSERVICE_CONTRACTID \
749 "@mozilla.org/network/socket-provider-service;1"
750 #define NS_SOCKETPROVIDERSERVICE_CID \
751 { /* ed394ba0-5472-11d3-bbc8-0000861d1237 */ \
752 0xed394ba0, \
753 0x5472, \
754 0x11d3, \
755 { 0xbb, 0xc8, 0x00, 0x00, 0x86, 0x1d, 0x12, 0x37 } \
758 #define NS_SOCKSSOCKETPROVIDER_CID \
759 { /* 8dbe7246-1dd2-11b2-9b8f-b9a849e4403a */ \
760 0x8dbe7246, \
761 0x1dd2, \
762 0x11b2, \
763 { 0x9b, 0x8f, 0xb9, 0xa8, 0x49, 0xe4, 0x40, 0x3a } \
766 #define NS_SOCKS4SOCKETPROVIDER_CID \
767 { /* F7C9F5F4-4451-41c3-A28A-5BA2447FBACE */ \
768 0xf7c9f5f4, \
769 0x4451, \
770 0x41c3, \
771 { 0xa2, 0x8a, 0x5b, 0xa2, 0x44, 0x7f, 0xba, 0xce } \
774 #define NS_UDPSOCKETPROVIDER_CID \
775 { /* 320706D2-2E81-42c6-89C3-8D83B17D3FB4 */ \
776 0x320706d2, \
777 0x2e81, \
778 0x42c6, \
779 { 0x89, 0xc3, 0x8d, 0x83, 0xb1, 0x7d, 0x3f, 0xb4 } \
782 #define NS_SSLSOCKETPROVIDER_CONTRACTID \
783 NS_NETWORK_SOCKET_CONTRACTID_PREFIX "ssl"
785 /* This code produces a normal socket which can be used to initiate the
786 * STARTTLS protocol by calling its nsISSLSocketControl->StartTLS()
788 #define NS_STARTTLSSOCKETPROVIDER_CONTRACTID \
789 NS_NETWORK_SOCKET_CONTRACTID_PREFIX "starttls"
792 #define NS_DASHBOARD_CONTRACTID \
793 "@mozilla.org/network/dashboard;1"
794 #define NS_DASHBOARD_CID \
795 { /*c79eb3c6-091a-45a6-8544-5a8d1ab79537 */ \
796 0xc79eb3c6, \
797 0x091a, \
798 0x45a6, \
799 { 0x85, 0x44, 0x5a, 0x8d, 0x1a, 0xb7, 0x95, 0x37 } \
803 /******************************************************************************
804 * netwerk/cookie classes
807 // service implementing nsICookieManager and nsICookieManager2.
808 #define NS_COOKIEMANAGER_CONTRACTID \
809 "@mozilla.org/cookiemanager;1"
810 #define NS_COOKIEMANAGER_CID \
811 { /* aaab6710-0f2c-11d5-a53b-0010a401eb10 */ \
812 0xaaab6710, \
813 0x0f2c, \
814 0x11d5, \
815 { 0xa5, 0x3b, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 } \
818 // service implementing nsICookieService.
819 #define NS_COOKIESERVICE_CONTRACTID \
820 "@mozilla.org/cookieService;1"
821 #define NS_COOKIESERVICE_CID \
822 { /* c375fa80-150f-11d6-a618-0010a401eb10 */ \
823 0xc375fa80, \
824 0x150f, \
825 0x11d6, \
826 { 0xa6, 0x18, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 } \
829 /******************************************************************************
830 * netwerk/wifi classes
832 #ifdef NECKO_WIFI
833 #define NS_WIFI_MONITOR_CONTRACTID "@mozilla.org/wifi/monitor;1"
835 #define NS_WIFI_MONITOR_COMPONENT_CID \
836 { 0x3FF8FB9F, \
837 0xEE63, \
838 0x48DF, \
839 { 0x89, 0xF0, 0xDA, 0xCE, 0x02, 0x42, 0xFD, 0x82 } \
841 #endif
843 /******************************************************************************
844 * netwerk/streamconv classes
847 // service implementing nsIStreamConverterService
848 #define NS_STREAMCONVERTERSERVICE_CONTRACTID \
849 "@mozilla.org/streamConverters;1"
850 #define NS_STREAMCONVERTERSERVICE_CID \
851 { /* 892FFEB0-3F80-11d3-A16C-0050041CAF44 */ \
852 0x892ffeb0, \
853 0x3f80, \
854 0x11d3, \
855 {0xa1, 0x6c, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44} \
859 * General-purpose content sniffer component. Use with CreateInstance.
861 * Implements nsIContentSniffer
863 #define NS_GENERIC_CONTENT_SNIFFER \
864 "@mozilla.org/network/content-sniffer;1"
867 * Detector that can act as either an nsIStreamConverter or an
868 * nsIContentSniffer to decide whether text/plain data is "really" text/plain
869 * or APPLICATION_GUESS_FROM_EXT. Use with CreateInstance.
871 #define NS_BINARYDETECTOR_CONTRACTID \
872 "@mozilla.org/network/binary-detector;1"
874 /******************************************************************************
875 * netwerk/system classes
878 // service implementing nsINetworkLinkService
879 #define NS_NETWORK_LINK_SERVICE_CID \
880 { 0x75a500a2, \
881 0x0030, \
882 0x40f7, \
883 { 0x86, 0xf8, 0x63, 0xf2, 0x25, 0xb9, 0x40, 0xae } \
886 /******************************************************************************
887 * Contracts that can be implemented by necko users.
891 * This contract ID will be gotten as a service and gets the opportunity to look
892 * at and veto all redirects that are processed by necko.
894 * Must implement nsIChannelEventSink
896 #define NS_GLOBAL_CHANNELEVENTSINK_CONTRACTID \
897 "@mozilla.org/netwerk/global-channel-event-sink;1"
900 * This contract ID will be gotten as a service implementing nsINetworkLinkService
901 * and monitored by IOService for automatic online/offline management.
903 * Must implement nsINetworkLinkService
905 #define NS_NETWORK_LINK_SERVICE_CONTRACTID \
906 "@mozilla.org/network/network-link-service;1"
909 * This contract ID is used when Necko needs to wrap an nsIAuthPrompt as
910 * nsIAuthPrompt2. Implementing it is required for backwards compatibility
911 * with Versions before 1.9.
913 * Must implement nsIAuthPromptAdapterFactory
915 #define NS_AUTHPROMPT_ADAPTER_FACTORY_CONTRACTID \
916 "@mozilla.org/network/authprompt-adapter-factory;1"
919 * Must implement nsICryptoHash.
921 #define NS_CRYPTO_HASH_CONTRACTID "@mozilla.org/security/hash;1"
924 * Must implement nsICryptoHMAC.
926 #define NS_CRYPTO_HMAC_CONTRACTID "@mozilla.org/security/hmac;1"
928 /******************************************************************************
929 * Categories
932 * Services registered in this category will get notified via
933 * nsIChannelEventSink about all redirects that happen and have the opportunity
934 * to veto them. The value of the category entries is interpreted as the
935 * contract ID of the service.
937 #define NS_CHANNEL_EVENT_SINK_CATEGORY "net-channel-event-sinks"
940 * Services in this category will get told about each load that happens and get
941 * the opportunity to override the detected MIME type via nsIContentSniffer.
942 * Services should not set the MIME type on the channel directly, but return the
943 * new type. If getMIMETypeFromContent throws an exception, the type will remain
944 * unchanged.
946 * Note that only channels with the LOAD_CALL_CONTENT_SNIFFERS flag will call
947 * content sniffers. Also note that there can be security implications about
948 * changing the MIME type -- proxies filtering responses based on their MIME
949 * type might consider certain types to be safe, which these sniffers can
950 * override.
952 * Not all channels may implement content sniffing. See also
953 * nsIChannel::LOAD_CALL_CONTENT_SNIFFERS.
955 #define NS_CONTENT_SNIFFER_CATEGORY "net-content-sniffers"
958 * Services in this category can sniff content that is not necessarily loaded
959 * from the network, and they won't be told about each load.
961 #define NS_DATA_SNIFFER_CATEGORY "content-sniffing-services"
964 * Must implement nsINSSErrorsService.
966 #define NS_NSS_ERRORS_SERVICE_CONTRACTID "@mozilla.org/nss_errors_service;1"
968 #endif // nsNetCID_h__