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

Unified Diff: util/win/process_info.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 | « util/win/checked_win_address_range.h ('k') | util/win/process_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/win/process_info.h
diff --git a/util/win/process_info.h b/util/win/process_info.h
index 91ddb4aed9cc5c1832bef6011c69093e168e6c35..5d272c422237ab10583b11b814a23261a541eb0c 100644
--- a/util/win/process_info.h
+++ b/util/win/process_info.h
@@ -23,6 +23,7 @@
#include "base/basictypes.h"
#include "util/misc/initialization_state_dcheck.h"
+#include "util/win/address_types.h"
namespace crashpad {
@@ -30,6 +31,24 @@ namespace crashpad {
//! primarily of information stored in the Process Environment Block.
class ProcessInfo {
public:
+ //! \brief Contains information about a module loaded into a process.
+ struct Module {
+ Module();
+ ~Module();
+
+ //! \brief The pathname used to load the module from disk.
+ std::wstring name;
+
+ //! \brief The base address of the loaded DLL.
+ WinVMAddress dll_base;
+
+ //! \brief The size of the module.
+ WinVMSize size;
+
+ //! \brief The module's timestamp.
+ time_t timestamp;
+ };
+
ProcessInfo();
~ProcessInfo();
@@ -64,18 +83,18 @@ class ProcessInfo {
//! The modules are enumerated in initialization order as detailed in the
//! Process Environment Block. The main executable will always be the
//! first element.
- bool Modules(std::vector<std::wstring>* modules) const;
+ bool Modules(std::vector<Module>* modules) const;
private:
template <class T>
friend bool ReadProcessData(HANDLE process,
- uintptr_t peb_address_uintptr,
+ WinVMAddress peb_address_vmaddr,
ProcessInfo* process_info);
pid_t process_id_;
pid_t inherited_from_process_id_;
std::wstring command_line_;
- std::vector<std::wstring> modules_;
+ std::vector<Module> modules_;
bool is_64_bit_;
bool is_wow64_;
InitializationStateDcheck initialized_;
« no previous file with comments | « util/win/checked_win_address_range.h ('k') | util/win/process_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698