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

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: mac 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
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.
« no previous file with comments | « client/client.gyp ('k') | client/crashpad_client_win.cc » ('j') | client/crashpad_client_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698