Back to index

lightning-sunbird  0.9+nobinonly
nsNetCID.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is mozilla.org code.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 2001
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *   Darin Fisher <darin@netscape.com> (original author)
00024  *
00025  * Alternatively, the contents of this file may be used under the terms of
00026  * either the GNU General Public License Version 2 or later (the "GPL"), or
00027  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00028  * in which case the provisions of the GPL or the LGPL are applicable instead
00029  * of those above. If you wish to allow use of your version of this file only
00030  * under the terms of either the GPL or the LGPL, and not to allow others to
00031  * use your version of this file under the terms of the MPL, indicate your
00032  * decision by deleting the provisions above and replace them with the notice
00033  * and other provisions required by the GPL or the LGPL. If you do not delete
00034  * the provisions above, a recipient may use your version of this file under
00035  * the terms of any one of the MPL, the GPL or the LGPL.
00036  *
00037  * ***** END LICENSE BLOCK ***** */
00038 
00039 #ifndef nsNetCID_h__
00040 #define nsNetCID_h__
00041 
00042 
00043 /******************************************************************************
00044  * netwerk/base/ classes
00045  */
00046 
00047 // service implementing nsIIOService and nsIIOService2.
00048 #define NS_IOSERVICE_CLASSNAME \
00049     "nsIOService"
00050 #define NS_IOSERVICE_CONTRACTID \
00051     "@mozilla.org/network/io-service;1"
00052 #define NS_IOSERVICE_CID                             \
00053 { /* 9ac9e770-18bc-11d3-9337-00104ba0fd40 */         \
00054     0x9ac9e770,                                      \
00055     0x18bc,                                          \
00056     0x11d3,                                          \
00057     {0x93, 0x37, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
00058 }
00059 
00060 // service implementing nsINetUtil
00061 #define NS_NETUTIL_CONTRACTID \
00062     "@mozilla.org/network/util;1"
00063 
00064 // service implementing nsIEventTarget.  events dispatched to this event
00065 // target will be executed on one of necko's background i/o threads.
00066 #define NS_IOTHREADPOOL_CLASSNAME \
00067     "nsIOThreadPool"
00068 #define NS_IOTHREADPOOL_CONTRACTID \
00069     "@mozilla.org/network/io-thread-pool;1"
00070 #define NS_IOTHREADPOOL_CID                          \
00071 { /* f1d62b49-5051-48e2-9155-c3509428461e */         \
00072     0xf1d62b49,                                      \
00073     0x5051,                                          \
00074     0x48e2,                                          \
00075     {0x91, 0x55, 0xc3, 0x50, 0x94, 0x28, 0x46, 0x1e} \
00076 }
00077 
00078 // service implementing nsIProtocolProxyService and nsPIProtocolProxyService.
00079 #define NS_PROTOCOLPROXYSERVICE_CLASSNAME \
00080     "nsProtocolProxyService"
00081 #define NS_PROTOCOLPROXYSERVICE_CONTRACTID \
00082     "@mozilla.org/network/protocol-proxy-service;1"
00083 #define NS_PROTOCOLPROXYSERVICE_CID                  \
00084 { /* E9B301C0-E0E4-11d3-A1A8-0050041CAF44 */         \
00085     0xe9b301c0,                                      \
00086     0xe0e4,                                          \
00087     0x11d3,                                          \
00088     {0xa1, 0xa8, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44}   \
00089 }
00090 
00091 // service implementing nsIProxyAutoConfig.
00092 #define NS_PROXYAUTOCONFIG_CLASSNAME \
00093     "nsProxyAutoConfig"
00094 #define NS_PROXYAUTOCONFIG_CONTRACTID \
00095     "@mozilla.org/network/proxy-auto-config;1" 
00096 #define NS_PROXYAUTOCONFIG_CID                       \
00097 { /* 63ac8c66-1dd2-11b2-b070-84d00d3eaece */         \
00098     0x63ac8c66,                                      \
00099     0x1dd2,                                          \
00100     0x11b2,                                          \
00101     {0xb0, 0x70, 0x84, 0xd0, 0x0d, 0x3e, 0xae, 0xce} \
00102 }
00103 
00104 // component implementing nsILoadGroup.
00105 #define NS_LOADGROUP_CLASSNAME \
00106     "nsLoadGroup"
00107 #define NS_LOADGROUP_CONTRACTID \
00108     "@mozilla.org/network/load-group;1"
00109 #define NS_LOADGROUP_CID                             \
00110 { /* e1c61582-2a84-11d3-8cce-0060b0fc14a3 */         \
00111     0xe1c61582,                                      \
00112     0x2a84,                                          \
00113     0x11d3,                                          \
00114     {0x8c, 0xce, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
00115 }
00116 
00117 // component implementing nsIURI, nsISerializable, and nsIClassInfo.
00118 #define NS_SIMPLEURI_CLASSNAME \
00119     "nsSimpleURI"
00120 #define NS_SIMPLEURI_CONTRACTID \
00121     "@mozilla.org/network/simple-uri;1"
00122 #define NS_SIMPLEURI_CID                              \
00123 { /* e0da1d70-2f7b-11d3-8cd0-0060b0fc14a3 */          \
00124      0xe0da1d70,                                      \
00125      0x2f7b,                                          \
00126      0x11d3,                                          \
00127      {0x8c, 0xd0, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
00128 }
00129 
00130 // component implementing nsIStandardURL, nsIURI, nsIURL, nsISerializable,
00131 // and nsIClassInfo.
00132 #define NS_STANDARDURL_CLASSNAME \
00133     "nsStandardURL"
00134 #define NS_STANDARDURL_CONTRACTID \
00135     "@mozilla.org/network/standard-url;1"
00136 #define NS_STANDARDURL_CID                           \
00137 { /* de9472d0-8034-11d3-9399-00104ba0fd40 */         \
00138     0xde9472d0,                                      \
00139     0x8034,                                          \
00140     0x11d3,                                          \
00141     {0x93, 0x99, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
00142 }
00143 
00144 // service implementing nsIURLParser that assumes the URL will NOT contain an
00145 // authority section.
00146 #define NS_NOAUTHURLPARSER_CLASSNAME \
00147     "nsNoAuthURLParser"
00148 #define NS_NOAUTHURLPARSER_CONTRACTID \
00149     "@mozilla.org/network/url-parser;1?auth=no"
00150 #define NS_NOAUTHURLPARSER_CID                       \
00151 { /* 78804a84-8173-42b6-bb94-789f0816a810 */         \
00152     0x78804a84,                                      \
00153     0x8173,                                          \
00154     0x42b6,                                          \
00155     {0xbb, 0x94, 0x78, 0x9f, 0x08, 0x16, 0xa8, 0x10} \
00156 }
00157 
00158 // service implementing nsIURLParser that assumes the URL will contain an
00159 // authority section.
00160 #define NS_AUTHURLPARSER_CLASSNAME \
00161     "nsAuthURLParser"
00162 #define NS_AUTHURLPARSER_CONTRACTID \
00163     "@mozilla.org/network/url-parser;1?auth=yes"
00164 #define NS_AUTHURLPARSER_CID                         \
00165 { /* 275d800e-3f60-4896-adb7-d7f390ce0e42 */         \
00166     0x275d800e,                                      \
00167     0x3f60,                                          \
00168     0x4896,                                          \
00169     {0xad, 0xb7, 0xd7, 0xf3, 0x90, 0xce, 0x0e, 0x42} \
00170 }
00171 
00172 // service implementing nsIURLParser that does not make any assumptions about
00173 // whether or not the URL contains an authority section.
00174 #define NS_STDURLPARSER_CLASSNAME \
00175     "nsStdURLParser"
00176 #define NS_STDURLPARSER_CONTRACTID \
00177     "@mozilla.org/network/url-parser;1?auth=maybe"
00178 #define NS_STDURLPARSER_CID                          \
00179 { /* ff41913b-546a-4bff-9201-dc9b2c032eba */         \
00180     0xff41913b,                                      \
00181     0x546a,                                          \
00182     0x4bff,                                          \
00183     {0x92, 0x01, 0xdc, 0x9b, 0x2c, 0x03, 0x2e, 0xba} \
00184 }
00185 
00186 // component implementing nsIRequestObserverProxy.
00187 #define NS_REQUESTOBSERVERPROXY_CLASSNAME \
00188     "nsRequestObserverProxy"
00189 #define NS_REQUESTOBSERVERPROXY_CONTRACTID \
00190     "@mozilla.org/network/request-observer-proxy;1"
00191 #define NS_REQUESTOBSERVERPROXY_CID                  \
00192 { /* 51fa28c7-74c0-4b85-9c46-d03faa7b696b */         \
00193     0x51fa28c7,                                      \
00194     0x74c0,                                          \
00195     0x4b85,                                          \
00196     {0x9c, 0x46, 0xd0, 0x3f, 0xaa, 0x7b, 0x69, 0x6b} \
00197 }
00198 
00199 // component implementing nsISimpleStreamListener.
00200 #define NS_SIMPLESTREAMLISTENER_CLASSNAME \
00201     "nsSimpleStreamListener"
00202 #define NS_SIMPLESTREAMLISTENER_CONTRACTID \
00203     "@mozilla.org/network/simple-stream-listener;1"
00204 #define NS_SIMPLESTREAMLISTENER_CID                  \
00205 { /* fb8cbf4e-4701-4ba1-b1d6-5388e041fb67 */         \
00206     0xfb8cbf4e,                                      \
00207     0x4701,                                          \
00208     0x4ba1,                                          \
00209     {0xb1, 0xd6, 0x53, 0x88, 0xe0, 0x41, 0xfb, 0x67} \
00210 }
00211 
00212 // DEPRECATED component implementing nsIAsyncStreamListener.
00213 #define NS_ASYNCSTREAMLISTENER_CLASSNAME \
00214     "nsAsyncStreamListener"
00215 #define NS_ASYNCSTREAMLISTENER_CONTRACTID \
00216     "@mozilla.org/network/async-stream-listener;1"
00217 #define NS_ASYNCSTREAMLISTENER_CID                   \
00218 { /* 60047bb2-91c0-11d3-8cd9-0060b0fc14a3 */         \
00219     0x60047bb2,                                      \
00220     0x91c0,                                          \
00221     0x11d3,                                          \
00222     {0x8c, 0xd9, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
00223 }
00224 
00225 // component implementing nsIStreamListenerTee.
00226 #define NS_STREAMLISTENERTEE_CLASSNAME \
00227     "nsStreamListenerTee"
00228 #define NS_STREAMLISTENERTEE_CONTRACTID \
00229     "@mozilla.org/network/stream-listener-tee;1"
00230 #define NS_STREAMLISTENERTEE_CID                     \
00231 { /* 831f8f13-7aa8-485f-b02e-77c881cc5773 */         \
00232     0x831f8f13,                                      \
00233     0x7aa8,                                          \
00234     0x485f,                                          \
00235     {0xb0, 0x2e, 0x77, 0xc8, 0x81, 0xcc, 0x57, 0x73} \
00236 }
00237 
00238 // component implementing nsIAsyncStreamCopier.
00239 #define NS_ASYNCSTREAMCOPIER_CLASSNAME \
00240     "nsAsyncStreamCopier"
00241 #define NS_ASYNCSTREAMCOPIER_CONTRACTID \
00242     "@mozilla.org/network/async-stream-copier;1"
00243 #define NS_ASYNCSTREAMCOPIER_CID                     \
00244 { /* e746a8b1-c97a-4fc5-baa4-66607521bd08 */         \
00245     0xe746a8b1,                                      \
00246     0xc97a,                                          \
00247     0x4fc5,                                          \
00248     {0xba, 0xa4, 0x66, 0x60, 0x75, 0x21, 0xbd, 0x08} \
00249 }
00250 
00251 // component implementing nsIInputStreamPump.
00252 #define NS_INPUTSTREAMPUMP_CLASSNAME \
00253     "nsInputStreamPump"
00254 #define NS_INPUTSTREAMPUMP_CONTRACTID \
00255     "@mozilla.org/network/input-stream-pump;1"
00256 #define NS_INPUTSTREAMPUMP_CID                       \
00257 { /* ccd0e960-7947-4635-b70e-4c661b63d675 */         \
00258     0xccd0e960,                                      \
00259     0x7947,                                          \
00260     0x4635,                                          \
00261     {0xb7, 0x0e, 0x4c, 0x66, 0x1b, 0x63, 0xd6, 0x75} \
00262 }
00263 
00264 // component implementing nsIInputStreamChannel.
00265 #define NS_INPUTSTREAMCHANNEL_CLASSNAME \
00266     "nsInputStreamChannel"
00267 #define NS_INPUTSTREAMCHANNEL_CONTRACTID \
00268     "@mozilla.org/network/input-stream-channel;1"
00269 #define NS_INPUTSTREAMCHANNEL_CID                    \
00270 { /* 6ddb050c-0d04-11d4-986e-00c04fa0cf4a */         \
00271     0x6ddb050c,                                      \
00272     0x0d04,                                          \
00273     0x11d4,                                          \
00274     {0x98, 0x6e, 0x00, 0xc0, 0x4f, 0xa0, 0xcf, 0x4a} \
00275 }
00276 
00277 // component implementing nsIStreamLoader.
00278 #define NS_STREAMLOADER_CLASSNAME \
00279     "nsStreamLoader"
00280 #define NS_STREAMLOADER_CONTRACTID \
00281     "@mozilla.org/network/stream-loader;1"
00282 #define NS_STREAMLOADER_CID \
00283 { /* 5BA6D920-D4E9-11d3-A1A5-0050041CAF44 */         \
00284     0x5ba6d920,                                      \
00285     0xd4e9,                                          \
00286     0x11d3,                                          \
00287     { 0xa1, 0xa5, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44 } \
00288 }
00289 
00290 // component implementing nsIUnicharStreamLoader.
00291 #define NS_UNICHARSTREAMLOADER_CLASSNAME \
00292     "nsUnicharStreamLoader"
00293 #define NS_UNICHARSTREAMLOADER_CONTRACTID \
00294     "@mozilla.org/network/unichar-stream-loader;1"
00295 #define NS_UNICHARSTREAMLOADER_CID \
00296 { /* 9445791f-fa4c-4669-b174-df5032bb67b3 */           \
00297     0x9445791f,                                        \
00298     0xfa4c,                                            \
00299     0x4669,                                            \
00300     { 0xb1, 0x74, 0xdf, 0x50, 0x32, 0xbb, 0x67, 0xb3 } \
00301 }
00302 
00303 // component implementing nsIDownloader.
00304 #define NS_DOWNLOADER_CLASSNAME \
00305     "nsDownloader"
00306 #define NS_DOWNLOADER_CONTRACTID \
00307     "@mozilla.org/network/downloader;1"
00308 #define NS_DOWNLOADER_CID \
00309 { /* 510a86bb-6019-4ed1-bb4f-965cffd23ece */         \
00310     0x510a86bb,                                      \
00311     0x6019,                                          \
00312     0x4ed1,                                          \
00313     {0xbb, 0x4f, 0x96, 0x5c, 0xff, 0xd2, 0x3e, 0xce} \
00314 }
00315 
00316 // component implementing nsISyncStreamListener.
00317 #define NS_SYNCSTREAMLISTENER_CLASSNAME \
00318     "nsSyncStreamListener"
00319 #define NS_SYNCSTREAMLISTENER_CONTRACTID \
00320     "@mozilla.org/network/sync-stream-listener;1"
00321 #define NS_SYNCSTREAMLISTENER_CID \
00322 { /* 439400d3-6f23-43db-8b06-8aafe1869bd8 */         \
00323     0x439400d3,                                      \
00324     0x6f23,                                          \
00325     0x43db,                                          \
00326     {0x8b, 0x06, 0x8a, 0xaf, 0xe1, 0x86, 0x9b, 0xd8} \
00327 }
00328 
00329 // component implementing nsIURIChecker.
00330 #define NS_URICHECKER_CLASSNAME \
00331     "nsURIChecker"
00332 #define NS_URICHECKER_CONTRACT_ID \
00333     "@mozilla.org/network/urichecker;1"
00334 #define NS_URICHECKER_CID \
00335 { /* cf3a0e06-1dd1-11b2-a904-ac1d6da77a02 */         \
00336     0xcf3a0e06,                                      \
00337     0x1dd1,                                          \
00338     0x11b2,                                          \
00339     {0xa9, 0x04, 0xac, 0x1d, 0x6d, 0xa7, 0x7a, 0x02} \
00340 }
00341 
00342 // component implementing nsIIncrementalDownload.
00343 #define NS_INCREMENTALDOWNLOAD_CONTRACTID \
00344     "@mozilla.org/network/incremental-download;1"
00345 
00346 // service implementing nsIStreamTransportService
00347 #define NS_STREAMTRANSPORTSERVICE_CLASSNAME \
00348     "nsStreamTransportService"
00349 #define NS_STREAMTRANSPORTSERVICE_CONTRACTID \
00350     "@mozilla.org/network/stream-transport-service;1"
00351 #define NS_STREAMTRANSPORTSERVICE_CID \
00352 { /* 0885d4f8-f7b8-4cda-902e-94ba38bc256e */         \
00353     0x0885d4f8,                                      \
00354     0xf7b8,                                          \
00355     0x4cda,                                          \
00356     {0x90, 0x2e, 0x94, 0xba, 0x38, 0xbc, 0x25, 0x6e} \
00357 }
00358 
00359 // service implementing nsISocketTransportService
00360 #define NS_SOCKETTRANSPORTSERVICE_CLASSNAME \
00361     "nsSocketTransportService"
00362 #define NS_SOCKETTRANSPORTSERVICE_CONTRACTID \
00363     "@mozilla.org/network/socket-transport-service;1"
00364 #define NS_SOCKETTRANSPORTSERVICE_CID                \
00365 { /* c07e81e0-ef12-11d2-92b6-00105a1b0d64 */         \
00366     0xc07e81e0,                                      \
00367     0xef12,                                          \
00368     0x11d2,                                          \
00369     {0x92, 0xb6, 0x00, 0x10, 0x5a, 0x1b, 0x0d, 0x64} \
00370 }
00371 
00372 // component implementing nsIServerSocket
00373 #define NS_SERVERSOCKET_CLASSNAME \
00374     "nsServerSocket"
00375 #define NS_SERVERSOCKET_CONTRACTID \
00376     "@mozilla.org/network/server-socket;1"
00377 #define NS_SERVERSOCKET_CID                          \
00378 { /* 2ec62893-3b35-48fa-ab1d-5e68a9f45f08 */         \
00379     0x2ec62893,                                      \
00380     0x3b35,                                          \
00381     0x48fa,                                          \
00382     {0xab, 0x1d, 0x5e, 0x68, 0xa9, 0xf4, 0x5f, 0x08} \
00383 }
00384 
00385 #define NS_LOCALFILEINPUTSTREAM_CLASSNAME \
00386     "nsFileInputStream"
00387 #define NS_LOCALFILEINPUTSTREAM_CONTRACTID \
00388     "@mozilla.org/network/file-input-stream;1"
00389 #define NS_LOCALFILEINPUTSTREAM_CID                  \
00390 { /* be9a53ae-c7e9-11d3-8cda-0060b0fc14a3 */         \
00391     0xbe9a53ae,                                      \
00392     0xc7e9,                                          \
00393     0x11d3,                                          \
00394     {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
00395 }
00396 
00397 #define NS_LOCALFILEOUTPUTSTREAM_CLASSNAME \
00398     "nsFileOutputStream"
00399 #define NS_LOCALFILEOUTPUTSTREAM_CONTRACTID \
00400     "@mozilla.org/network/file-output-stream;1"
00401 #define NS_LOCALFILEOUTPUTSTREAM_CID                 \
00402 { /* c272fee0-c7e9-11d3-8cda-0060b0fc14a3 */         \
00403     0xc272fee0,                                      \
00404     0xc7e9,                                          \
00405     0x11d3,                                          \
00406     {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
00407 }
00408 
00409 #define NS_BUFFEREDINPUTSTREAM_CLASSNAME \
00410     "nsBufferedInputStream"
00411 #define NS_BUFFEREDINPUTSTREAM_CONTRACTID \
00412     "@mozilla.org/network/buffered-input-stream;1"
00413 #define NS_BUFFEREDINPUTSTREAM_CID                   \
00414 { /* 9226888e-da08-11d3-8cda-0060b0fc14a3 */         \
00415     0x9226888e,                                      \
00416     0xda08,                                          \
00417     0x11d3,                                          \
00418     {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
00419 }
00420 
00421 #define NS_BUFFEREDOUTPUTSTREAM_CLASSNAME \
00422     "nsBufferedOutputStream"
00423 #define NS_BUFFEREDOUTPUTSTREAM_CONTRACTID \
00424     "@mozilla.org/network/buffered-output-stream;1"
00425 #define NS_BUFFEREDOUTPUTSTREAM_CID                  \
00426 { /* 9868b4ce-da08-11d3-8cda-0060b0fc14a3 */         \
00427     0x9868b4ce,                                      \
00428     0xda08,                                          \
00429     0x11d3,                                          \
00430     {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
00431 }
00432 
00433 // component implementing nsISafeOutputStream
00434 #define NS_SAFELOCALFILEOUTPUTSTREAM_CLASSNAME \
00435     "nsSafeFileOutputStream"
00436 #define NS_SAFELOCALFILEOUTPUTSTREAM_CONTRACTID \
00437     "@mozilla.org/network/safe-file-output-stream;1"
00438 #define NS_SAFELOCALFILEOUTPUTSTREAM_CID             \
00439 { /* a181af0d-68b8-4308-94db-d4f859058215 */         \
00440     0xa181af0d,                                      \
00441     0x68b8,                                          \
00442     0x4308,                                          \
00443     {0x94, 0xdb, 0xd4, 0xf8, 0x59, 0x05, 0x82, 0x15} \
00444 }
00445 
00446 // component implementing nsIPrompt
00447 //
00448 // NOTE: this implementation does not have any way to correctly parent itself,
00449 //       it is almost always wrong to get a prompt via this interface.
00450 //       use nsIWindowWatcher instead whenever possible.
00451 //
00452 #define NS_DEFAULTPROMPT_CONTRACTID \
00453     "@mozilla.org/network/default-prompt;1"
00454 
00455 // component implementing nsIAuthPrompt
00456 //
00457 // NOTE: this implementation does not have any way to correctly parent itself,
00458 //       it is almost always wrong to get an auth prompt via this interface.
00459 //       use nsIWindowWatcher instead whenever possible.
00460 //
00461 #define NS_DEFAULTAUTHPROMPT_CONTRACTID \
00462     "@mozilla.org/network/default-auth-prompt;1"
00463 
00464 /******************************************************************************
00465  * netwerk/cache/ classes
00466  */
00467 
00468 // service implementing nsICacheService.
00469 #define NS_CACHESERVICE_CLASSNAME \
00470     "nsCacheService"
00471 #define NS_CACHESERVICE_CONTRACTID \
00472     "@mozilla.org/network/cache-service;1"
00473 #define NS_CACHESERVICE_CID                          \
00474 { /* 6c84aec9-29a5-4264-8fbc-bee8f922ea67 */         \
00475     0x6c84aec9,                                      \
00476     0x29a5,                                          \
00477     0x4264,                                          \
00478     {0x8f, 0xbc, 0xbe, 0xe8, 0xf9, 0x22, 0xea, 0x67} \
00479 }
00480 
00481 
00482 /******************************************************************************
00483  * netwerk/protocol/http/ classes
00484  */
00485 
00486 #define NS_HTTPPROTOCOLHANDLER_CID \
00487 { /* 4f47e42e-4d23-4dd3-bfda-eb29255e9ea3 */         \
00488     0x4f47e42e,                                      \
00489     0x4d23,                                          \
00490     0x4dd3,                                          \
00491     {0xbf, 0xda, 0xeb, 0x29, 0x25, 0x5e, 0x9e, 0xa3} \
00492 }
00493 
00494 #define NS_HTTPSPROTOCOLHANDLER_CID \
00495 { /* dccbe7e4-7750-466b-a557-5ea36c8ff24e */         \
00496     0xdccbe7e4,                                      \
00497     0x7750,                                          \
00498     0x466b,                                          \
00499     {0xa5, 0x57, 0x5e, 0xa3, 0x6c, 0x8f, 0xf2, 0x4e} \
00500 }
00501 
00502 #define NS_HTTPBASICAUTH_CID \
00503 { /* fca3766a-434a-4ae7-83cf-0909e18a093a */         \
00504     0xfca3766a,                                      \
00505     0x434a,                                          \
00506     0x4ae7,                                          \
00507     {0x83, 0xcf, 0x09, 0x09, 0xe1, 0x8a, 0x09, 0x3a} \
00508 }
00509 
00510 #define NS_HTTPDIGESTAUTH_CID \
00511 { /* 17491ba4-1dd2-11b2-aae3-de6b92dab620 */         \
00512     0x17491ba4,                                      \
00513     0x1dd2,                                          \
00514     0x11b2,                                          \
00515     {0xaa, 0xe3, 0xde, 0x6b, 0x92, 0xda, 0xb6, 0x20} \
00516 }
00517 
00518 #define NS_HTTPNTLMAUTH_CID \
00519 { /* bbef8185-c628-4cc1-b53e-e61e74c2451a */         \
00520     0xbbef8185,                                      \
00521     0xc628,                                          \
00522     0x4cc1,                                          \
00523     {0xb5, 0x3e, 0xe6, 0x1e, 0x74, 0xc2, 0x45, 0x1a} \
00524 }
00525 
00526 #define NS_HTTPAUTHMANAGER_CLASSNAME \
00527     "nsHttpAuthManager"
00528 #define NS_HTTPAUTHMANAGER_CONTRACTID \
00529     "@mozilla.org/network/http-auth-manager;1"
00530 #define NS_HTTPAUTHMANAGER_CID \
00531 { /* 36b63ef3-e0fa-4c49-9fd4-e065e85568f4 */         \
00532     0x36b63ef3,                                      \
00533     0xe0fa,                                          \
00534     0x4c49,                                          \
00535     {0x9f, 0xd4, 0xe0, 0x65, 0xe8, 0x55, 0x68, 0xf4} \
00536 }
00537 
00538 /******************************************************************************
00539  * netwerk/protocol/ftp/ classes
00540  */
00541 
00542 #define NS_FTPPROTOCOLHANDLER_CLASSNAME \
00543     "nsFtpProtocolHandler"
00544 #define NS_FTPPROTOCOLHANDLER_CID \
00545 { /* 25029490-F132-11d2-9588-00805F369F95 */         \
00546     0x25029490,                                      \
00547     0xf132,                                          \
00548     0x11d2,                                          \
00549     {0x95, 0x88, 0x0, 0x80, 0x5f, 0x36, 0x9f, 0x95}  \
00550 }
00551 
00552 /******************************************************************************
00553  * netwerk/protocol/res/ classes
00554  */
00555 
00556 #define NS_RESPROTOCOLHANDLER_CLASSNAME \
00557     "nsResProtocolHandler"
00558 #define NS_RESPROTOCOLHANDLER_CID                    \
00559 { /* e64f152a-9f07-11d3-8cda-0060b0fc14a3 */         \
00560     0xe64f152a,                                      \
00561     0x9f07,                                          \
00562     0x11d3,                                          \
00563     {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
00564 }
00565 
00566 #define NS_RESURL_CLASSNAME \
00567     "nsResURL"
00568 #define NS_RESURL_CID                    \
00569 { /* ff8fe7ec-2f74-4408-b742-6b7a546029a8 */         \
00570     0xff8fe7ec,                                      \
00571     0x2f74,                                          \
00572     0x4408,                                          \
00573     {0xb7, 0x42, 0x6b, 0x7a, 0x54, 0x60, 0x29, 0xa8} \
00574 }
00575 
00576 
00577 /******************************************************************************
00578  * netwerk/protocol/file/ classes
00579  */
00580 
00581 #define NS_FILEPROTOCOLHANDLER_CLASSNAME \
00582     "nsFileProtocolHandler"
00583 #define NS_FILEPROTOCOLHANDLER_CID                   \
00584 { /* fbc81170-1f69-11d3-9344-00104ba0fd40 */         \
00585     0xfbc81170,                                      \
00586     0x1f69,                                          \
00587     0x11d3,                                          \
00588     {0x93, 0x44, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
00589 }
00590 
00591 /******************************************************************************
00592  * netwerk/protocol/data/ classes
00593  */
00594 
00595 #define NS_DATAPROTOCOLHANDLER_CLASSNAME \
00596     "nsDataProtocolHandler"
00597 #define NS_DATAPROTOCOLHANDLER_CID                   \
00598 { /* {B6ED3030-6183-11d3-A178-0050041CAF44} */       \
00599     0xb6ed3030,                                      \
00600     0x6183,                                          \
00601     0x11d3,                                          \
00602     {0xa1, 0x78, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44} \
00603 }
00604 
00605 /******************************************************************************
00606  * netwerk/protocol/viewsource/ classes
00607  */
00608 
00609 // service implementing nsIProtocolHandler
00610 #define NS_VIEWSOURCEHANDLER_CID                     \
00611 { /* {0x9c7ec5d1-23f9-11d5-aea8-8fcc0793e97f} */     \
00612     0x9c7ec5d1,                                      \
00613     0x23f9,                                          \
00614     0x11d5,                                          \
00615     {0xae, 0xa8, 0x8f, 0xcc, 0x07, 0x93, 0xe9, 0x7f} \
00616 }
00617 
00618 /******************************************************************************
00619  * netwerk/dns/ classes
00620  */
00621 
00622 #define NS_DNSSERVICE_CLASSNAME \
00623     "nsDNSService"
00624 #define NS_DNSSERVICE_CONTRACTID \
00625     "@mozilla.org/network/dns-service;1"
00626 #define NS_DNSSERVICE_CID \
00627 { /* b0ff4572-dae4-4bef-a092-83c1b88f6be9 */         \
00628     0xb0ff4572,                                      \
00629     0xdae4,                                          \
00630     0x4bef,                                          \
00631     {0xa0, 0x92, 0x83, 0xc1, 0xb8, 0x8f, 0x6b, 0xe9} \
00632 }
00633 
00634 #define NS_IDNSERVICE_CLASSNAME \
00635     "nsIDNService"
00636 /* ContractID of the XPCOM package that implements nsIIDNService */
00637 #define NS_IDNSERVICE_CONTRACTID \
00638     "@mozilla.org/network/idn-service;1"
00639 #define NS_IDNSERVICE_CID \
00640 { /* 62b778a6-bce3-456b-8c31-2865fbb68c91 */         \
00641     0x62b778a6,                                      \
00642     0xbce3,                                          \
00643     0x456b,                                          \
00644     {0x8c, 0x31, 0x28, 0x65, 0xfb, 0xb6, 0x8c, 0x91} \
00645 }
00646 
00647 /******************************************************************************
00648  * netwerk/mime classes
00649  */
00650 
00651 #define NS_MIMEHEADERPARAM_CLASSNAME \
00652     "nsMIMEHeaderParamImpl"
00653 // {1F4DBCF7-245C-4c8c-943D-8A1DA0495E8A} 
00654 #define NS_MIMEHEADERPARAM_CID                         \
00655 {   0x1f4dbcf7,                                        \
00656     0x245c,                                            \
00657     0x4c8c,                                            \
00658     { 0x94, 0x3d, 0x8a, 0x1d, 0xa0, 0x49, 0x5e, 0x8a } \
00659 }
00660 
00661 #define NS_MIMEHEADERPARAM_CONTRACTID "@mozilla.org/network/mime-hdrparam;1"
00662 
00663 
00664 /******************************************************************************
00665  * netwerk/socket classes
00666  */
00667 
00668 #define NS_SOCKETPROVIDERSERVICE_CLASSNAME \
00669     "nsSocketProviderService"
00670 #define NS_SOCKETPROVIDERSERVICE_CONTRACTID \
00671     "@mozilla.org/network/socket-provider-service;1"
00672 #define NS_SOCKETPROVIDERSERVICE_CID                   \
00673 { /* ed394ba0-5472-11d3-bbc8-0000861d1237 */           \
00674     0xed394ba0,                                        \
00675     0x5472,                                            \
00676     0x11d3,                                            \
00677     { 0xbb, 0xc8, 0x00, 0x00, 0x86, 0x1d, 0x12, 0x37 } \
00678 }
00679 
00680 #define NS_SOCKSSOCKETPROVIDER_CID                     \
00681 { /* 8dbe7246-1dd2-11b2-9b8f-b9a849e4403a */           \
00682     0x8dbe7246,                                        \
00683     0x1dd2,                                            \
00684     0x11b2,                                            \
00685     { 0x9b, 0x8f, 0xb9, 0xa8, 0x49, 0xe4, 0x40, 0x3a } \
00686 }
00687 
00688 #define NS_SOCKS4SOCKETPROVIDER_CID                    \
00689 { /* F7C9F5F4-4451-41c3-A28A-5BA2447FBACE */           \
00690     0xf7c9f5f4,                                        \
00691     0x4451,                                            \
00692     0x41c3,                                            \
00693     { 0xa2, 0x8a, 0x5b, 0xa2, 0x44, 0x7f, 0xba, 0xce } \
00694 }
00695 
00696 #define NS_SSLSOCKETPROVIDER_CONTRACTID \
00697     NS_NETWORK_SOCKET_CONTRACTID_PREFIX "ssl"
00698 
00699 /* This code produces a normal socket which can be used to initiate the
00700  * STARTTLS protocol by calling its nsISSLSocketControl->StartTLS()
00701  */
00702 #define NS_STARTTLSSOCKETPROVIDER_CONTRACTID \
00703     NS_NETWORK_SOCKET_CONTRACTID_PREFIX "starttls"
00704 
00705 
00706 /******************************************************************************
00707  * netwerk/cookie classes
00708  */
00709 
00710 // service implementing nsICookieManager and nsICookieManager2.
00711 #define NS_COOKIEMANAGER_CLASSNAME \
00712     "CookieManager"
00713 #define NS_COOKIEMANAGER_CONTRACTID \
00714     "@mozilla.org/cookiemanager;1"
00715 #define NS_COOKIEMANAGER_CID                           \
00716 { /* aaab6710-0f2c-11d5-a53b-0010a401eb10 */           \
00717     0xaaab6710,                                        \
00718     0x0f2c,                                            \
00719     0x11d5,                                            \
00720     { 0xa5, 0x3b, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 } \
00721 }
00722 
00723 // service implementing nsICookieService.
00724 #define NS_COOKIESERVICE_CLASSNAME \
00725     "CookieService"
00726 #define NS_COOKIESERVICE_CONTRACTID \
00727     "@mozilla.org/cookieService;1"
00728 #define NS_COOKIESERVICE_CID                           \
00729 { /* c375fa80-150f-11d6-a618-0010a401eb10 */           \
00730     0xc375fa80,                                        \
00731     0x150f,                                            \
00732     0x11d6,                                            \
00733     { 0xa6, 0x18, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 } \
00734 }
00735 
00741 #define NS_GENERIC_CONTENT_SNIFFER \
00742     "@mozilla.org/network/content-sniffer;1"
00743 
00744 /******************************************************************************
00745  * netwerk/streamconv classes
00746  */
00747 
00748 // service implementing nsIStreamConverterService
00749 #define NS_STREAMCONVERTERSERVICE_CID                \
00750 { /* 892FFEB0-3F80-11d3-A16C-0050041CAF44 */         \
00751     0x892ffeb0,                                      \
00752     0x3f80,                                          \
00753     0x11d3,                                          \
00754     {0xa1, 0x6c, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44} \
00755 }
00756 
00757 /******************************************************************************
00758  * netwerk/system classes
00759  */
00760 
00761 // service implementing nsINetworkLinkService
00762 #define NS_NETWORK_LINK_SERVICE_CLASSNAME \
00763     "Network Link Status"
00764 #define NS_NETWORK_LINK_SERVICE_CID                  \
00765 { /* 75a500a2-0030-40f7-86f8-63f225b940ae */         \
00766     0x75a500a2,                                      \
00767     0x0030,                                          \
00768     0x40f7,                                          \
00769     {0x86, 0xf8, 0x63, 0xf2, 0x25, 0xb9, 0x40, 0xae} \
00770 }
00771 
00772 /******************************************************************************
00773  * Contracts that can be implemented by necko users.
00774  */
00775 
00780 #define NS_NETWORK_LINK_SERVICE_CONTRACTID \
00781     "@mozilla.org/network/network-link-service;1"
00782 
00783 /******************************************************************************
00784  * Categories
00785  */
00792 #define NS_CHANNEL_EVENT_SINK_CATEGORY "net-channel-event-sinks"
00793 
00811 #define NS_CONTENT_SNIFFER_CATEGORY "net-content-sniffers"
00812 
00813 #endif // nsNetCID_h__