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

Unified Diff: snapshot/mac/process_snapshot_mac.h

Issue 997713002: Allow exception forwarding to the system’s native crash reporter to be disabled (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 9 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: snapshot/mac/process_snapshot_mac.h
diff --git a/snapshot/mac/process_snapshot_mac.h b/snapshot/mac/process_snapshot_mac.h
index ef50b70c1525c451b8aca69880ea572f2c61680a..f34d4942622f9a026431057f0d0567e719012872 100644
--- a/snapshot/mac/process_snapshot_mac.h
+++ b/snapshot/mac/process_snapshot_mac.h
@@ -25,6 +25,7 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
+#include "client/crashpad_info.h"
#include "snapshot/exception_snapshot.h"
#include "snapshot/mac/exception_snapshot_mac.h"
#include "snapshot/mac/module_snapshot_mac.h"
@@ -85,6 +86,23 @@ class ProcessSnapshotMac final : public ProcessSnapshot {
annotations_simple_map_ = annotations_simple_map;
}
+ //! \brief Returns options from CrashpadInfo structures found in modules in
+ //! the process.
+ //!
+ //! \param[out] enable_crashpad_handler A value configured by
+ //! CrashpadInfo::SetCrashpadHandlerState(). Each module in the process is
+ //! considered until one has a CrashpadInfo structure with a value other
+ //! than CrashpadInfo::kDefault for this field. If nothing is found, this
+ //! will be CrashpadInfo::kDefault.
+ //! \param[out] enable_crashpad_handler A value configured by
+ //! CrashpadInfo::SetNativeCrashReporterForwarding(). Each module in the
+ //! process is considered until one has a CrashpadInfo structure with a
+ //! value other than CrashpadInfo::kDefault for this field. If nothing is
+ //! found, this will be CrashpadInfo::kDefault.
+ void GetCrashpadOptions(
+ CrashpadInfo::TriState* enable_crashpad_handler,
+ CrashpadInfo::TriState* enable_native_crash_reporter_forwarding);
+
// ProcessSnapshot:
pid_t ProcessID() const override;

Powered by Google App Engine
This is Rietveld 408576698