Line data Source code
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/. */
6 :
7 : #ifndef nsDebugImpl_h
8 : #define nsDebugImpl_h
9 :
10 : #include "nsIDebug2.h"
11 :
12 : class nsDebugImpl : public nsIDebug2
13 : {
14 : public:
15 0 : nsDebugImpl() = default;
16 : NS_DECL_ISUPPORTS
17 : NS_DECL_NSIDEBUG2
18 :
19 : static nsresult Create(nsISupports* aOuter, const nsIID& aIID,
20 : void** aInstancePtr);
21 :
22 : /*
23 : * Inform nsDebugImpl that we're in multiprocess mode.
24 : *
25 : * If aDesc is not nullptr, the string it points to must be
26 : * statically-allocated (i.e., it must be a string literal).
27 : */
28 : static void SetMultiprocessMode(const char* aDesc);
29 : };
30 :
31 :
32 : #define NS_DEBUG_CONTRACTID "@mozilla.org/xpcom/debug;1"
33 : #define NS_DEBUG_CID \
34 : { /* cb6cdb94-e417-4601-b4a5-f991bf41453d */ \
35 : 0xcb6cdb94, \
36 : 0xe417, \
37 : 0x4601, \
38 : {0xb4, 0xa5, 0xf9, 0x91, 0xbf, 0x41, 0x45, 0x3d} \
39 : }
40 :
41 : #endif // nsDebugImpl_h
|