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

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: cast for x86 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/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..524f05168ac36cdbab44b209b142ec6ddae31365 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
Mark Mentovai 2015/05/01 20:00:14 These need to be //!.
scottmg 2015/05/01 20:45:58 Done.
+// 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_

Powered by Google App Engine
This is Rietveld 408576698