| Index: util/win/process_info.h
|
| diff --git a/util/win/process_info.h b/util/win/process_info.h
|
| index fb1b8b3e0ac6783e3b85e594d976277d79b269f9..5ebbb0bcdb575a90fdbd1acacb8c170bdcc595f6 100644
|
| --- a/util/win/process_info.h
|
| +++ b/util/win/process_info.h
|
| @@ -24,6 +24,7 @@
|
| #include "base/basictypes.h"
|
| #include "util/misc/initialization_state_dcheck.h"
|
| #include "util/numeric/checked_range.h"
|
| +#include "util/stdlib/aligned_allocator.h"
|
| #include "util/win/address_types.h"
|
|
|
| namespace crashpad {
|
| @@ -32,6 +33,9 @@ namespace crashpad {
|
| //! primarily of information stored in the Process Environment Block.
|
| class ProcessInfo {
|
| public:
|
| + using MemoryBasicInformation64Vector =
|
| + AlignedVector<MEMORY_BASIC_INFORMATION64>;
|
| +
|
| //! \brief Contains information about a module loaded into a process.
|
| struct Module {
|
| Module();
|
| @@ -124,7 +128,7 @@ class ProcessInfo {
|
| bool Modules(std::vector<Module>* modules) const;
|
|
|
| //! \brief Retrieves information about all pages mapped into the process.
|
| - const std::vector<MEMORY_BASIC_INFORMATION64>& MemoryInfo() const;
|
| + const MemoryBasicInformation64Vector& MemoryInfo() const;
|
|
|
| //! \brief Given a range to be read from the target process, returns a vector
|
| //! of ranges, representing the readable portions of the original range.
|
| @@ -174,7 +178,7 @@ class ProcessInfo {
|
| WinVMAddress peb_address_;
|
| WinVMSize peb_size_;
|
| std::vector<Module> modules_;
|
| - std::vector<MEMORY_BASIC_INFORMATION64> memory_info_;
|
| + MemoryBasicInformation64Vector memory_info_;
|
|
|
| // Handles() is logically const, but updates this member on first retrieval.
|
| // See https://crashpad.chromium.org/bug/9.
|
| @@ -195,7 +199,7 @@ class ProcessInfo {
|
| //! ProcessInfo::GetReadableRanges().
|
| std::vector<CheckedRange<WinVMAddress, WinVMSize>> GetReadableRangesOfMemoryMap(
|
| const CheckedRange<WinVMAddress, WinVMSize>& range,
|
| - const std::vector<MEMORY_BASIC_INFORMATION64>& memory_info);
|
| + const ProcessInfo::MemoryBasicInformation64Vector& memory_info);
|
|
|
| } // namespace crashpad
|
|
|
|
|