OLD | NEW |
1 // Copyright 2015 The Crashpad Authors. All rights reserved. | 1 // Copyright 2015 The Crashpad Authors. All rights reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 friend bool GetProcessBasicInformation(HANDLE process, | 134 friend bool GetProcessBasicInformation(HANDLE process, |
135 bool is_wow64, | 135 bool is_wow64, |
136 ProcessInfo* process_info, | 136 ProcessInfo* process_info, |
137 WinVMAddress* peb_address, | 137 WinVMAddress* peb_address, |
138 WinVMSize* peb_size); | 138 WinVMSize* peb_size); |
139 template <class Traits> | 139 template <class Traits> |
140 friend bool ReadProcessData(HANDLE process, | 140 friend bool ReadProcessData(HANDLE process, |
141 WinVMAddress peb_address_vmaddr, | 141 WinVMAddress peb_address_vmaddr, |
142 ProcessInfo* process_info); | 142 ProcessInfo* process_info); |
143 | 143 |
144 friend bool ReadMemoryInfo(HANDLE process, ProcessInfo* process_info); | 144 friend bool ReadMemoryInfo(HANDLE process, |
| 145 bool is_64_bit, |
| 146 ProcessInfo* process_info); |
145 | 147 |
146 pid_t process_id_; | 148 pid_t process_id_; |
147 pid_t inherited_from_process_id_; | 149 pid_t inherited_from_process_id_; |
148 std::wstring command_line_; | 150 std::wstring command_line_; |
149 WinVMAddress peb_address_; | 151 WinVMAddress peb_address_; |
150 WinVMSize peb_size_; | 152 WinVMSize peb_size_; |
151 std::vector<Module> modules_; | 153 std::vector<Module> modules_; |
152 std::vector<MemoryInfo> memory_info_; | 154 std::vector<MemoryInfo> memory_info_; |
153 bool is_64_bit_; | 155 bool is_64_bit_; |
154 bool is_wow64_; | 156 bool is_wow64_; |
155 InitializationStateDcheck initialized_; | 157 InitializationStateDcheck initialized_; |
156 | 158 |
157 DISALLOW_COPY_AND_ASSIGN(ProcessInfo); | 159 DISALLOW_COPY_AND_ASSIGN(ProcessInfo); |
158 }; | 160 }; |
159 | 161 |
160 } // namespace crashpad | 162 } // namespace crashpad |
161 | 163 |
162 #endif // CRASHPAD_UTIL_WIN_PROCESS_INFO_H_ | 164 #endif // CRASHPAD_UTIL_WIN_PROCESS_INFO_H_ |
OLD | NEW |