Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/xpcom/base/nsDebugImpl.h
Line
Count
Source
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
1
  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
   * If we are in multiprocess mode, return the process name.
24
   */
25
  static const char* GetMultiprocessMode();
26
27
  /*
28
   * Inform nsDebugImpl that we're in multiprocess mode.
29
   *
30
   * If aDesc is not nullptr, the string it points to must be
31
   * statically-allocated (i.e., it must be a string literal).
32
   */
33
  static void SetMultiprocessMode(const char* aDesc);
34
};
35
36
37
#define NS_DEBUG_CONTRACTID "@mozilla.org/xpcom/debug;1"
38
#define NS_DEBUG_CID                                 \
39
{ /* cb6cdb94-e417-4601-b4a5-f991bf41453d */         \
40
  0xcb6cdb94,                                        \
41
    0xe417,                                          \
42
    0x4601,                                          \
43
    {0xb4, 0xa5, 0xf9, 0x91, 0xbf, 0x41, 0x45, 0x3d} \
44
}
45
46
#endif // nsDebugImpl_h