2010-11-24 06:15:03 -08:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
* vim: set sw=4 ts=8 et 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/. */
|
2011-06-08 12:56:31 -07:00
|
|
|
|
|
|
|
#ifndef mozilla_dom_CrashReporterChild_h
|
|
|
|
#define mozilla_dom_CrashReporterChild_h
|
|
|
|
|
2010-11-24 06:15:03 -08:00
|
|
|
#include "mozilla/dom/PCrashReporterChild.h"
|
2011-06-08 12:56:31 -07:00
|
|
|
#ifdef MOZ_CRASHREPORTER
|
|
|
|
#include "nsExceptionHandler.h"
|
|
|
|
#include "nsXULAppAPI.h"
|
|
|
|
#endif
|
2010-11-24 06:15:03 -08:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
class CrashReporterChild :
|
|
|
|
public PCrashReporterChild
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CrashReporterChild() {
|
2011-06-08 12:56:31 -07:00
|
|
|
MOZ_COUNT_CTOR(CrashReporterChild);
|
2010-11-24 06:15:03 -08:00
|
|
|
}
|
2011-06-08 12:56:31 -07:00
|
|
|
~CrashReporterChild() {
|
|
|
|
MOZ_COUNT_DTOR(CrashReporterChild);
|
2010-11-24 06:15:03 -08:00
|
|
|
}
|
2011-06-08 12:56:31 -07:00
|
|
|
|
|
|
|
static PCrashReporterChild* GetCrashReporter();
|
2010-11-24 06:15:03 -08:00
|
|
|
};
|
2011-06-08 12:56:31 -07:00
|
|
|
|
2010-11-24 06:15:03 -08:00
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
2011-06-08 12:56:31 -07:00
|
|
|
|
|
|
|
#endif // mozilla_dom_CrashReporterChild_h
|