1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
10 #include "nsIDebug2.h"
12 class nsDebugImpl
: public nsIDebug2
{
14 nsDebugImpl() = default;
18 static nsresult
Create(const nsIID
& aIID
, void** aInstancePtr
);
21 * If we are in multiprocess mode, return the process name.
23 static const char* GetMultiprocessMode();
26 * Inform nsDebugImpl that we're in multiprocess mode.
28 * If aDesc is not nullptr, the string it points to must be
29 * statically-allocated (i.e., it must be a string literal).
31 static void SetMultiprocessMode(const char* aDesc
);
34 #define NS_DEBUG_CONTRACTID "@mozilla.org/xpcom/debug;1"
35 #define NS_DEBUG_CID \
36 { /* cb6cdb94-e417-4601-b4a5-f991bf41453d */ \
37 0xcb6cdb94, 0xe417, 0x4601, { \
38 0xb4, 0xa5, 0xf9, 0x91, 0xbf, 0x41, 0x45, 0x3d \
42 #endif // nsDebugImpl_h