Chromium Code Reviews| Index: client/crashpad_client.h |
| diff --git a/client/crashpad_client.h b/client/crashpad_client.h |
| index 27d6111b21c50c0325d4429df029c6b58a030026..cb205edeb1d862dece116d1cb2baa9ab4cce7740 100644 |
| --- a/client/crashpad_client.h |
| +++ b/client/crashpad_client.h |
| @@ -25,6 +25,8 @@ |
| #if defined(OS_MACOSX) |
| #include "base/mac/scoped_mach_port.h" |
| +#elif defined(OS_WIN) |
| +#include <windows.h> |
| #endif |
| namespace crashpad { |
| @@ -87,6 +89,15 @@ class CrashpadClient { |
| //! |
| //! \return `true` on success and `false` on failure. |
| bool SetHandler(const std::string& ipc_port); |
| + |
| + //! \brief Requests that the handler capture a dump even though there hasn't |
| + //! been a crash. |
| + //! |
| + //! \param[in] context A CONTEXT, generally captured by `RtlCaptureContext()` |
| + //! or similar. |
| + //! |
| + //! \return `true` on success, `false` on failure with a message logged. |
|
Mark Mentovai
2015/09/24 20:37:29
Nobody checks the return value, so you can just ma
scottmg
2015/09/24 21:16:59
Done.
|
| + static bool DumpWithoutCrash(const CONTEXT& context); |
| #endif |
| //! \brief Configures the process to direct its crashes to a Crashpad handler. |