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

Unified Diff: snapshot/process_snapshot.h

Issue 1377133006: Mostly-boilerplate to add MemoryMapSnapshot (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@memory-info-to-misc
Patch Set: fixes Created 5 years, 2 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
« no previous file with comments | « snapshot/minidump/process_snapshot_minidump.cc ('k') | snapshot/snapshot.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/process_snapshot.h
diff --git a/snapshot/process_snapshot.h b/snapshot/process_snapshot.h
index f2fceef271fc5cdaac3cf5f0c498afc161b172ee..0a2f4f9fd4047ff57890e4de6ade4ef459022c38 100644
--- a/snapshot/process_snapshot.h
+++ b/snapshot/process_snapshot.h
@@ -27,6 +27,7 @@
namespace crashpad {
class ExceptionSnapshot;
+class MemoryMapRegionSnapshot;
class MemorySnapshot;
class ModuleSnapshot;
class SystemSnapshot;
@@ -162,6 +163,14 @@ class ProcessSnapshot {
//! an exception, returns `nullptr`.
virtual const ExceptionSnapshot* Exception() const = 0;
+ //! \brief Returns MemoryMapRegionSnapshot objects reflecting the regions
+ //! of the memory map in the snapshot process at the time of the snapshot.
+ //!
+ //! \return A vector of MemoryMapRegionSnapshot objects. 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 MemoryMapRegionSnapshot*> MemoryMap() const = 0;
+
//! \brief Returns a vector of additional memory blocks that should be
//! included in a minidump.
//!
« no previous file with comments | « snapshot/minidump/process_snapshot_minidump.cc ('k') | snapshot/snapshot.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698