nsNetCID.h 41 KB

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