2014-05-05 21:30:39 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2003-07-08 02:11:36 +04:00
|
|
|
|
2013-11-26 20:39:19 +04:00
|
|
|
#ifndef nsDebugImpl_h
|
|
|
|
#define nsDebugImpl_h
|
|
|
|
|
2009-01-09 00:50:21 +03:00
|
|
|
#include "nsIDebug2.h"
|
2003-07-08 02:11:36 +04:00
|
|
|
|
2009-01-09 00:50:21 +03:00
|
|
|
class nsDebugImpl : public nsIDebug2
|
2003-07-08 02:11:36 +04:00
|
|
|
{
|
|
|
|
public:
|
2015-05-14 02:47:55 +03:00
|
|
|
nsDebugImpl() = default;
|
2014-05-05 21:30:39 +04:00
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIDEBUG2
|
|
|
|
|
2014-05-13 21:41:38 +04:00
|
|
|
static nsresult Create(nsISupports* aOuter, const nsIID& aIID,
|
|
|
|
void** aInstancePtr);
|
2014-05-05 21:30:39 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Inform nsDebugImpl that we're in multiprocess mode.
|
|
|
|
*
|
|
|
|
* If aDesc is not nullptr, the string it points to must be
|
|
|
|
* statically-allocated (i.e., it must be a string literal).
|
|
|
|
*/
|
2014-05-13 21:41:38 +04:00
|
|
|
static void SetMultiprocessMode(const char* aDesc);
|
2003-07-08 02:11:36 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#define NS_DEBUG_CONTRACTID "@mozilla.org/xpcom/debug;1"
|
|
|
|
#define NS_DEBUG_CID \
|
2015-05-07 08:28:37 +03:00
|
|
|
{ /* cb6cdb94-e417-4601-b4a5-f991bf41453d */ \
|
|
|
|
0xcb6cdb94, \
|
|
|
|
0xe417, \
|
|
|
|
0x4601, \
|
|
|
|
{0xb4, 0xa5, 0xf9, 0x91, 0xbf, 0x41, 0x45, 0x3d} \
|
2013-11-26 20:39:19 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // nsDebugImpl_h
|