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

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: . 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
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..b5d7d9af6f1efee9c2d3c1066835711bf19ed8be 100644
--- a/snapshot/win/process_reader_win.h
+++ b/snapshot/win/process_reader_win.h
@@ -42,8 +42,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(uintptr_t at, size_t 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);

Powered by Google App Engine
This is Rietveld 408576698