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

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: . 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..0a63aa6f62eef458d8f6d4b7b5ee8e60d30dbe03 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.
+ win_vm_address_t dll_base;
+
+ //! \brief The size of the module.
+ win_vm_size_t size;
+
+ //! \brief The module's timestamp.
+ time_t timestamp;
+ };
+
ProcessInfo();
~ProcessInfo();
@@ -64,7 +83,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 +94,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