2014-05-05 10:30:39 -07: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 04:12:37 -07: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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2013-11-26 08:39:19 -08:00
|
|
|
#ifndef nsDebugImpl_h
|
|
|
|
#define nsDebugImpl_h
|
|
|
|
|
2009-01-08 13:50:21 -08:00
|
|
|
#include "nsIDebug2.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-01-08 13:50:21 -08:00
|
|
|
class nsDebugImpl : public nsIDebug2
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
public:
|
2015-05-13 16:47:55 -07:00
|
|
|
nsDebugImpl() = default;
|
2014-05-05 10:30:39 -07:00
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIDEBUG2
|
|
|
|
|
2014-05-13 10:41:38 -07:00
|
|
|
static nsresult Create(nsISupports* aOuter, const nsIID& aIID,
|
|
|
|
void** aInstancePtr);
|
2014-05-05 10:30:39 -07: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 10:41:38 -07:00
|
|
|
static void SetMultiprocessMode(const char* aDesc);
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#define NS_DEBUG_CONTRACTID "@mozilla.org/xpcom/debug;1"
|
|
|
|
#define NS_DEBUG_CID \
|
2015-05-06 22:28:37 -07:00
|
|
|
{ /* cb6cdb94-e417-4601-b4a5-f991bf41453d */ \
|
|
|
|
0xcb6cdb94, \
|
|
|
|
0xe417, \
|
|
|
|
0x4601, \
|
|
|
|
{0xb4, 0xa5, 0xf9, 0x91, 0xbf, 0x41, 0x45, 0x3d} \
|
2013-11-26 08:39:19 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // nsDebugImpl_h
|