toolkit/crashreporter/InjectCrashReporter.h
author Bevis Tseng <btseng@mozilla.com>
Tue, 15 Aug 2017 10:04:32 +0800
changeset 374785 26e12505e1aebb4fff765f4248d60dac73a71c48
parent 326976 f0b3e5e10633b7afbc69e7bf3b9b60ef56f524e7
child 399220 3d28ca7c05d8f9ba3ba6ff1cd5449dce42ae95c1
permissions -rw-r--r--
Bug 1367497 - Part 2: Make gfxFontCache use an expiration tracker that can assert the Servo font metrics mutex is locked. r=bevis,jfkthame

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */

#ifndef InjectCrashReporter_h
#define InjectCrashReporter_h

#include "nsThreadUtils.h"
#include <windows.h>

namespace mozilla {

class InjectCrashRunnable : public Runnable
{
public:
  explicit InjectCrashRunnable(DWORD pid);

  NS_IMETHOD Run();

private:
  DWORD mPID;
  nsString mInjectorPath;
};

} // Namespace mozilla

#endif