xpcom/base/nsDebugImpl.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xpcom/base/nsDebugImpl.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#ifndef nsDebugImpl_h
     1.9 +#define nsDebugImpl_h
    1.10 +
    1.11 +#include "nsIDebug.h"
    1.12 +#include "nsIDebug2.h"
    1.13 +
    1.14 +class nsDebugImpl : public nsIDebug2
    1.15 +{
    1.16 +public:
    1.17 +    nsDebugImpl() {}
    1.18 +    NS_DECL_ISUPPORTS
    1.19 +    NS_DECL_NSIDEBUG
    1.20 +    NS_DECL_NSIDEBUG2
    1.21 +
    1.22 +    static nsresult Create(nsISupports* outer, const nsIID& aIID, void* *aInstancePtr);
    1.23 +
    1.24 +    /*
    1.25 +     * Inform nsDebugImpl that we're in multiprocess mode.
    1.26 +     *
    1.27 +     * If aDesc is not nullptr, the string it points to must be
    1.28 +     * statically-allocated (i.e., it must be a string literal).
    1.29 +     */
    1.30 +    static void SetMultiprocessMode(const char *aDesc);
    1.31 +};
    1.32 +
    1.33 +
    1.34 +#define NS_DEBUG_CONTRACTID "@mozilla.org/xpcom/debug;1"
    1.35 +#define NS_DEBUG_CID                                 \
    1.36 +{ /* a80b1fb3-aaf6-4852-b678-c27eb7a518af */         \
    1.37 +  0xa80b1fb3,                                        \
    1.38 +    0xaaf6,                                          \
    1.39 +    0x4852,                                          \
    1.40 +    {0xb6, 0x78, 0xc2, 0x7e, 0xb7, 0xa5, 0x18, 0xaf} \
    1.41 +}
    1.42 +
    1.43 +#endif // nsDebugImpl_h

mercurial