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

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: fix mac includes 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: util/win/process_info.h
diff --git a/util/win/process_info.h b/util/win/process_info.h
index 91ddb4aed9cc5c1832bef6011c69093e168e6c35..03a6d29792d56a9ed5c6630d569ad37949b38dbc 100644
--- a/util/win/process_info.h
+++ b/util/win/process_info.h
@@ -30,6 +30,21 @@ 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.
+ uintptr_t dll_base;
+
+ //! \brief The module's timestamp.
+ time_t timestamp;
+ };
+
ProcessInfo();
~ProcessInfo();
@@ -64,7 +79,7 @@ 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>
@@ -75,7 +90,7 @@ class ProcessInfo {
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_;

Powered by Google App Engine
This is Rietveld 408576698