michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsDebugImpl_h michael@0: #define nsDebugImpl_h michael@0: michael@0: #include "nsIDebug.h" michael@0: #include "nsIDebug2.h" michael@0: michael@0: class nsDebugImpl : public nsIDebug2 michael@0: { michael@0: public: michael@0: nsDebugImpl() {} michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIDEBUG michael@0: NS_DECL_NSIDEBUG2 michael@0: michael@0: static nsresult Create(nsISupports* outer, const nsIID& aIID, void* *aInstancePtr); michael@0: michael@0: /* michael@0: * Inform nsDebugImpl that we're in multiprocess mode. michael@0: * michael@0: * If aDesc is not nullptr, the string it points to must be michael@0: * statically-allocated (i.e., it must be a string literal). michael@0: */ michael@0: static void SetMultiprocessMode(const char *aDesc); michael@0: }; michael@0: michael@0: michael@0: #define NS_DEBUG_CONTRACTID "@mozilla.org/xpcom/debug;1" michael@0: #define NS_DEBUG_CID \ michael@0: { /* a80b1fb3-aaf6-4852-b678-c27eb7a518af */ \ michael@0: 0xa80b1fb3, \ michael@0: 0xaaf6, \ michael@0: 0x4852, \ michael@0: {0xb6, 0x78, 0xc2, 0x7e, 0xb7, 0xa5, 0x18, 0xaf} \ michael@0: } michael@0: michael@0: #endif // nsDebugImpl_h