Bug 1686838 [wpt PR 27194] - [webcodecs] Deprecate VideoFrame.destroy()., a=testonly
[gecko.git] / xpcom / base / nsDebugImpl.h
blobc89215e7ffdec5eeb5bc0dd5af38c22c5fb4a762
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/. */
7 #ifndef nsDebugImpl_h
8 #define nsDebugImpl_h
10 #include "nsIDebug2.h"
12 class nsDebugImpl : public nsIDebug2 {
13 public:
14 nsDebugImpl() = default;
15 NS_DECL_ISUPPORTS
16 NS_DECL_NSIDEBUG2
18 static nsresult Create(nsISupports* aOuter, const nsIID& aIID,
19 void** aInstancePtr);
22 * If we are in multiprocess mode, return the process name.
24 static const char* GetMultiprocessMode();
27 * Inform nsDebugImpl that we're in multiprocess mode.
29 * If aDesc is not nullptr, the string it points to must be
30 * statically-allocated (i.e., it must be a string literal).
32 static void SetMultiprocessMode(const char* aDesc);
35 #define NS_DEBUG_CONTRACTID "@mozilla.org/xpcom/debug;1"
36 #define NS_DEBUG_CID \
37 { /* cb6cdb94-e417-4601-b4a5-f991bf41453d */ \
38 0xcb6cdb94, 0xe417, 0x4601, { \
39 0xb4, 0xa5, 0xf9, 0x91, 0xbf, 0x41, 0x45, 0x3d \
40 } \
43 #endif // nsDebugImpl_h