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

Unified Diff: util/win/address_types.h

Issue 1052813002: win: make CrashpadInfo retrievable (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: more fixes 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
« no previous file with comments | « util/util_test.gyp ('k') | util/win/checked_win_address_range.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « util/util_test.gyp ('k') | util/win/checked_win_address_range.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698