tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

nsNetCID.h (34500B)


      1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      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/. */
      5 
      6 #ifndef nsNetCID_h__
      7 #define nsNetCID_h__
      8 
      9 /******************************************************************************
     10 * netwerk/base/ classes
     11 */
     12 
     13 // service implementing nsIIOService
     14 #define NS_IOSERVICE_CONTRACTID "@mozilla.org/network/io-service;1"
     15 #define NS_IOSERVICE_CID                      \
     16  {/* 9ac9e770-18bc-11d3-9337-00104ba0fd40 */ \
     17   0x9ac9e770,                                \
     18   0x18bc,                                    \
     19   0x11d3,                                    \
     20   {0x93, 0x37, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40}}
     21 
     22 // service implementing nsINetUtil
     23 #define NS_NETUTIL_CONTRACTID "@mozilla.org/network/util;1"
     24 
     25 // serialization scriptable helper
     26 #define NS_SERIALIZATION_HELPER_CONTRACTID \
     27  "@mozilla.org/network/serialization-helper;1"
     28 #define NS_SERIALIZATION_HELPER_CID           \
     29  {/* D6EF593D-A429-4b14-A887-D9E2F765D9ED */ \
     30   0xd6ef593d,                                \
     31   0xa429,                                    \
     32   0x4b14,                                    \
     33   {0xa8, 0x87, 0xd9, 0xe2, 0xf7, 0x65, 0xd9, 0xed}}
     34 
     35 // service implementing nsIProtocolProxyService and nsPIProtocolProxyService.
     36 #define NS_PROTOCOLPROXYSERVICE_CONTRACTID \
     37  "@mozilla.org/network/protocol-proxy-service;1"
     38 #define NS_PROTOCOLPROXYSERVICE_CID           \
     39  {/* E9B301C0-E0E4-11d3-A1A8-0050041CAF44 */ \
     40   0xe9b301c0,                                \
     41   0xe0e4,                                    \
     42   0x11d3,                                    \
     43   {0xa1, 0xa8, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44}}
     44 
     45 // component implementing nsILoadGroup.
     46 #define NS_LOADGROUP_CONTRACTID "@mozilla.org/network/load-group;1"
     47 #define NS_LOADGROUP_CID                      \
     48  {/* e1c61582-2a84-11d3-8cce-0060b0fc14a3 */ \
     49   0xe1c61582,                                \
     50   0x2a84,                                    \
     51   0x11d3,                                    \
     52   {0x8c, 0xce, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3}}
     53 
     54 // component implementing nsIURI, nsISerializable, and nsIClassInfo.
     55 #define NS_SIMPLEURI_CID                      \
     56  {/* e0da1d70-2f7b-11d3-8cd0-0060b0fc14a3 */ \
     57   0xe0da1d70,                                \
     58   0x2f7b,                                    \
     59   0x11d3,                                    \
     60   {0x8c, 0xd0, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3}}
     61 
     62 // component implementing nsIURI, nsISerializable, and nsIClassInfo.
     63 #define NS_ICONURI_CID                        \
     64  {/* 1460df3b-774c-4205-8349-838e507c3ef9 */ \
     65   0x1460df3b,                                \
     66   0x774c,                                    \
     67   0x4205,                                    \
     68   {0x83, 0x49, 0x83, 0x8e, 0x50, 0x7c, 0x3e, 0xf9}}
     69 
     70 #define NS_SIMPLEURIMUTATOR_CONTRACTID \
     71  "@mozilla.org/network/simple-uri-mutator;1"
     72 #define NS_SIMPLEURIMUTATOR_CID               \
     73  {/* 2be14592-28d4-4a83-8fe9-08e778849f6e */ \
     74   0x2be14592,                                \
     75   0x28d4,                                    \
     76   0x4a83,                                    \
     77   {0x8f, 0xe9, 0x08, 0xe7, 0x78, 0x84, 0x9f, 0x6e}}
     78 
     79 // component inheriting from the simple URI component and also
     80 // implementing nsINestedURI.
     81 #define NS_SIMPLENESTEDURI_CID                \
     82  {/* 56388dad-287b-4240-a785-85c394012503 */ \
     83   0x56388dad,                                \
     84   0x287b,                                    \
     85   0x4240,                                    \
     86   {0xa7, 0x85, 0x85, 0xc3, 0x94, 0x01, 0x25, 0x03}}
     87 
     88 #define NS_SIMPLENESTEDURIMUTATOR_CID         \
     89  {/* 9c4e9d49-ce64-4ca3-acef-3075c5e5aba7 */ \
     90   0x9c4e9d49,                                \
     91   0xce64,                                    \
     92   0x4ca3,                                    \
     93   {0xac, 0xef, 0x30, 0x75, 0xc5, 0xe5, 0xab, 0xa7}}
     94 
     95 // component inheriting from the nested simple URI component and also
     96 // carrying along its base URI
     97 #define NS_NESTEDABOUTURI_CID                 \
     98  {/* 2f277c00-0eaf-4ddb-b936-41326ba48aae */ \
     99   0x2f277c00,                                \
    100   0x0eaf,                                    \
    101   0x4ddb,                                    \
    102   {0xb9, 0x36, 0x41, 0x32, 0x6b, 0xa4, 0x8a, 0xae}}
    103 
    104 #define NS_NESTEDABOUTURIMUTATOR_CID          \
    105  {/* b0054ef3-b096-483d-8242-4ee36b7b2115 */ \
    106   0xb0054ef3,                                \
    107   0xb096,                                    \
    108   0x483d,                                    \
    109   {0x82, 0x42, 0x4e, 0xe3, 0x6b, 0x7b, 0x21, 0x15}}
    110 
    111 // component implementing nsIStandardURL, nsIURI, nsIURL, nsISerializable,
    112 // and nsIClassInfo.
    113 #define NS_STANDARDURL_CID                    \
    114  {/* de9472d0-8034-11d3-9399-00104ba0fd40 */ \
    115   0xde9472d0,                                \
    116   0x8034,                                    \
    117   0x11d3,                                    \
    118   {0x93, 0x99, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40}}
    119 
    120 #define NS_STANDARDURLMUTATOR_CONTRACTID \
    121  "@mozilla.org/network/standard-url-mutator;1"
    122 #define NS_STANDARDURLMUTATOR_CID             \
    123  {/* ce7d7da0-fb28-44a3-8c7b-000c165918f4 */ \
    124   0xce7d7da0,                                \
    125   0xfb28,                                    \
    126   0x44a3,                                    \
    127   {0x8c, 0x7b, 0x00, 0x0c, 0x16, 0x59, 0x18, 0xf4}}
    128 
    129 // service implementing nsIURLParser that assumes the URL will NOT contain an
    130 // authority section.
    131 #define NS_NOAUTHURLPARSER_CONTRACTID \
    132  "@mozilla.org/network/url-parser;1?auth=no"
    133 #define NS_NOAUTHURLPARSER_CID                \
    134  {/* 78804a84-8173-42b6-bb94-789f0816a810 */ \
    135   0x78804a84,                                \
    136   0x8173,                                    \
    137   0x42b6,                                    \
    138   {0xbb, 0x94, 0x78, 0x9f, 0x08, 0x16, 0xa8, 0x10}}
    139 
    140 // service implementing nsIURLParser that assumes the URL will contain an
    141 // authority section.
    142 #define NS_AUTHURLPARSER_CONTRACTID "@mozilla.org/network/url-parser;1?auth=yes"
    143 #define NS_AUTHURLPARSER_CID                  \
    144  {/* 275d800e-3f60-4896-adb7-d7f390ce0e42 */ \
    145   0x275d800e,                                \
    146   0x3f60,                                    \
    147   0x4896,                                    \
    148   {0xad, 0xb7, 0xd7, 0xf3, 0x90, 0xce, 0x0e, 0x42}}
    149 
    150 // service implementing nsIURLParser that does not make any assumptions about
    151 // whether or not the URL contains an authority section.
    152 #define NS_STDURLPARSER_CONTRACTID \
    153  "@mozilla.org/network/url-parser;1?auth=maybe"
    154 #define NS_STDURLPARSER_CID                   \
    155  {/* ff41913b-546a-4bff-9201-dc9b2c032eba */ \
    156   0xff41913b,                                \
    157   0x546a,                                    \
    158   0x4bff,                                    \
    159   {0x92, 0x01, 0xdc, 0x9b, 0x2c, 0x03, 0x2e, 0xba}}
    160 
    161 // component implementing nsISimpleStreamListener.
    162 #define NS_SIMPLESTREAMLISTENER_CONTRACTID \
    163  "@mozilla.org/network/simple-stream-listener;1"
    164 #define NS_SIMPLESTREAMLISTENER_CID           \
    165  {/* fb8cbf4e-4701-4ba1-b1d6-5388e041fb67 */ \
    166   0xfb8cbf4e,                                \
    167   0x4701,                                    \
    168   0x4ba1,                                    \
    169   {0xb1, 0xd6, 0x53, 0x88, 0xe0, 0x41, 0xfb, 0x67}}
    170 
    171 // component implementing nsIStreamListenerTee.
    172 #define NS_STREAMLISTENERTEE_CONTRACTID \
    173  "@mozilla.org/network/stream-listener-tee;1"
    174 #define NS_STREAMLISTENERTEE_CID              \
    175  {/* 831f8f13-7aa8-485f-b02e-77c881cc5773 */ \
    176   0x831f8f13,                                \
    177   0x7aa8,                                    \
    178   0x485f,                                    \
    179   {0xb0, 0x2e, 0x77, 0xc8, 0x81, 0xcc, 0x57, 0x73}}
    180 
    181 // component implementing nsIAsyncStreamCopier.
    182 #define NS_ASYNCSTREAMCOPIER_CONTRACTID \
    183  "@mozilla.org/network/async-stream-copier;1"
    184 #define NS_ASYNCSTREAMCOPIER_CID              \
    185  {/* e746a8b1-c97a-4fc5-baa4-66607521bd08 */ \
    186   0xe746a8b1,                                \
    187   0xc97a,                                    \
    188   0x4fc5,                                    \
    189   {0xba, 0xa4, 0x66, 0x60, 0x75, 0x21, 0xbd, 0x08}}
    190 
    191 // component implementing nsIInputStreamPump.
    192 #define NS_INPUTSTREAMPUMP_CONTRACTID "@mozilla.org/network/input-stream-pump;1"
    193 #define NS_INPUTSTREAMPUMP_CID                \
    194  {/* ccd0e960-7947-4635-b70e-4c661b63d675 */ \
    195   0xccd0e960,                                \
    196   0x7947,                                    \
    197   0x4635,                                    \
    198   {0xb7, 0x0e, 0x4c, 0x66, 0x1b, 0x63, 0xd6, 0x75}}
    199 
    200 // component implementing nsIInputStreamChannel.
    201 #define NS_INPUTSTREAMCHANNEL_CONTRACTID \
    202  "@mozilla.org/network/input-stream-channel;1"
    203 #define NS_INPUTSTREAMCHANNEL_CID             \
    204  {/* 6ddb050c-0d04-11d4-986e-00c04fa0cf4a */ \
    205   0x6ddb050c,                                \
    206   0x0d04,                                    \
    207   0x11d4,                                    \
    208   {0x98, 0x6e, 0x00, 0xc0, 0x4f, 0xa0, 0xcf, 0x4a}}
    209 
    210 // component implementing nsIStreamLoader.
    211 #define NS_STREAMLOADER_CONTRACTID "@mozilla.org/network/stream-loader;1"
    212 #define NS_STREAMLOADER_CID                   \
    213  {/* 9879908a-2972-40c0-890b-a91dd7dfb954 */ \
    214   0x9879908a,                                \
    215   0x2972,                                    \
    216   0x40c0,                                    \
    217   {0x89, 0x0b, 0xa9, 0x1d, 0xd7, 0xdf, 0xb9, 0x54}}
    218 
    219 // component implementing nsIStreamLoader.
    220 #define NS_INCREMENTALSTREAMLOADER_CONTRACTID \
    221  "@mozilla.org/network/incremental-stream-loader;1"
    222 #define NS_INCREMENTALSTREAMLOADER_CID        \
    223  {/* 5d6352a3-b9c3-4fa3-87aa-b2a3c6e5a501 */ \
    224   0x5d6352a3,                                \
    225   0xb9c3,                                    \
    226   0x4fa3,                                    \
    227   {0x87, 0xaa, 0xb2, 0xa3, 0xc6, 0xe5, 0xa5, 0x01}}
    228 
    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}}
    238 
    239 // component implementing nsIDownloader.
    240 #define NS_DOWNLOADER_CONTRACTID "@mozilla.org/network/downloader;1"
    241 #define NS_DOWNLOADER_CID                     \
    242  {/* 510a86bb-6019-4ed1-bb4f-965cffd23ece */ \
    243   0x510a86bb,                                \
    244   0x6019,                                    \
    245   0x4ed1,                                    \
    246   {0xbb, 0x4f, 0x96, 0x5c, 0xff, 0xd2, 0x3e, 0xce}}
    247 
    248 // component implementing nsIBackgroundFileSaver and
    249 // nsIOutputStream.
    250 #define NS_BACKGROUNDFILESAVEROUTPUTSTREAM_CONTRACTID \
    251  "@mozilla.org/network/background-file-saver;1?mode=outputstream"
    252 #define NS_BACKGROUNDFILESAVEROUTPUTSTREAM_CID \
    253  {/* 62147d1e-ef6a-40e8-aaf8-d039f5caaa81 */  \
    254   0x62147d1e,                                 \
    255   0xef6a,                                     \
    256   0x40e8,                                     \
    257   {0xaa, 0xf8, 0xd0, 0x39, 0xf5, 0xca, 0xaa, 0x81}}
    258 
    259 // component implementing nsIBackgroundFileSaver and
    260 // nsIStreamListener.
    261 #define NS_BACKGROUNDFILESAVERSTREAMLISTENER_CONTRACTID \
    262  "@mozilla.org/network/background-file-saver;1?mode=streamlistener"
    263 #define NS_BACKGROUNDFILESAVERSTREAMLISTENER_CID \
    264  {/* 208de7fc-a781-4031-bbae-cc0de539f61a */    \
    265   0x208de7fc,                                   \
    266   0xa781,                                       \
    267   0x4031,                                       \
    268   {0xbb, 0xae, 0xcc, 0x0d, 0xe5, 0x39, 0xf6, 0x1a}}
    269 
    270 // component implementing nsIIncrementalDownload.
    271 #define NS_INCREMENTALDOWNLOAD_CONTRACTID \
    272  "@mozilla.org/network/incremental-download;1"
    273 
    274 // component implementing nsISystemProxySettings.
    275 #define NS_SYSTEMPROXYSETTINGS_CONTRACTID "@mozilla.org/system-proxy-settings;1"
    276 
    277 // component implementing nsIDHCPClient.
    278 #define NS_DHCPCLIENT_CONTRACTID "@mozilla.org/dhcp-client;1"
    279 
    280 // service implementing nsIStreamTransportService
    281 #define NS_STREAMTRANSPORTSERVICE_CONTRACTID \
    282  "@mozilla.org/network/stream-transport-service;1"
    283 #define NS_STREAMTRANSPORTSERVICE_CID         \
    284  {/* 0885d4f8-f7b8-4cda-902e-94ba38bc256e */ \
    285   0x0885d4f8,                                \
    286   0xf7b8,                                    \
    287   0x4cda,                                    \
    288   {0x90, 0x2e, 0x94, 0xba, 0x38, 0xbc, 0x25, 0x6e}}
    289 
    290 // service implementing nsISocketTransportService
    291 #define NS_SOCKETTRANSPORTSERVICE_CONTRACTID \
    292  "@mozilla.org/network/socket-transport-service;1"
    293 #define NS_SOCKETTRANSPORTSERVICE_CID         \
    294  {/* ad56b25f-e6bb-4db3-9f7b-5b7db33fd2b1 */ \
    295   0xad56b25f,                                \
    296   0xe6bb,                                    \
    297   0x4db3,                                    \
    298   {0x9f, 0x7b, 0x5b, 0x7d, 0xb3, 0x3f, 0xd2, 0xb1}}
    299 
    300 // component implementing nsIServerSocket
    301 #define NS_SERVERSOCKET_CONTRACTID "@mozilla.org/network/server-socket;1"
    302 #define NS_SERVERSOCKET_CID                   \
    303  {/* 2ec62893-3b35-48fa-ab1d-5e68a9f45f08 */ \
    304   0x2ec62893,                                \
    305   0x3b35,                                    \
    306   0x48fa,                                    \
    307   {0xab, 0x1d, 0x5e, 0x68, 0xa9, 0xf4, 0x5f, 0x08}}
    308 
    309 // component implementing nsITLSServerSocket
    310 #define NS_TLSSERVERSOCKET_CONTRACTID "@mozilla.org/network/tls-server-socket;1"
    311 #define NS_TLSSERVERSOCKET_CID                \
    312  {/* 1813cbb4-c98e-4622-8c7d-839167f3f272 */ \
    313   0x1813cbb4,                                \
    314   0xc98e,                                    \
    315   0x4622,                                    \
    316   {0x8c, 0x7d, 0x83, 0x91, 0x67, 0xf3, 0xf2, 0x72}}
    317 
    318 // component implementing nsIUDPSocket
    319 #define NS_UDPSOCKET_CONTRACTID "@mozilla.org/network/udp-socket;1"
    320 #define NS_UDPSOCKET_CID                      \
    321  {/* c9f74572-7b8e-4fec-bb4a-03c0d3021bd6 */ \
    322   0xc9f74572,                                \
    323   0x7b8e,                                    \
    324   0x4fec,                                    \
    325   {0xbb, 0x4a, 0x03, 0xc0, 0xd3, 0x02, 0x1b, 0xd6}}
    326 
    327 #define NS_LOCALFILEINPUTSTREAM_CONTRACTID \
    328  "@mozilla.org/network/file-input-stream;1"
    329 #define NS_LOCALFILEINPUTSTREAM_CID           \
    330  {/* be9a53ae-c7e9-11d3-8cda-0060b0fc14a3 */ \
    331   0xbe9a53ae,                                \
    332   0xc7e9,                                    \
    333   0x11d3,                                    \
    334   {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3}}
    335 
    336 #define NS_LOCALFILEOUTPUTSTREAM_CONTRACTID \
    337  "@mozilla.org/network/file-output-stream;1"
    338 #define NS_LOCALFILEOUTPUTSTREAM_CID          \
    339  {/* c272fee0-c7e9-11d3-8cda-0060b0fc14a3 */ \
    340   0xc272fee0,                                \
    341   0xc7e9,                                    \
    342   0x11d3,                                    \
    343   {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3}}
    344 
    345 #define NS_LOCALFILERANDOMACCESSSTREAM_CONTRACTID \
    346  "@mozilla.org/network/file-random-access-stream;1"
    347 #define NS_LOCALFILERANDOMACCESSSTREAM_CID    \
    348  {/* 648705e9-757a-4d4b-a5bF-0248e512c309 */ \
    349   0x648705e9,                                \
    350   0x757a,                                    \
    351   0x4d4b,                                    \
    352   {0xa5, 0xbF, 0x02, 0x48, 0xe5, 0x12, 0xc3, 0x09}}
    353 
    354 #define NS_BUFFEREDINPUTSTREAM_CONTRACTID \
    355  "@mozilla.org/network/buffered-input-stream;1"
    356 #define NS_BUFFEREDINPUTSTREAM_CID            \
    357  {/* 9226888e-da08-11d3-8cda-0060b0fc14a3 */ \
    358   0x9226888e,                                \
    359   0xda08,                                    \
    360   0x11d3,                                    \
    361   {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3}}
    362 
    363 #define NS_BUFFEREDOUTPUTSTREAM_CONTRACTID \
    364  "@mozilla.org/network/buffered-output-stream;1"
    365 #define NS_BUFFEREDOUTPUTSTREAM_CID           \
    366  {/* 9868b4ce-da08-11d3-8cda-0060b0fc14a3 */ \
    367   0x9868b4ce,                                \
    368   0xda08,                                    \
    369   0x11d3,                                    \
    370   {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3}}
    371 
    372 // components implementing nsISafeOutputStream
    373 #define NS_ATOMICLOCALFILEOUTPUTSTREAM_CONTRACTID \
    374  "@mozilla.org/network/atomic-file-output-stream;1"
    375 #define NS_ATOMICLOCALFILEOUTPUTSTREAM_CID    \
    376  {/* 6EAE857E-4BA9-11E3-9B39-B4036188709B */ \
    377   0x6EAE857E,                                \
    378   0x4BA9,                                    \
    379   0x11E3,                                    \
    380   {0x9b, 0x39, 0xb4, 0x03, 0x61, 0x88, 0x70, 0x9b}}
    381 
    382 #define NS_SAFELOCALFILEOUTPUTSTREAM_CONTRACTID \
    383  "@mozilla.org/network/safe-file-output-stream;1"
    384 #define NS_SAFELOCALFILEOUTPUTSTREAM_CID      \
    385  {/* a181af0d-68b8-4308-94db-d4f859058215 */ \
    386   0xa181af0d,                                \
    387   0x68b8,                                    \
    388   0x4308,                                    \
    389   {0x94, 0xdb, 0xd4, 0xf8, 0x59, 0x05, 0x82, 0x15}}
    390 
    391 /**
    392 * Contract ID for a service implementing nsIURIClassifier that identifies
    393 * phishing and malware sites.
    394 */
    395 #define NS_URICLASSIFIERSERVICE_CONTRACTID "@mozilla.org/uriclassifierservice"
    396 
    397 // captive portal service implementing nsICaptivePortalService
    398 #define NS_CAPTIVEPORTAL_CONTRACTID \
    399  "@mozilla.org/network/captive-portal-service;1"
    400 #define NS_CAPTIVEPORTAL_CID                  \
    401  {/* bdbe0555-fc3d-4f7b-9205-c309ceb2d641 */ \
    402   0xbdbe0555,                                \
    403   0xfc3d,                                    \
    404   0x4f7b,                                    \
    405   {0x92, 0x05, 0xc3, 0x09, 0xce, 0xb2, 0xd6, 0x41}}
    406 
    407 #define NS_NETWORKCONNECTIVITYSERVICE_CONTRACTID \
    408  "@mozilla.org/network/network-connectivity-service;1"
    409 #define NS_NETWORKCONNECTIVITYSERVICE_CID     \
    410  {/* 2693457e-3ba5-4455-991f-5350946adb12 */ \
    411   0x2693457e,                                \
    412   0x3ba5,                                    \
    413   0x4455,                                    \
    414   {0x99, 0x1f, 0x53, 0x50, 0x94, 0x6a, 0xdb, 0x12}}
    415 
    416 /******************************************************************************
    417 * netwerk/cache2/ classes
    418 */
    419 
    420 // service implementing nsICacheService.
    421 #define NS_CACHESERVICE_CONTRACTID "@mozilla.org/network/cache-service;1"
    422 #define NS_CACHESERVICE_CID                   \
    423  {/* 6c84aec9-29a5-4264-8fbc-bee8f922ea67 */ \
    424   0x6c84aec9,                                \
    425   0x29a5,                                    \
    426   0x4264,                                    \
    427   {0x8f, 0xbc, 0xbe, 0xe8, 0xf9, 0x22, 0xea, 0x67}}
    428 
    429 /******************************************************************************
    430 * netwerk/protocol/http/ classes
    431 */
    432 
    433 #define NS_HTTPPROTOCOLHANDLER_CID            \
    434  {/* 4f47e42e-4d23-4dd3-bfda-eb29255e9ea3 */ \
    435   0x4f47e42e,                                \
    436   0x4d23,                                    \
    437   0x4dd3,                                    \
    438   {0xbf, 0xda, 0xeb, 0x29, 0x25, 0x5e, 0x9e, 0xa3}}
    439 
    440 #define NS_HTTPSPROTOCOLHANDLER_CID           \
    441  {/* dccbe7e4-7750-466b-a557-5ea36c8ff24e */ \
    442   0xdccbe7e4,                                \
    443   0x7750,                                    \
    444   0x466b,                                    \
    445   {0xa5, 0x57, 0x5e, 0xa3, 0x6c, 0x8f, 0xf2, 0x4e}}
    446 
    447 #define NS_HTTPBASICAUTH_CID                  \
    448  {/* fca3766a-434a-4ae7-83cf-0909e18a093a */ \
    449   0xfca3766a,                                \
    450   0x434a,                                    \
    451   0x4ae7,                                    \
    452   {0x83, 0xcf, 0x09, 0x09, 0xe1, 0x8a, 0x09, 0x3a}}
    453 
    454 #define NS_HTTPDIGESTAUTH_CID                 \
    455  {/* 17491ba4-1dd2-11b2-aae3-de6b92dab620 */ \
    456   0x17491ba4,                                \
    457   0x1dd2,                                    \
    458   0x11b2,                                    \
    459   {0xaa, 0xe3, 0xde, 0x6b, 0x92, 0xda, 0xb6, 0x20}}
    460 
    461 #define NS_HTTPNTLMAUTH_CID                   \
    462  {/* bbef8185-c628-4cc1-b53e-e61e74c2451a */ \
    463   0xbbef8185,                                \
    464   0xc628,                                    \
    465   0x4cc1,                                    \
    466   {0xb5, 0x3e, 0xe6, 0x1e, 0x74, 0xc2, 0x45, 0x1a}}
    467 
    468 #define NS_HTTPAUTHMANAGER_CONTRACTID "@mozilla.org/network/http-auth-manager;1"
    469 #define NS_HTTPAUTHMANAGER_CID                \
    470  {/* 36b63ef3-e0fa-4c49-9fd4-e065e85568f4 */ \
    471   0x36b63ef3,                                \
    472   0xe0fa,                                    \
    473   0x4c49,                                    \
    474   {0x9f, 0xd4, 0xe0, 0x65, 0xe8, 0x55, 0x68, 0xf4}}
    475 
    476 #define NS_HTTPACTIVITYDISTRIBUTOR_CONTRACTID \
    477  "@mozilla.org/network/http-activity-distributor;1"
    478 #define NS_HTTPACTIVITYDISTRIBUTOR_CID        \
    479  {/* 15629ada-a41c-4a09-961f-6553cd60b1a2 */ \
    480   0x15629ada,                                \
    481   0xa41c,                                    \
    482   0x4a09,                                    \
    483   {0x96, 0x1f, 0x65, 0x53, 0xcd, 0x60, 0xb1, 0xa2}}
    484 
    485 #define NS_THROTTLEQUEUE_CONTRACTID "@mozilla.org/network/throttlequeue;1"
    486 #define NS_THROTTLEQUEUE_CID                  \
    487  {/* 4c39159c-cd90-4dd3-97a7-06af5e6d84c4 */ \
    488   0x4c39159c,                                \
    489   0xcd90,                                    \
    490   0x4dd3,                                    \
    491   {0x97, 0xa7, 0x06, 0xaf, 0x5e, 0x6d, 0x84, 0xc4}}
    492 
    493 /******************************************************************************
    494 * netwerk/protocol/res/ classes
    495 */
    496 
    497 #define NS_RESPROTOCOLHANDLER_CID             \
    498  {/* e64f152a-9f07-11d3-8cda-0060b0fc14a3 */ \
    499   0xe64f152a,                                \
    500   0x9f07,                                    \
    501   0x11d3,                                    \
    502   {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3}}
    503 
    504 #define NS_EXTENSIONPROTOCOLHANDLER_CID       \
    505  {/* aea16cd0-f020-4138-b068-0716c4a15b5a */ \
    506   0xaea16cd0,                                \
    507   0xf020,                                    \
    508   0x4138,                                    \
    509   {0xb0, 0x68, 0x07, 0x16, 0xc4, 0xa1, 0x5b, 0x5a}}
    510 
    511 #define NS_SUBSTITUTINGURL_CID \
    512  {0xdea9657c, 0x18cf, 0x4984, {0xbd, 0xe9, 0xcc, 0xef, 0x5d, 0x8a, 0xb4, 0x73}}
    513 
    514 #define NS_SUBSTITUTINGURLMUTATOR_CID \
    515  {0xb3cfeb91, 0x332a, 0x46c9, {0xad, 0x97, 0x93, 0xff, 0x39, 0x84, 0x14, 0x94}}
    516 
    517 #define NS_SUBSTITUTINGJARURI_CID             \
    518  {/* 50d50ddf-f16a-4652-8705-936b19c3763b */ \
    519   0x50d50ddf,                                \
    520   0xf16a,                                    \
    521   0x4652,                                    \
    522   {0x87, 0x05, 0x93, 0x6b, 0x19, 0xc3, 0x76, 0x3b}}
    523 
    524 /******************************************************************************
    525 * netwerk/protocol/file/ classes
    526 */
    527 
    528 #define NS_FILEPROTOCOLHANDLER_CID            \
    529  {/* fbc81170-1f69-11d3-9344-00104ba0fd40 */ \
    530   0xfbc81170,                                \
    531   0x1f69,                                    \
    532   0x11d3,                                    \
    533   {0x93, 0x44, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40}}
    534 
    535 /******************************************************************************
    536 * netwerk/protocol/data/ classes
    537 */
    538 
    539 #define NS_DATAPROTOCOLHANDLER_CID              \
    540  {/* {B6ED3030-6183-11d3-A178-0050041CAF44} */ \
    541   0xb6ed3030,                                  \
    542   0x6183,                                      \
    543   0x11d3,                                      \
    544   {0xa1, 0x78, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44}}
    545 
    546 /******************************************************************************
    547 * netwerk/protocol/viewsource/ classes
    548 */
    549 
    550 // service implementing nsIProtocolHandler
    551 #define NS_VIEWSOURCEHANDLER_CID                  \
    552  {/* {0x9c7ec5d1-23f9-11d5-aea8-8fcc0793e97f} */ \
    553   0x9c7ec5d1,                                    \
    554   0x23f9,                                        \
    555   0x11d5,                                        \
    556   {0xae, 0xa8, 0x8f, 0xcc, 0x07, 0x93, 0xe9, 0x7f}}
    557 
    558 /******************************************************************************
    559 * netwerk/protocol/websocket/ classes
    560 */
    561 
    562 #define NS_WEBSOCKETPROTOCOLHANDLER_CID         \
    563  {/* {dc01db59-a513-4c90-824b-085cce06c0aa} */ \
    564   0xdc01db59,                                  \
    565   0xa513,                                      \
    566   0x4c90,                                      \
    567   {0x82, 0x4b, 0x08, 0x5c, 0xce, 0x06, 0xc0, 0xaa}}
    568 
    569 #define NS_WEBSOCKETSSLPROTOCOLHANDLER_CID      \
    570  {/* {dc01dbbb-a5bb-4cbb-82bb-085cce06c0bb} */ \
    571   0xdc01dbbb,                                  \
    572   0xa5bb,                                      \
    573   0x4cbb,                                      \
    574   {0x82, 0xbb, 0x08, 0x5c, 0xce, 0x06, 0xc0, 0xbb}}
    575 
    576 /******************************************************************************
    577 * netwerk/protocol/about/ classes
    578 */
    579 
    580 #define NS_ABOUTPROTOCOLHANDLER_CID           \
    581  {/* 9e3b6c90-2f75-11d3-8cd0-0060b0fc14a3 */ \
    582   0x9e3b6c90,                                \
    583   0x2f75,                                    \
    584   0x11d3,                                    \
    585   {0x8c, 0xd0, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3}}
    586 
    587 #define NS_SAFEABOUTPROTOCOLHANDLER_CID       \
    588  {/* 1423e739-782c-4081-b5d8-fe6fba68c0ef */ \
    589   0x1423e739,                                \
    590   0x782c,                                    \
    591   0x4081,                                    \
    592   {0xb5, 0xd8, 0xfe, 0x6f, 0xba, 0x68, 0xc0, 0xef}}
    593 
    594 /******************************************************************************
    595 * netwerk/dns/ classes
    596 */
    597 
    598 #define NS_DNSSERVICE_CONTRACTID "@mozilla.org/network/dns-service;1"
    599 #define NS_DNSSERVICE_CID                     \
    600  {/* b0ff4572-dae4-4bef-a092-83c1b88f6be9 */ \
    601   0xb0ff4572,                                \
    602   0xdae4,                                    \
    603   0x4bef,                                    \
    604   {0xa0, 0x92, 0x83, 0xc1, 0xb8, 0x8f, 0x6b, 0xe9}}
    605 
    606 /* ContractID of the XPCOM package that implements nsIIDNService */
    607 #define NS_IDNSERVICE_CONTRACTID "@mozilla.org/network/idn-service;1"
    608 #define NS_IDNSERVICE_CID                     \
    609  {/* 62b778a6-bce3-456b-8c31-2865fbb68c91 */ \
    610   0x62b778a6,                                \
    611   0xbce3,                                    \
    612   0x456b,                                    \
    613   {0x8c, 0x31, 0x28, 0x65, 0xfb, 0xb6, 0x8c, 0x91}}
    614 
    615 #define NS_EFFECTIVETLDSERVICE_CONTRACTID \
    616  "@mozilla.org/network/effective-tld-service;1"
    617 #define NS_EFFECTIVETLDSERVICE_CID            \
    618  {/* cb9abbae-66b6-4609-8594-5c4ff300888e */ \
    619   0xcb9abbae,                                \
    620   0x66b6,                                    \
    621   0x4609,                                    \
    622   {0x85, 0x94, 0x5c, 0x4f, 0xf3, 0x00, 0x88, 0x8e}}
    623 
    624 /******************************************************************************
    625 * netwerk/mime classes
    626 */
    627 
    628 // {1F4DBCF7-245C-4c8c-943D-8A1DA0495E8A}
    629 #define NS_MIMEHEADERPARAM_CID \
    630  {0x1f4dbcf7, 0x245c, 0x4c8c, {0x94, 0x3d, 0x8a, 0x1d, 0xa0, 0x49, 0x5e, 0x8a}}
    631 
    632 #define NS_MIMEHEADERPARAM_CONTRACTID "@mozilla.org/network/mime-hdrparam;1"
    633 
    634 /******************************************************************************
    635 * netwerk/socket classes
    636 */
    637 
    638 #define NS_SOCKSSOCKETPROVIDER_CID            \
    639  {/* 8dbe7246-1dd2-11b2-9b8f-b9a849e4403a */ \
    640   0x8dbe7246,                                \
    641   0x1dd2,                                    \
    642   0x11b2,                                    \
    643   {0x9b, 0x8f, 0xb9, 0xa8, 0x49, 0xe4, 0x40, 0x3a}}
    644 
    645 #define NS_SOCKS4SOCKETPROVIDER_CID           \
    646  {/* F7C9F5F4-4451-41c3-A28A-5BA2447FBACE */ \
    647   0xf7c9f5f4,                                \
    648   0x4451,                                    \
    649   0x41c3,                                    \
    650   {0xa2, 0x8a, 0x5b, 0xa2, 0x44, 0x7f, 0xba, 0xce}}
    651 
    652 #define NS_UDPSOCKETPROVIDER_CID              \
    653  {/* 320706D2-2E81-42c6-89C3-8D83B17D3FB4 */ \
    654   0x320706d2,                                \
    655   0x2e81,                                    \
    656   0x42c6,                                    \
    657   {0x89, 0xc3, 0x8d, 0x83, 0xb1, 0x7d, 0x3f, 0xb4}}
    658 
    659 #define NS_DASHBOARD_CONTRACTID "@mozilla.org/network/dashboard;1"
    660 #define NS_DASHBOARD_CID                     \
    661  {/*c79eb3c6-091a-45a6-8544-5a8d1ab79537 */ \
    662   0xc79eb3c6,                               \
    663   0x091a,                                   \
    664   0x45a6,                                   \
    665   {0x85, 0x44, 0x5a, 0x8d, 0x1a, 0xb7, 0x95, 0x37}}
    666 
    667 /******************************************************************************
    668 * netwerk/cookie classes
    669 */
    670 
    671 // service implementing nsICookieManager
    672 #define NS_COOKIEMANAGER_CONTRACTID "@mozilla.org/cookiemanager;1"
    673 #define NS_COOKIEMANAGER_CID                  \
    674  {/* aaab6710-0f2c-11d5-a53b-0010a401eb10 */ \
    675   0xaaab6710,                                \
    676   0x0f2c,                                    \
    677   0x11d5,                                    \
    678   {0xa5, 0x3b, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10}}
    679 
    680 // service implementing nsICookieService.
    681 #define NS_COOKIESERVICE_CONTRACTID "@mozilla.org/cookieService;1"
    682 #define NS_COOKIESERVICE_CID                  \
    683  {/* c375fa80-150f-11d6-a618-0010a401eb10 */ \
    684   0xc375fa80,                                \
    685   0x150f,                                    \
    686   0x11d6,                                    \
    687   {0xa6, 0x18, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10}}
    688 
    689 /******************************************************************************
    690 * netwerk/wifi classes
    691 */
    692 #ifdef NECKO_WIFI
    693 #  define NS_WIFI_MONITOR_CONTRACTID "@mozilla.org/wifi/monitor;1"
    694 
    695 #  define NS_WIFI_MONITOR_COMPONENT_CID \
    696    {0x3FF8FB9F,                        \
    697     0xEE63,                            \
    698     0x48DF,                            \
    699     {0x89, 0xF0, 0xDA, 0xCE, 0x02, 0x42, 0xFD, 0x82}}
    700 #endif
    701 
    702 /******************************************************************************
    703 * netwerk/streamconv classes
    704 */
    705 
    706 // service implementing nsIStreamConverterService
    707 #define NS_STREAMCONVERTERSERVICE_CONTRACTID "@mozilla.org/streamConverters;1"
    708 #define NS_STREAMCONVERTERSERVICE_CID         \
    709  {/* 892FFEB0-3F80-11d3-A16C-0050041CAF44 */ \
    710   0x892ffeb0,                                \
    711   0x3f80,                                    \
    712   0x11d3,                                    \
    713   {0xa1, 0x6c, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44}}
    714 
    715 /**
    716 * Detector that can act as either an nsIStreamConverter or an
    717 * nsIContentSniffer to decide whether text/plain data is "really" text/plain
    718 * or APPLICATION_GUESS_FROM_EXT.  Use with CreateInstance.
    719 */
    720 #define NS_BINARYDETECTOR_CONTRACTID "@mozilla.org/network/binary-detector;1"
    721 
    722 /******************************************************************************
    723 * netwerk/system classes
    724 */
    725 
    726 // service implementing nsINetworkLinkService
    727 #define NS_NETWORK_LINK_SERVICE_CID \
    728  {0x75a500a2, 0x0030, 0x40f7, {0x86, 0xf8, 0x63, 0xf2, 0x25, 0xb9, 0x40, 0xae}}
    729 
    730 /******************************************************************************
    731 * Contracts that can be implemented by necko users.
    732 */
    733 
    734 /**
    735 * This contract ID will be gotten as a service implementing
    736 * nsINetworkLinkService and monitored by IOService for automatic online/offline
    737 * management.
    738 *
    739 * Must implement nsINetworkLinkService
    740 */
    741 #define NS_NETWORK_LINK_SERVICE_CONTRACTID \
    742  "@mozilla.org/network/network-link-service;1"
    743 
    744 /**
    745 * This contract ID is used when Necko needs to wrap an nsIAuthPrompt as
    746 * nsIAuthPrompt2. Implementing it is required for backwards compatibility
    747 * with Versions before 1.9.
    748 *
    749 * Must implement nsIAuthPromptAdapterFactory
    750 */
    751 #define NS_AUTHPROMPT_ADAPTER_FACTORY_CONTRACTID \
    752  "@mozilla.org/network/authprompt-adapter-factory;1"
    753 
    754 /**
    755 * Must implement nsICryptoHash.
    756 */
    757 #define NS_CRYPTO_HASH_CONTRACTID "@mozilla.org/security/hash;1"
    758 
    759 /******************************************************************************
    760 * Categories
    761 */
    762 /**
    763 * Services registered in this category will get notified via
    764 * nsIChannelEventSink about all redirects that happen and have the opportunity
    765 * to veto them. The value of the category entries is interpreted as the
    766 * contract ID of the service.
    767 */
    768 #define NS_CHANNEL_EVENT_SINK_CATEGORY "net-channel-event-sinks"
    769 
    770 /**
    771 * Services in this category will get told about each load that happens and get
    772 * the opportunity to override the detected MIME type via nsIContentSniffer.
    773 * Services should not set the MIME type on the channel directly, but return the
    774 * new type. If getMIMETypeFromContent throws an exception, the type will remain
    775 * unchanged.
    776 *
    777 * Note that only channels with the LOAD_CALL_CONTENT_SNIFFERS flag will call
    778 * content sniffers. Also note that there can be security implications about
    779 * changing the MIME type -- proxies filtering responses based on their MIME
    780 * type might consider certain types to be safe, which these sniffers can
    781 * override.
    782 *
    783 * Not all channels may implement content sniffing. See also
    784 * nsIChannel::LOAD_CALL_CONTENT_SNIFFERS.
    785 */
    786 #define NS_CONTENT_SNIFFER_CATEGORY "net-content-sniffers"
    787 
    788 /**
    789 * Services in this category can sniff content that is not necessarily loaded
    790 * from the network, and they won't be told about each load.
    791 */
    792 #define NS_DATA_SNIFFER_CATEGORY "content-sniffing-services"
    793 
    794 /**
    795 * Services in this category similar to "net-content-sniffers" but it's
    796 * initiated by the opaque response blocking algorithm.
    797 */
    798 #define NS_ORB_SNIFFER_CATEGORY "orb-content-sniffers"
    799 
    800 /**
    801 * Services in this category are the union of "net-content-sniffers" and
    802 * "orb-content-sniffers".
    803 */
    804 #define NS_CONTENT_AND_ORB_SNIFFER_CATEGORY "net-and-orb-content-sniffers"
    805 
    806 /**
    807 * Must implement nsINSSErrorsService.
    808 */
    809 #define NS_NSS_ERRORS_SERVICE_CONTRACTID "@mozilla.org/nss_errors_service;1"
    810 
    811 /**
    812 * LoadContextInfo factory
    813 */
    814 #define NS_NSILOADCONTEXTINFOFACTORY_CONTRACTID \
    815  "@mozilla.org/load-context-info-factory;1"
    816 #define NS_NSILOADCONTEXTINFOFACTORY_CID      \
    817  {/* 62d4b190-3642-4450-b019-d1c1fba56025 */ \
    818   0x62d4b190,                                \
    819   0x3642,                                    \
    820   0x4450,                                    \
    821   {0xb0, 0x19, 0xd1, 0xc1, 0xfb, 0xa5, 0x60, 0x25}}
    822 
    823 // Onion alias service implementing IOnionAliasService
    824 #define ONIONALIAS_CONTRACTID "@torproject.org/onion-alias-service;1"
    825 #define ONIONALIAS_CID                        \
    826  {/* 0df7784b-7316-486d-bc99-bf47b7a05974 */ \
    827   0x0df7784b,                                \
    828   0x7316,                                    \
    829   0x486d,                                    \
    830   {0xbc, 0x99, 0xbf, 0x47, 0xb7, 0xa0, 0x59, 0x74}}
    831 #endif  // nsNetCID_h__