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

Unified Diff: client/crashpad_info.h

Issue 1287073002: Implement more of CrashpadClient on Windows (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: elseif Created 5 years, 4 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/crashpad_client_win.cc ('k') | client/crashpad_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/crashpad_info.h
diff --git a/client/crashpad_info.h b/client/crashpad_info.h
index 5ce9fb8e8fd97ec29fdc3d393b48fe9643846485..57ea4eb33af9e2613fbeb1b1c84fe9a95fe1b522 100644
--- a/client/crashpad_info.h
+++ b/client/crashpad_info.h
@@ -19,9 +19,14 @@
#include <stdint.h>
+#include "build/build_config.h"
#include "client/simple_string_dictionary.h"
#include "util/misc/tri_state.h"
+#if defined(OS_WIN)
+#include <windows.h>
+#endif // OS_WIN
+
namespace crashpad {
//! \brief A structure that can be used by a Crashpad-enabled program to
@@ -93,6 +98,13 @@ struct CrashpadInfo {
system_crash_reporter_forwarding_ = system_crash_reporter_forwarding;
}
+#if defined(OS_WIN)
+ //! \brief Save an EXCEPTION_POINTERS record for the crash handler.
+ void set_exception_pointers(EXCEPTION_POINTERS* exception_pointers) {
+ exception_pointers_ = exception_pointers;
+ }
+#endif // OS_WIN
+
enum : uint32_t {
kSignature = 'CPad',
};
@@ -116,6 +128,10 @@ struct CrashpadInfo {
uint16_t padding_0_;
SimpleStringDictionary* simple_annotations_; // weak
+#if defined(OS_WIN)
+ EXCEPTION_POINTERS* exception_pointers_;
+#endif // OS_WIN
+
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
« no previous file with comments | « client/crashpad_client_win.cc ('k') | client/crashpad_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698