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; |