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

Unified Diff: snapshot/win/process_reader_win.h

Issue 1052813002: win: make CrashpadInfo retrievable (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: more fixes Created 5 years, 8 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/pe_image_reader.cc ('k') | snapshot/win/process_reader_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/win/process_reader_win.h
diff --git a/snapshot/win/process_reader_win.h b/snapshot/win/process_reader_win.h
index 1e079f0f7f98905271641efea95c2e25d9db94b7..b570a5e82c6b27dfce2ba3649360f38dd48b576c 100644
--- a/snapshot/win/process_reader_win.h
+++ b/snapshot/win/process_reader_win.h
@@ -18,6 +18,7 @@
#include <windows.h>
#include "util/misc/initialization_state_dcheck.h"
+#include "util/win/address_types.h"
#include "util/win/process_info.h"
namespace crashpad {
@@ -42,8 +43,19 @@ class ProcessReaderWin {
//! \return `true` if the target task is a 64-bit process.
bool Is64Bit() const { return process_info_.Is64Bit(); }
+ pid_t ProcessID() const { return process_info_.ProcessID(); }
+ pid_t ParentProcessID() const { return process_info_.ParentProcessID(); }
+
+ bool ReadMemory(WinVMAddress at, WinVMSize num_bytes, void* into);
+
+ //! \return The modules loaded in the process. The first element (at index
+ //! `0`) corresponds to the main executable.
+ const std::vector<ProcessInfo::Module>& Modules();
+
private:
+ HANDLE process_;
ProcessInfo process_info_;
+ std::vector<ProcessInfo::Module> modules_;
InitializationStateDcheck initialized_;
DISALLOW_COPY_AND_ASSIGN(ProcessReaderWin);
« no previous file with comments | « snapshot/win/pe_image_reader.cc ('k') | snapshot/win/process_reader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698