1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xpcom/build/nsXPCOMCID.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,182 @@ 1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef nsXPCOMCID_h__ 1.10 +#define nsXPCOMCID_h__ 1.11 + 1.12 +/** 1.13 + * XPCOM Directory Service Contract ID 1.14 + * The directory service provides ways to obtain file system locations. The 1.15 + * directory service is a singleton. 1.16 + * 1.17 + * This contract supports the nsIDirectoryService and the nsIProperties 1.18 + * interfaces. 1.19 + * 1.20 + */ 1.21 +#define NS_DIRECTORY_SERVICE_CONTRACTID "@mozilla.org/file/directory_service;1" 1.22 + 1.23 +/** 1.24 + * XPCOM File 1.25 + * The file abstraction provides ways to obtain and access files and 1.26 + * directories located on the local system. 1.27 + * 1.28 + * This contract supports the nsIFile interface. 1.29 + * This contract may also support platform specific interfaces such as 1.30 + * nsILocalFileMac on platforms where additional interfaces are required. 1.31 + * 1.32 + */ 1.33 +#define NS_LOCAL_FILE_CONTRACTID "@mozilla.org/file/local;1" 1.34 + 1.35 +/** 1.36 + * XPCOM Category Manager Contract ID 1.37 + * The contract supports the nsICategoryManager interface. The 1.38 + * category manager is a singleton. 1.39 + * The "enumerateCategory" method of nsICategoryManager will return an object 1.40 + * that implements nsIUTF8StringEnumerator. In addition, the enumerator will 1.41 + * return the entries in sorted order (sorted by byte comparison). 1.42 + */ 1.43 +#define NS_CATEGORYMANAGER_CONTRACTID "@mozilla.org/categorymanager;1" 1.44 + 1.45 +/** 1.46 + * XPCOM Properties Object Contract ID 1.47 + * Simple mapping object which supports the nsIProperties interface. 1.48 + */ 1.49 +#define NS_PROPERTIES_CONTRACTID "@mozilla.org/properties;1" 1.50 + 1.51 +/** 1.52 + * XPCOM Array Object ContractID 1.53 + * Simple array implementation which supports the nsIArray and 1.54 + * nsIMutableArray interfaces. 1.55 + */ 1.56 +#define NS_ARRAY_CONTRACTID "@mozilla.org/array;1" 1.57 + 1.58 +/** 1.59 + * Observer Service ContractID 1.60 + * The observer service implements the global nsIObserverService object. 1.61 + * It should be used from the main thread only. 1.62 + */ 1.63 +#define NS_OBSERVERSERVICE_CONTRACTID "@mozilla.org/observer-service;1" 1.64 + 1.65 +/** 1.66 + * IO utilities service contract id. 1.67 + * This guarantees implementation of nsIIOUtil. Usable from any thread. 1.68 + */ 1.69 +#define NS_IOUTIL_CONTRACTID "@mozilla.org/io-util;1" 1.70 + 1.71 +/** 1.72 + * Memory reporter service CID 1.73 + */ 1.74 +#define NS_MEMORY_REPORTER_MANAGER_CONTRACTID "@mozilla.org/memory-reporter-manager;1" 1.75 + 1.76 +/** 1.77 + * Memory info dumper service CID 1.78 + */ 1.79 +#define NS_MEMORY_INFO_DUMPER_CONTRACTID "@mozilla.org/memory-info-dumper;1" 1.80 + 1.81 +/** 1.82 + * Status reporter service CID 1.83 + */ 1.84 +#define NS_STATUS_REPORTER_MANAGER_CONTRACTID "@mozilla.org/status-reporter-manager;1" 1.85 + 1.86 +/** 1.87 + * Cycle collector logger contract id 1.88 + */ 1.89 +#define NS_CYCLE_COLLECTOR_LOGGER_CONTRACTID "@mozilla.org/cycle-collector-logger;1" 1.90 + 1.91 +/** 1.92 + * nsMessageLoop contract id 1.93 + */ 1.94 +#define NS_MESSAGE_LOOP_CONTRACTID "@mozilla.org/message-loop;1" 1.95 + 1.96 +/** 1.97 + * The following are the CIDs and Contract IDs of the nsISupports wrappers for 1.98 + * primative types. 1.99 + */ 1.100 +#define NS_SUPPORTS_ID_CID \ 1.101 +{ 0xacf8dc40, 0x4a25, 0x11d3, \ 1.102 +{ 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } 1.103 +#define NS_SUPPORTS_ID_CONTRACTID "@mozilla.org/supports-id;1" 1.104 + 1.105 +#define NS_SUPPORTS_CSTRING_CID \ 1.106 +{ 0xacf8dc41, 0x4a25, 0x11d3, \ 1.107 +{ 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } 1.108 +#define NS_SUPPORTS_CSTRING_CONTRACTID "@mozilla.org/supports-cstring;1" 1.109 + 1.110 +#define NS_SUPPORTS_STRING_CID \ 1.111 +{ 0xacf8dc42, 0x4a25, 0x11d3, \ 1.112 +{ 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } 1.113 +#define NS_SUPPORTS_STRING_CONTRACTID "@mozilla.org/supports-string;1" 1.114 + 1.115 +#define NS_SUPPORTS_PRBOOL_CID \ 1.116 +{ 0xacf8dc43, 0x4a25, 0x11d3, \ 1.117 +{ 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } 1.118 +#define NS_SUPPORTS_PRBOOL_CONTRACTID "@mozilla.org/supports-PRBool;1" 1.119 + 1.120 +#define NS_SUPPORTS_PRUINT8_CID \ 1.121 +{ 0xacf8dc44, 0x4a25, 0x11d3, \ 1.122 +{ 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } 1.123 +#define NS_SUPPORTS_PRUINT8_CONTRACTID "@mozilla.org/supports-PRUint8;1" 1.124 + 1.125 +#define NS_SUPPORTS_PRUINT16_CID \ 1.126 +{ 0xacf8dc46, 0x4a25, 0x11d3, \ 1.127 +{ 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } 1.128 +#define NS_SUPPORTS_PRUINT16_CONTRACTID "@mozilla.org/supports-PRUint16;1" 1.129 + 1.130 +#define NS_SUPPORTS_PRUINT32_CID \ 1.131 +{ 0xacf8dc47, 0x4a25, 0x11d3, \ 1.132 +{ 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } 1.133 +#define NS_SUPPORTS_PRUINT32_CONTRACTID "@mozilla.org/supports-PRUint32;1" 1.134 + 1.135 +#define NS_SUPPORTS_PRUINT64_CID \ 1.136 +{ 0xacf8dc48, 0x4a25, 0x11d3, \ 1.137 +{ 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } 1.138 +#define NS_SUPPORTS_PRUINT64_CONTRACTID "@mozilla.org/supports-PRUint64;1" 1.139 + 1.140 +#define NS_SUPPORTS_PRTIME_CID \ 1.141 +{ 0xacf8dc49, 0x4a25, 0x11d3, \ 1.142 +{ 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } 1.143 +#define NS_SUPPORTS_PRTIME_CONTRACTID "@mozilla.org/supports-PRTime;1" 1.144 + 1.145 +#define NS_SUPPORTS_CHAR_CID \ 1.146 +{ 0xacf8dc4a, 0x4a25, 0x11d3, \ 1.147 +{ 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } 1.148 +#define NS_SUPPORTS_CHAR_CONTRACTID "@mozilla.org/supports-char;1" 1.149 + 1.150 +#define NS_SUPPORTS_PRINT16_CID \ 1.151 +{ 0xacf8dc4b, 0x4a25, 0x11d3, \ 1.152 +{ 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } 1.153 +#define NS_SUPPORTS_PRINT16_CONTRACTID "@mozilla.org/supports-PRInt16;1" 1.154 + 1.155 +#define NS_SUPPORTS_PRINT32_CID \ 1.156 +{ 0xacf8dc4c, 0x4a25, 0x11d3, \ 1.157 +{ 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } 1.158 +#define NS_SUPPORTS_PRINT32_CONTRACTID "@mozilla.org/supports-PRInt32;1" 1.159 + 1.160 +#define NS_SUPPORTS_PRINT64_CID \ 1.161 +{ 0xacf8dc4d, 0x4a25, 0x11d3, \ 1.162 +{ 0x98, 0x90, 0x0, 0x60, 0x8, 0x96, 0x24, 0x22 } } 1.163 +#define NS_SUPPORTS_PRINT64_CONTRACTID "@mozilla.org/supports-PRInt64;1" 1.164 + 1.165 +#define NS_SUPPORTS_FLOAT_CID \ 1.166 +{ 0xcbf86870, 0x4ac0, 0x11d3, \ 1.167 +{ 0xba, 0xea, 0x0, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 } } 1.168 +#define NS_SUPPORTS_FLOAT_CONTRACTID "@mozilla.org/supports-float;1" 1.169 + 1.170 +#define NS_SUPPORTS_DOUBLE_CID \ 1.171 +{ 0xcbf86871, 0x4ac0, 0x11d3, \ 1.172 +{ 0xba, 0xea, 0x0, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 } } 1.173 +#define NS_SUPPORTS_DOUBLE_CONTRACTID "@mozilla.org/supports-double;1" 1.174 + 1.175 +#define NS_SUPPORTS_VOID_CID \ 1.176 +{ 0xaf10f3e0, 0x568d, 0x11d3, \ 1.177 +{ 0xba, 0xf8, 0x0, 0x80, 0x5f, 0x8a, 0x5d, 0xd7 } } 1.178 +#define NS_SUPPORTS_VOID_CONTRACTID "@mozilla.org/supports-void;1" 1.179 + 1.180 +#define NS_SUPPORTS_INTERFACE_POINTER_CID \ 1.181 +{ 0xA99FEBBA, 0x1DD1, 0x11B2, \ 1.182 +{ 0xA9, 0x43, 0xB0, 0x23, 0x34, 0xA6, 0xD0, 0x83 } } 1.183 +#define NS_SUPPORTS_INTERFACE_POINTER_CONTRACTID "@mozilla.org/supports-interface-pointer;1" 1.184 + 1.185 +#endif