Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5946)

Unified Diff: client/crashpad_client.h

Issue 1356383002: win: Implement CRASHPAD_SIMULATE_CRASH() (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: fixes Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/client.gyp ('k') | client/crashpad_client_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « client/client.gyp ('k') | client/crashpad_client_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698