nsNetCID.h 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3. * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4. *
  5. * The contents of this file are subject to the Mozilla Public License Version
  6. * 1.1 (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. * http://www.mozilla.org/MPL/
  9. *
  10. * Software distributed under the License is distributed on an "AS IS" basis,
  11. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12. * for the specific language governing rights and limitations under the
  13. * License.
  14. *
  15. * The Original Code is mozilla.org code.
  16. *
  17. * The Initial Developer of the Original Code is
  18. * Netscape Communications Corporation.
  19. * Portions created by the Initial Developer are Copyright (C) 2001
  20. * the Initial Developer. All Rights Reserved.
  21. *
  22. * Contributor(s):
  23. * Darin Fisher <[email protected]> (original author)
  24. *
  25. * Alternatively, the contents of this file may be used under the terms of
  26. * either the GNU General Public License Version 2 or later (the "GPL"), or
  27. * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28. * in which case the provisions of the GPL or the LGPL are applicable instead
  29. * of those above. If you wish to allow use of your version of this file only
  30. * under the terms of either the GPL or the LGPL, and not to allow others to
  31. * use your version of this file under the terms of the MPL, indicate your
  32. * decision by deleting the provisions above and replace them with the notice
  33. * and other provisions required by the GPL or the LGPL. If you do not delete
  34. * the provisions above, a recipient may use your version of this file under
  35. * the terms of any one of the MPL, the GPL or the LGPL.
  36. *
  37. * ***** END LICENSE BLOCK ***** */
  38. #ifndef nsNetCID_h__
  39. #define nsNetCID_h__
  40. /******************************************************************************
  41. * netwerk/base/ classes
  42. */
  43. // service implementing nsIIOService.
  44. #define NS_IOSERVICE_CLASSNAME \
  45. "nsIOService"
  46. #define NS_IOSERVICE_CONTRACTID \
  47. "@mozilla.org/network/io-service;1"
  48. #define NS_IOSERVICE_CID \
  49. { /* 9ac9e770-18bc-11d3-9337-00104ba0fd40 */ \
  50. 0x9ac9e770, \
  51. 0x18bc, \
  52. 0x11d3, \
  53. {0x93, 0x37, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
  54. }
  55. // service implementing nsINetUtil
  56. #define NS_NETUTIL_CONTRACTID \
  57. "@mozilla.org/network/util;1"
  58. // service implementing nsIEventTarget. events dispatched to this event
  59. // target will be executed on one of necko's background i/o threads.
  60. #define NS_IOTHREADPOOL_CLASSNAME \
  61. "nsIOThreadPool"
  62. #define NS_IOTHREADPOOL_CONTRACTID \
  63. "@mozilla.org/network/io-thread-pool;1"
  64. #define NS_IOTHREADPOOL_CID \
  65. { /* f1d62b49-5051-48e2-9155-c3509428461e */ \
  66. 0xf1d62b49, \
  67. 0x5051, \
  68. 0x48e2, \
  69. {0x91, 0x55, 0xc3, 0x50, 0x94, 0x28, 0x46, 0x1e} \
  70. }
  71. // service implementing nsIProtocolProxyService and nsPIProtocolProxyService.
  72. #define NS_PROTOCOLPROXYSERVICE_CLASSNAME \
  73. "nsProtocolProxyService"
  74. #define NS_PROTOCOLPROXYSERVICE_CONTRACTID \
  75. "@mozilla.org/network/protocol-proxy-service;1"
  76. #define NS_PROTOCOLPROXYSERVICE_CID \
  77. { /* E9B301C0-E0E4-11d3-A1A8-0050041CAF44 */ \
  78. 0xe9b301c0, \
  79. 0xe0e4, \
  80. 0x11d3, \
  81. {0xa1, 0xa8, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44} \
  82. }
  83. // service implementing nsIProxyAutoConfig.
  84. #define NS_PROXYAUTOCONFIG_CLASSNAME \
  85. "nsProxyAutoConfig"
  86. #define NS_PROXYAUTOCONFIG_CONTRACTID \
  87. "@mozilla.org/network/proxy-auto-config;1"
  88. #define NS_PROXYAUTOCONFIG_CID \
  89. { /* 63ac8c66-1dd2-11b2-b070-84d00d3eaece */ \
  90. 0x63ac8c66, \
  91. 0x1dd2, \
  92. 0x11b2, \
  93. {0xb0, 0x70, 0x84, 0xd0, 0x0d, 0x3e, 0xae, 0xce} \
  94. }
  95. // component implementing nsILoadGroup.
  96. #define NS_LOADGROUP_CLASSNAME \
  97. "nsLoadGroup"
  98. #define NS_LOADGROUP_CONTRACTID \
  99. "@mozilla.org/network/load-group;1"
  100. #define NS_LOADGROUP_CID \
  101. { /* e1c61582-2a84-11d3-8cce-0060b0fc14a3 */ \
  102. 0xe1c61582, \
  103. 0x2a84, \
  104. 0x11d3, \
  105. {0x8c, 0xce, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
  106. }
  107. // component implementing nsIURI, nsISerializable, and nsIClassInfo.
  108. #define NS_SIMPLEURI_CLASSNAME \
  109. "nsSimpleURI"
  110. #define NS_SIMPLEURI_CONTRACTID \
  111. "@mozilla.org/network/simple-uri;1"
  112. #define NS_SIMPLEURI_CID \
  113. { /* e0da1d70-2f7b-11d3-8cd0-0060b0fc14a3 */ \
  114. 0xe0da1d70, \
  115. 0x2f7b, \
  116. 0x11d3, \
  117. {0x8c, 0xd0, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
  118. }
  119. // component implementing nsIStandardURL, nsIURI, nsIURL, nsISerializable,
  120. // and nsIClassInfo.
  121. #define NS_STANDARDURL_CLASSNAME \
  122. "nsStandardURL"
  123. #define NS_STANDARDURL_CONTRACTID \
  124. "@mozilla.org/network/standard-url;1"
  125. #define NS_STANDARDURL_CID \
  126. { /* de9472d0-8034-11d3-9399-00104ba0fd40 */ \
  127. 0xde9472d0, \
  128. 0x8034, \
  129. 0x11d3, \
  130. {0x93, 0x99, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
  131. }
  132. // service implementing nsIURLParser that assumes the URL will NOT contain an
  133. // authority section.
  134. #define NS_NOAUTHURLPARSER_CLASSNAME \
  135. "nsNoAuthURLParser"
  136. #define NS_NOAUTHURLPARSER_CONTRACTID \
  137. "@mozilla.org/network/url-parser;1?auth=no"
  138. #define NS_NOAUTHURLPARSER_CID \
  139. { /* 78804a84-8173-42b6-bb94-789f0816a810 */ \
  140. 0x78804a84, \
  141. 0x8173, \
  142. 0x42b6, \
  143. {0xbb, 0x94, 0x78, 0x9f, 0x08, 0x16, 0xa8, 0x10} \
  144. }
  145. // service implementing nsIURLParser that assumes the URL will contain an
  146. // authority section.
  147. #define NS_AUTHURLPARSER_CLASSNAME \
  148. "nsAuthURLParser"
  149. #define NS_AUTHURLPARSER_CONTRACTID \
  150. "@mozilla.org/network/url-parser;1?auth=yes"
  151. #define NS_AUTHURLPARSER_CID \
  152. { /* 275d800e-3f60-4896-adb7-d7f390ce0e42 */ \
  153. 0x275d800e, \
  154. 0x3f60, \
  155. 0x4896, \
  156. {0xad, 0xb7, 0xd7, 0xf3, 0x90, 0xce, 0x0e, 0x42} \
  157. }
  158. // service implementing nsIURLParser that does not make any assumptions about
  159. // whether or not the URL contains an authority section.
  160. #define NS_STDURLPARSER_CLASSNAME \
  161. "nsStdURLParser"
  162. #define NS_STDURLPARSER_CONTRACTID \
  163. "@mozilla.org/network/url-parser;1?auth=maybe"
  164. #define NS_STDURLPARSER_CID \
  165. { /* ff41913b-546a-4bff-9201-dc9b2c032eba */ \
  166. 0xff41913b, \
  167. 0x546a, \
  168. 0x4bff, \
  169. {0x92, 0x01, 0xdc, 0x9b, 0x2c, 0x03, 0x2e, 0xba} \
  170. }
  171. // component implementing nsIRequestObserverProxy.
  172. #define NS_REQUESTOBSERVERPROXY_CLASSNAME \
  173. "nsRequestObserverProxy"
  174. #define NS_REQUESTOBSERVERPROXY_CONTRACTID \
  175. "@mozilla.org/network/request-observer-proxy;1"
  176. #define NS_REQUESTOBSERVERPROXY_CID \
  177. { /* 51fa28c7-74c0-4b85-9c46-d03faa7b696b */ \
  178. 0x51fa28c7, \
  179. 0x74c0, \
  180. 0x4b85, \
  181. {0x9c, 0x46, 0xd0, 0x3f, 0xaa, 0x7b, 0x69, 0x6b} \
  182. }
  183. // component implementing nsISimpleStreamListener.
  184. #define NS_SIMPLESTREAMLISTENER_CLASSNAME \
  185. "nsSimpleStreamListener"
  186. #define NS_SIMPLESTREAMLISTENER_CONTRACTID \
  187. "@mozilla.org/network/simple-stream-listener;1"
  188. #define NS_SIMPLESTREAMLISTENER_CID \
  189. { /* fb8cbf4e-4701-4ba1-b1d6-5388e041fb67 */ \
  190. 0xfb8cbf4e, \
  191. 0x4701, \
  192. 0x4ba1, \
  193. {0xb1, 0xd6, 0x53, 0x88, 0xe0, 0x41, 0xfb, 0x67} \
  194. }
  195. // DEPRECATED component implementing nsIAsyncStreamListener.
  196. #define NS_ASYNCSTREAMLISTENER_CLASSNAME \
  197. "nsAsyncStreamListener"
  198. #define NS_ASYNCSTREAMLISTENER_CONTRACTID \
  199. "@mozilla.org/network/async-stream-listener;1"
  200. #define NS_ASYNCSTREAMLISTENER_CID \
  201. { /* 60047bb2-91c0-11d3-8cd9-0060b0fc14a3 */ \
  202. 0x60047bb2, \
  203. 0x91c0, \
  204. 0x11d3, \
  205. {0x8c, 0xd9, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
  206. }
  207. // component implementing nsIStreamListenerTee.
  208. #define NS_STREAMLISTENERTEE_CLASSNAME \
  209. "nsStreamListenerTee"
  210. #define NS_STREAMLISTENERTEE_CONTRACTID \
  211. "@mozilla.org/network/stream-listener-tee;1"
  212. #define NS_STREAMLISTENERTEE_CID \
  213. { /* 831f8f13-7aa8-485f-b02e-77c881cc5773 */ \
  214. 0x831f8f13, \
  215. 0x7aa8, \
  216. 0x485f, \
  217. {0xb0, 0x2e, 0x77, 0xc8, 0x81, 0xcc, 0x57, 0x73} \
  218. }
  219. // component implementing nsIAsyncStreamCopier.
  220. #define NS_ASYNCSTREAMCOPIER_CLASSNAME \
  221. "nsAsyncStreamCopier"
  222. #define NS_ASYNCSTREAMCOPIER_CONTRACTID \
  223. "@mozilla.org/network/async-stream-copier;1"
  224. #define NS_ASYNCSTREAMCOPIER_CID \
  225. { /* e746a8b1-c97a-4fc5-baa4-66607521bd08 */ \
  226. 0xe746a8b1, \
  227. 0xc97a, \
  228. 0x4fc5, \
  229. {0xba, 0xa4, 0x66, 0x60, 0x75, 0x21, 0xbd, 0x08} \
  230. }
  231. // component implementing nsIInputStreamPump.
  232. #define NS_INPUTSTREAMPUMP_CLASSNAME \
  233. "nsInputStreamPump"
  234. #define NS_INPUTSTREAMPUMP_CONTRACTID \
  235. "@mozilla.org/network/input-stream-pump;1"
  236. #define NS_INPUTSTREAMPUMP_CID \
  237. { /* ccd0e960-7947-4635-b70e-4c661b63d675 */ \
  238. 0xccd0e960, \
  239. 0x7947, \
  240. 0x4635, \
  241. {0xb7, 0x0e, 0x4c, 0x66, 0x1b, 0x63, 0xd6, 0x75} \
  242. }
  243. // component implementing nsIInputStreamChannel.
  244. #define NS_INPUTSTREAMCHANNEL_CLASSNAME \
  245. "nsInputStreamChannel"
  246. #define NS_INPUTSTREAMCHANNEL_CONTRACTID \
  247. "@mozilla.org/network/input-stream-channel;1"
  248. #define NS_INPUTSTREAMCHANNEL_CID \
  249. { /* 6ddb050c-0d04-11d4-986e-00c04fa0cf4a */ \
  250. 0x6ddb050c, \
  251. 0x0d04, \
  252. 0x11d4, \
  253. {0x98, 0x6e, 0x00, 0xc0, 0x4f, 0xa0, 0xcf, 0x4a} \
  254. }
  255. // component implementing nsIStreamLoader.
  256. #define NS_STREAMLOADER_CLASSNAME \
  257. "nsStreamLoader"
  258. #define NS_STREAMLOADER_CONTRACTID \
  259. "@mozilla.org/network/stream-loader;1"
  260. #define NS_STREAMLOADER_CID \
  261. { /* 5BA6D920-D4E9-11d3-A1A5-0050041CAF44 */ \
  262. 0x5ba6d920, \
  263. 0xd4e9, \
  264. 0x11d3, \
  265. { 0xa1, 0xa5, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44 } \
  266. }
  267. // component implementing nsIUnicharStreamLoader.
  268. #define NS_UNICHARSTREAMLOADER_CLASSNAME \
  269. "nsUnicharStreamLoader"
  270. #define NS_UNICHARSTREAMLOADER_CONTRACTID \
  271. "@mozilla.org/network/unichar-stream-loader;1"
  272. #define NS_UNICHARSTREAMLOADER_CID \
  273. { /* 9445791f-fa4c-4669-b174-df5032bb67b3 */ \
  274. 0x9445791f, \
  275. 0xfa4c, \
  276. 0x4669, \
  277. { 0xb1, 0x74, 0xdf, 0x50, 0x32, 0xbb, 0x67, 0xb3 } \
  278. }
  279. // component implementing nsIDownloader.
  280. #define NS_DOWNLOADER_CLASSNAME \
  281. "nsDownloader"
  282. #define NS_DOWNLOADER_CONTRACTID \
  283. "@mozilla.org/network/downloader;1"
  284. #define NS_DOWNLOADER_CID \
  285. { /* 510a86bb-6019-4ed1-bb4f-965cffd23ece */ \
  286. 0x510a86bb, \
  287. 0x6019, \
  288. 0x4ed1, \
  289. {0xbb, 0x4f, 0x96, 0x5c, 0xff, 0xd2, 0x3e, 0xce} \
  290. }
  291. // component implementing nsISyncStreamListener.
  292. #define NS_SYNCSTREAMLISTENER_CLASSNAME \
  293. "nsSyncStreamListener"
  294. #define NS_SYNCSTREAMLISTENER_CONTRACTID \
  295. "@mozilla.org/network/sync-stream-listener;1"
  296. #define NS_SYNCSTREAMLISTENER_CID \
  297. { /* 439400d3-6f23-43db-8b06-8aafe1869bd8 */ \
  298. 0x439400d3, \
  299. 0x6f23, \
  300. 0x43db, \
  301. {0x8b, 0x06, 0x8a, 0xaf, 0xe1, 0x86, 0x9b, 0xd8} \
  302. }
  303. // component implementing nsIURIChecker.
  304. #define NS_URICHECKER_CLASSNAME \
  305. "nsURIChecker"
  306. #define NS_URICHECKER_CONTRACT_ID \
  307. "@mozilla.org/network/urichecker;1"
  308. #define NS_URICHECKER_CID \
  309. { /* cf3a0e06-1dd1-11b2-a904-ac1d6da77a02 */ \
  310. 0xcf3a0e06, \
  311. 0x1dd1, \
  312. 0x11b2, \
  313. {0xa9, 0x04, 0xac, 0x1d, 0x6d, 0xa7, 0x7a, 0x02} \
  314. }
  315. // component implementing nsIIncrementalDownload.
  316. #define NS_INCREMENTALDOWNLOAD_CONTRACTID \
  317. "@mozilla.org/network/incremental-download;1"
  318. // service implementing nsIStreamTransportService
  319. #define NS_STREAMTRANSPORTSERVICE_CLASSNAME \
  320. "nsStreamTransportService"
  321. #define NS_STREAMTRANSPORTSERVICE_CONTRACTID \
  322. "@mozilla.org/network/stream-transport-service;1"
  323. #define NS_STREAMTRANSPORTSERVICE_CID \
  324. { /* 0885d4f8-f7b8-4cda-902e-94ba38bc256e */ \
  325. 0x0885d4f8, \
  326. 0xf7b8, \
  327. 0x4cda, \
  328. {0x90, 0x2e, 0x94, 0xba, 0x38, 0xbc, 0x25, 0x6e} \
  329. }
  330. // service implementing nsISocketTransportService
  331. #define NS_SOCKETTRANSPORTSERVICE_CLASSNAME \
  332. "nsSocketTransportService"
  333. #define NS_SOCKETTRANSPORTSERVICE_CONTRACTID \
  334. "@mozilla.org/network/socket-transport-service;1"
  335. #define NS_SOCKETTRANSPORTSERVICE_CID \
  336. { /* c07e81e0-ef12-11d2-92b6-00105a1b0d64 */ \
  337. 0xc07e81e0, \
  338. 0xef12, \
  339. 0x11d2, \
  340. {0x92, 0xb6, 0x00, 0x10, 0x5a, 0x1b, 0x0d, 0x64} \
  341. }
  342. // component implementing nsIServerSocket
  343. #define NS_SERVERSOCKET_CLASSNAME \
  344. "nsServerSocket"
  345. #define NS_SERVERSOCKET_CONTRACTID \
  346. "@mozilla.org/network/server-socket;1"
  347. #define NS_SERVERSOCKET_CID \
  348. { /* 2ec62893-3b35-48fa-ab1d-5e68a9f45f08 */ \
  349. 0x2ec62893, \
  350. 0x3b35, \
  351. 0x48fa, \
  352. {0xab, 0x1d, 0x5e, 0x68, 0xa9, 0xf4, 0x5f, 0x08} \
  353. }
  354. #define NS_LOCALFILEINPUTSTREAM_CLASSNAME \
  355. "nsFileInputStream"
  356. #define NS_LOCALFILEINPUTSTREAM_CONTRACTID \
  357. "@mozilla.org/network/file-input-stream;1"
  358. #define NS_LOCALFILEINPUTSTREAM_CID \
  359. { /* be9a53ae-c7e9-11d3-8cda-0060b0fc14a3 */ \
  360. 0xbe9a53ae, \
  361. 0xc7e9, \
  362. 0x11d3, \
  363. {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
  364. }
  365. #define NS_LOCALFILEOUTPUTSTREAM_CLASSNAME \
  366. "nsFileOutputStream"
  367. #define NS_LOCALFILEOUTPUTSTREAM_CONTRACTID \
  368. "@mozilla.org/network/file-output-stream;1"
  369. #define NS_LOCALFILEOUTPUTSTREAM_CID \
  370. { /* c272fee0-c7e9-11d3-8cda-0060b0fc14a3 */ \
  371. 0xc272fee0, \
  372. 0xc7e9, \
  373. 0x11d3, \
  374. {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
  375. }
  376. #define NS_BUFFEREDINPUTSTREAM_CLASSNAME \
  377. "nsBufferedInputStream"
  378. #define NS_BUFFEREDINPUTSTREAM_CONTRACTID \
  379. "@mozilla.org/network/buffered-input-stream;1"
  380. #define NS_BUFFEREDINPUTSTREAM_CID \
  381. { /* 9226888e-da08-11d3-8cda-0060b0fc14a3 */ \
  382. 0x9226888e, \
  383. 0xda08, \
  384. 0x11d3, \
  385. {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
  386. }
  387. #define NS_BUFFEREDOUTPUTSTREAM_CLASSNAME \
  388. "nsBufferedOutputStream"
  389. #define NS_BUFFEREDOUTPUTSTREAM_CONTRACTID \
  390. "@mozilla.org/network/buffered-output-stream;1"
  391. #define NS_BUFFEREDOUTPUTSTREAM_CID \
  392. { /* 9868b4ce-da08-11d3-8cda-0060b0fc14a3 */ \
  393. 0x9868b4ce, \
  394. 0xda08, \
  395. 0x11d3, \
  396. {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
  397. }
  398. // component implementing nsISafeOutputStream
  399. #define NS_SAFELOCALFILEOUTPUTSTREAM_CLASSNAME \
  400. "nsSafeFileOutputStream"
  401. #define NS_SAFELOCALFILEOUTPUTSTREAM_CONTRACTID \
  402. "@mozilla.org/network/safe-file-output-stream;1"
  403. #define NS_SAFELOCALFILEOUTPUTSTREAM_CID \
  404. { /* a181af0d-68b8-4308-94db-d4f859058215 */ \
  405. 0xa181af0d, \
  406. 0x68b8, \
  407. 0x4308, \
  408. {0x94, 0xdb, 0xd4, 0xf8, 0x59, 0x05, 0x82, 0x15} \
  409. }
  410. // component implementing nsIPrompt
  411. //
  412. // NOTE: this implementation does not have any way to correctly parent itself,
  413. // it is almost always wrong to get a prompt via this interface.
  414. // use nsIWindowWatcher instead whenever possible.
  415. //
  416. #define NS_DEFAULTPROMPT_CONTRACTID \
  417. "@mozilla.org/network/default-prompt;1"
  418. // component implementing nsIAuthPrompt
  419. //
  420. // NOTE: this implementation does not have any way to correctly parent itself,
  421. // it is almost always wrong to get an auth prompt via this interface.
  422. // use nsIWindowWatcher instead whenever possible.
  423. //
  424. #define NS_DEFAULTAUTHPROMPT_CONTRACTID \
  425. "@mozilla.org/network/default-auth-prompt;1"
  426. /******************************************************************************
  427. * netwerk/cache/ classes
  428. */
  429. // service implementing nsICacheService.
  430. #define NS_CACHESERVICE_CLASSNAME \
  431. "nsCacheService"
  432. #define NS_CACHESERVICE_CONTRACTID \
  433. "@mozilla.org/network/cache-service;1"
  434. #define NS_CACHESERVICE_CID \
  435. { /* 6c84aec9-29a5-4264-8fbc-bee8f922ea67 */ \
  436. 0x6c84aec9, \
  437. 0x29a5, \
  438. 0x4264, \
  439. {0x8f, 0xbc, 0xbe, 0xe8, 0xf9, 0x22, 0xea, 0x67} \
  440. }
  441. /******************************************************************************
  442. * netwerk/protocol/http/ classes
  443. */
  444. #define NS_HTTPPROTOCOLHANDLER_CID \
  445. { /* 4f47e42e-4d23-4dd3-bfda-eb29255e9ea3 */ \
  446. 0x4f47e42e, \
  447. 0x4d23, \
  448. 0x4dd3, \
  449. {0xbf, 0xda, 0xeb, 0x29, 0x25, 0x5e, 0x9e, 0xa3} \
  450. }
  451. #define NS_HTTPSPROTOCOLHANDLER_CID \
  452. { /* dccbe7e4-7750-466b-a557-5ea36c8ff24e */ \
  453. 0xdccbe7e4, \
  454. 0x7750, \
  455. 0x466b, \
  456. {0xa5, 0x57, 0x5e, 0xa3, 0x6c, 0x8f, 0xf2, 0x4e} \
  457. }
  458. #define NS_HTTPBASICAUTH_CID \
  459. { /* fca3766a-434a-4ae7-83cf-0909e18a093a */ \
  460. 0xfca3766a, \
  461. 0x434a, \
  462. 0x4ae7, \
  463. {0x83, 0xcf, 0x09, 0x09, 0xe1, 0x8a, 0x09, 0x3a} \
  464. }
  465. #define NS_HTTPDIGESTAUTH_CID \
  466. { /* 17491ba4-1dd2-11b2-aae3-de6b92dab620 */ \
  467. 0x17491ba4, \
  468. 0x1dd2, \
  469. 0x11b2, \
  470. {0xaa, 0xe3, 0xde, 0x6b, 0x92, 0xda, 0xb6, 0x20} \
  471. }
  472. #define NS_HTTPNTLMAUTH_CID \
  473. { /* bbef8185-c628-4cc1-b53e-e61e74c2451a */ \
  474. 0xbbef8185, \
  475. 0xc628, \
  476. 0x4cc1, \
  477. {0xb5, 0x3e, 0xe6, 0x1e, 0x74, 0xc2, 0x45, 0x1a} \
  478. }
  479. #define NS_HTTPAUTHMANAGER_CLASSNAME \
  480. "nsHttpAuthManager"
  481. #define NS_HTTPAUTHMANAGER_CONTRACTID \
  482. "@mozilla.org/network/http-auth-manager;1"
  483. #define NS_HTTPAUTHMANAGER_CID \
  484. { /* 36b63ef3-e0fa-4c49-9fd4-e065e85568f4 */ \
  485. 0x36b63ef3, \
  486. 0xe0fa, \
  487. 0x4c49, \
  488. {0x9f, 0xd4, 0xe0, 0x65, 0xe8, 0x55, 0x68, 0xf4} \
  489. }
  490. /******************************************************************************
  491. * netwerk/protocol/ftp/ classes
  492. */
  493. #define NS_FTPPROTOCOLHANDLER_CLASSNAME \
  494. "nsFtpProtocolHandler"
  495. #define NS_FTPPROTOCOLHANDLER_CID \
  496. { /* 25029490-F132-11d2-9588-00805F369F95 */ \
  497. 0x25029490, \
  498. 0xf132, \
  499. 0x11d2, \
  500. {0x95, 0x88, 0x0, 0x80, 0x5f, 0x36, 0x9f, 0x95} \
  501. }
  502. /******************************************************************************
  503. * netwerk/protocol/res/ classes
  504. */
  505. #define NS_RESPROTOCOLHANDLER_CLASSNAME \
  506. "nsResProtocolHandler"
  507. #define NS_RESPROTOCOLHANDLER_CID \
  508. { /* e64f152a-9f07-11d3-8cda-0060b0fc14a3 */ \
  509. 0xe64f152a, \
  510. 0x9f07, \
  511. 0x11d3, \
  512. {0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
  513. }
  514. #define NS_RESURL_CLASSNAME \
  515. "nsResURL"
  516. #define NS_RESURL_CID \
  517. { /* ff8fe7ec-2f74-4408-b742-6b7a546029a8 */ \
  518. 0xff8fe7ec, \
  519. 0x2f74, \
  520. 0x4408, \
  521. {0xb7, 0x42, 0x6b, 0x7a, 0x54, 0x60, 0x29, 0xa8} \
  522. }
  523. /******************************************************************************
  524. * netwerk/protocol/file/ classes
  525. */
  526. #define NS_FILEPROTOCOLHANDLER_CLASSNAME \
  527. "nsFileProtocolHandler"
  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. #define NS_DATAPROTOCOLHANDLER_CLASSNAME \
  539. "nsDataProtocolHandler"
  540. #define NS_DATAPROTOCOLHANDLER_CID \
  541. { /* {B6ED3030-6183-11d3-A178-0050041CAF44} */ \
  542. 0xb6ed3030, \
  543. 0x6183, \
  544. 0x11d3, \
  545. {0xa1, 0x78, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44} \
  546. }
  547. /******************************************************************************
  548. * netwerk/protocol/viewsource/ classes
  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/dns/ classes
  560. */
  561. #define NS_DNSSERVICE_CLASSNAME \
  562. "nsDNSService"
  563. #define NS_DNSSERVICE_CONTRACTID \
  564. "@mozilla.org/network/dns-service;1"
  565. #define NS_DNSSERVICE_CID \
  566. { /* b0ff4572-dae4-4bef-a092-83c1b88f6be9 */ \
  567. 0xb0ff4572, \
  568. 0xdae4, \
  569. 0x4bef, \
  570. {0xa0, 0x92, 0x83, 0xc1, 0xb8, 0x8f, 0x6b, 0xe9} \
  571. }
  572. #define NS_IDNSERVICE_CLASSNAME \
  573. "nsIDNService"
  574. /* ContractID of the XPCOM package that implements nsIIDNService */
  575. #define NS_IDNSERVICE_CONTRACTID \
  576. "@mozilla.org/network/idn-service;1"
  577. #define NS_IDNSERVICE_CID \
  578. { /* 62b778a6-bce3-456b-8c31-2865fbb68c91 */ \
  579. 0x62b778a6, \
  580. 0xbce3, \
  581. 0x456b, \
  582. {0x8c, 0x31, 0x28, 0x65, 0xfb, 0xb6, 0x8c, 0x91} \
  583. }
  584. /******************************************************************************
  585. * netwerk/mime classes
  586. */
  587. #define NS_MIMEHEADERPARAM_CLASSNAME \
  588. "nsMIMEHeaderParamImpl"
  589. // {1F4DBCF7-245C-4c8c-943D-8A1DA0495E8A}
  590. #define NS_MIMEHEADERPARAM_CID \
  591. { 0x1f4dbcf7, \
  592. 0x245c, \
  593. 0x4c8c, \
  594. { 0x94, 0x3d, 0x8a, 0x1d, 0xa0, 0x49, 0x5e, 0x8a } \
  595. }
  596. #define NS_MIMEHEADERPARAM_CONTRACTID "@mozilla.org/network/mime-hdrparam;1"
  597. /******************************************************************************
  598. * netwerk/socket classes
  599. */
  600. #define NS_SOCKETPROVIDERSERVICE_CLASSNAME \
  601. "nsSocketProviderService"
  602. #define NS_SOCKETPROVIDERSERVICE_CONTRACTID \
  603. "@mozilla.org/network/socket-provider-service;1"
  604. #define NS_SOCKETPROVIDERSERVICE_CID \
  605. { /* ed394ba0-5472-11d3-bbc8-0000861d1237 */ \
  606. 0xed394ba0, \
  607. 0x5472, \
  608. 0x11d3, \
  609. { 0xbb, 0xc8, 0x00, 0x00, 0x86, 0x1d, 0x12, 0x37 } \
  610. }
  611. #define NS_SOCKSSOCKETPROVIDER_CID \
  612. { /* 8dbe7246-1dd2-11b2-9b8f-b9a849e4403a */ \
  613. 0x8dbe7246, \
  614. 0x1dd2, \
  615. 0x11b2, \
  616. { 0x9b, 0x8f, 0xb9, 0xa8, 0x49, 0xe4, 0x40, 0x3a } \
  617. }
  618. #define NS_SOCKS4SOCKETPROVIDER_CID \
  619. { /* F7C9F5F4-4451-41c3-A28A-5BA2447FBACE */ \
  620. 0xf7c9f5f4, \
  621. 0x4451, \
  622. 0x41c3, \
  623. { 0xa2, 0x8a, 0x5b, 0xa2, 0x44, 0x7f, 0xba, 0xce } \
  624. }
  625. #define NS_SSLSOCKETPROVIDER_CONTRACTID \
  626. NS_NETWORK_SOCKET_CONTRACTID_PREFIX "ssl"
  627. /* This code produces a normal socket which can be used to initiate the
  628. * STARTTLS protocol by calling its nsISSLSocketControl->StartTLS()
  629. */
  630. #define NS_STARTTLSSOCKETPROVIDER_CONTRACTID \
  631. NS_NETWORK_SOCKET_CONTRACTID_PREFIX "starttls"
  632. /******************************************************************************
  633. * netwerk/cookie classes
  634. */
  635. // service implementing nsICookieManager and nsICookieManager2.
  636. #define NS_COOKIEMANAGER_CLASSNAME \
  637. "CookieManager"
  638. #define NS_COOKIEMANAGER_CONTRACTID \
  639. "@mozilla.org/cookiemanager;1"
  640. #define NS_COOKIEMANAGER_CID \
  641. { /* aaab6710-0f2c-11d5-a53b-0010a401eb10 */ \
  642. 0xaaab6710, \
  643. 0x0f2c, \
  644. 0x11d5, \
  645. { 0xa5, 0x3b, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 } \
  646. }
  647. // service implementing nsICookieService.
  648. #define NS_COOKIESERVICE_CLASSNAME \
  649. "CookieService"
  650. #define NS_COOKIESERVICE_CONTRACTID \
  651. "@mozilla.org/cookieService;1"
  652. #define NS_COOKIESERVICE_CID \
  653. { /* c375fa80-150f-11d6-a618-0010a401eb10 */ \
  654. 0xc375fa80, \
  655. 0x150f, \
  656. 0x11d6, \
  657. { 0xa6, 0x18, 0x00, 0x10, 0xa4, 0x01, 0xeb, 0x10 } \
  658. }
  659. /******************************************************************************
  660. * netwerk/streamconv classes
  661. */
  662. // service implementing nsIStreamConverterService
  663. #define NS_STREAMCONVERTERSERVICE_CID \
  664. { /* 892FFEB0-3F80-11d3-A16C-0050041CAF44 */ \
  665. 0x892ffeb0, \
  666. 0x3f80, \
  667. 0x11d3, \
  668. {0xa1, 0x6c, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44} \
  669. }
  670. #endif // nsNetCID_h__