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

Unified Diff: snapshot/mac/module_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/module_snapshot_mac.h
diff --git a/snapshot/mac/module_snapshot_mac.h b/snapshot/mac/module_snapshot_mac.h
index e86ed432ee5a9c84aa53e82d5d8b0e06d3cf3af5..f828de9e9bb68be1f1b2047bc2593bb2e5ca7555 100644
--- a/snapshot/mac/module_snapshot_mac.h
+++ b/snapshot/mac/module_snapshot_mac.h
@@ -23,6 +23,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "client/crashpad_info.h"
#include "snapshot/mac/process_reader.h"
#include "snapshot/module_snapshot.h"
#include "util/misc/initialization_state_dcheck.h"
@@ -53,6 +54,18 @@ class ModuleSnapshotMac final : public ModuleSnapshot {
bool Initialize(ProcessReader* process_reader,
const ProcessReader::Module& process_reader_module);
+ //! \brief Returns options from the module’s CrashpadInfo structure.
+ //!
+ //! \param[out] enable_crashpad_handler The value configured by
+ //! CrashpadInfo::SetCrashpadHandlerState(), or CrashpadInfo::kDefault
+ //! if there is no Crashpad client structure.
+ //! \param[out] enable_native_crash_reporter_forwarding The value configured
+ //! by CrashpadInfo::SetNativeCrashReporterForwarding(), or
+ //! CrashpadInfo::kDefault if there is no Crashpad client structure.
+ void GetCrashpadOptions(
+ CrashpadInfo::TriState* enable_crashpad_handler,
+ CrashpadInfo::TriState* enable_native_crash_reporter_forwarding);
+
// ModuleSnapshot:
std::string Name() const override;

Powered by Google App Engine
This is Rietveld 408576698