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

Unified Diff: snapshot/mac/mach_o_image_annotations_reader.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/mach_o_image_annotations_reader.h
diff --git a/snapshot/mac/mach_o_image_annotations_reader.h b/snapshot/mac/mach_o_image_annotations_reader.h
index 8d92e99f9ce10442394928db2b00143e3efda66a..dbabdb9c0827f67a295b43553db799f9c5658244 100644
--- a/snapshot/mac/mach_o_image_annotations_reader.h
+++ b/snapshot/mac/mach_o_image_annotations_reader.h
@@ -20,6 +20,7 @@
#include <vector>
#include "base/basictypes.h"
+#include "snapshot/mac/process_types.h"
namespace crashpad {
@@ -66,6 +67,13 @@ class MachOImageAnnotationsReader {
//! pairs, where all keys and values are strings.
std::map<std::string, std::string> SimpleMap() const;
+ //! \brief Obtains the module’s CrashpadInfo structure.
+ //!
+ //! \return `true` on success, `false` on failure. If the module does not have
+ //! a `__crashpad_info` section, this will return `false` without logging
+ //! any messages. Other failures will result in messages being logged.
+ bool GetCrashpadInfo(process_types::CrashpadInfo* crashpad_info) const;
+
private:
// Reades crashreporter_annotations_t::message and
// crashreporter_annotations_t::message2 on behalf of Vector().

Powered by Google App Engine
This is Rietveld 408576698