Index: util/win/address_types.h |
diff --git a/snapshot/win/process_reader_win.cc b/util/win/address_types.h |
similarity index 61% |
copy from snapshot/win/process_reader_win.cc |
copy to util/win/address_types.h |
index 383a66464a113334dd593e004d0d733da4b543a4..f26a57eff563cdb000eb7781b4cb0410cb7cd231 100644 |
--- a/snapshot/win/process_reader_win.cc |
+++ b/util/win/address_types.h |
@@ -12,23 +12,21 @@ |
// See the License for the specific language governing permissions and |
// limitations under the License. |
-#include "snapshot/win/process_reader_win.h" |
+#ifndef CRASHPAD_UTIL_WIN_ADDRESS_TYPES_H_ |
+#define CRASHPAD_UTIL_WIN_ADDRESS_TYPES_H_ |
-namespace crashpad { |
- |
-ProcessReaderWin::ProcessReaderWin() : process_info_(), initialized_() { |
-} |
- |
-ProcessReaderWin::~ProcessReaderWin() { |
-} |
+#include <stdint.h> |
-bool ProcessReaderWin::Initialize(HANDLE process) { |
- INITIALIZATION_STATE_SET_INITIALIZING(initialized_); |
+namespace crashpad { |
- process_info_.Initialize(process); |
+//! \brief Type used to represent an address in a process, potentially across |
+//! bitness. |
+using WinVMAddress = uint64_t; |
- INITIALIZATION_STATE_SET_VALID(initialized_); |
- return true; |
-} |
+//! \brief Type used to represent the size of a memory range (with a |
+//! WinVMAddress), potentially across bitness. |
+using WinVMSize = uint64_t; |
} // namespace crashpad |
+ |
+#endif // CRASHPAD_UTIL_WIN_ADDRESS_TYPES_H_ |