Index: client/crashpad_client.h |
diff --git a/client/crashpad_client.h b/client/crashpad_client.h |
index 27d6111b21c50c0325d4429df029c6b58a030026..60186a40bb8ad972958825d218e0bced550ba355 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,13 @@ 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. |
+ static void DumpWithoutCrash(const CONTEXT& context); |
#endif |
//! \brief Configures the process to direct its crashes to a Crashpad handler. |