netwerk/build/nsNetCID.h

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

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

mercurial