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

Unified Diff: snapshot/win/process_snapshot_win.cc

Issue 1407643004: Some plumbing for the beginning of getting handles into snapshot/minidump (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@handles-redux
Patch Set: . 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/win/process_snapshot_win.h ('k') | util/win/process_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/win/process_snapshot_win.cc
diff --git a/snapshot/win/process_snapshot_win.cc b/snapshot/win/process_snapshot_win.cc
index 98e955c0e3d139e208f22c951b6d53e53f4f5445..9a6f4f68ed77b2c94f5d385d86f9e008a6005d83 100644
--- a/snapshot/win/process_snapshot_win.cc
+++ b/snapshot/win/process_snapshot_win.cc
@@ -202,6 +202,21 @@ std::vector<const MemoryMapRegionSnapshot*> ProcessSnapshotWin::MemoryMap()
return memory_map;
}
+std::vector<HandleSnapshot> ProcessSnapshotWin::Handles() const {
+ std::vector<HandleSnapshot> result;
+ for (const auto& handle : process_reader_.GetProcessInfo().Handles()) {
+ HandleSnapshot snapshot;
+ snapshot.type_name = handle.type_name;
+ snapshot.handle = handle.handle;
+ snapshot.attributes = handle.attributes;
+ snapshot.granted_access = handle.granted_access;
+ snapshot.pointer_count = handle.pointer_count;
+ snapshot.handle_count = handle.handle_count;
+ result.push_back(snapshot);
+ }
+ return result;
+}
+
std::vector<const MemorySnapshot*> ProcessSnapshotWin::ExtraMemory() const {
INITIALIZATION_STATE_DCHECK_VALID(initialized_);
std::vector<const MemorySnapshot*> extra_memory;
« no previous file with comments | « snapshot/win/process_snapshot_win.h ('k') | util/win/process_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698