Index: snapshot/process_snapshot.h |
diff --git a/snapshot/process_snapshot.h b/snapshot/process_snapshot.h |
index 42df05c9b21cf8d6c39ac7197a0fd117264f6bd5..f2fceef271fc5cdaac3cf5f0c498afc161b172ee 100644 |
--- a/snapshot/process_snapshot.h |
+++ b/snapshot/process_snapshot.h |
@@ -27,6 +27,7 @@ |
namespace crashpad { |
class ExceptionSnapshot; |
+class MemorySnapshot; |
class ModuleSnapshot; |
class SystemSnapshot; |
class ThreadSnapshot; |
@@ -160,6 +161,15 @@ class ProcessSnapshot { |
//! object that it was obtained from. If the snapshot is not a result of |
//! an exception, returns `nullptr`. |
virtual const ExceptionSnapshot* Exception() const = 0; |
+ |
+ //! \brief Returns a vector of additional memory blocks that should be |
+ //! included in a minidump. |
+ //! |
+ //! \return An vector of MemorySnapshot objects that will be included in the |
+ //! crash dump. The caller does not take ownership of these objects, they |
+ //! are scoped to the lifetime of the ProcessSnapshot object that they |
+ //! were obtained from. |
+ virtual std::vector<const MemorySnapshot*> ExtraMemory() const = 0; |
}; |
} // namespace crashpad |