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

Unified Diff: snapshot/win/memory_snapshot_win.h

Issue 1131473005: win: Add thread snapshot and memory snapshot for stacks (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: comment Created 5 years, 7 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 | « snapshot/snapshot.gyp ('k') | snapshot/win/memory_snapshot_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/win/memory_snapshot_win.h
diff --git a/snapshot/mac/memory_snapshot_mac.h b/snapshot/win/memory_snapshot_win.h
similarity index 72%
copy from snapshot/mac/memory_snapshot_mac.h
copy to snapshot/win/memory_snapshot_win.h
index 2f19082400305d488be0497aa7c7fad7ccbbf1b6..b6d2074e243a1c51f4c76a566250c621a16cda37 100644
--- a/snapshot/mac/memory_snapshot_mac.h
+++ b/snapshot/win/memory_snapshot_win.h
@@ -1,4 +1,4 @@
-// Copyright 2014 The Crashpad Authors. All rights reserved.
+// Copyright 2015 The Crashpad Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -12,26 +12,26 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef CRASHPAD_SNAPSHOT_MAC_MEMORY_SNAPSHOT_MAC_H_
-#define CRASHPAD_SNAPSHOT_MAC_MEMORY_SNAPSHOT_MAC_H_
+#ifndef CRASHPAD_SNAPSHOT_WIN_MEMORY_SNAPSHOT_WIN_H_
+#define CRASHPAD_SNAPSHOT_WIN_MEMORY_SNAPSHOT_WIN_H_
#include <stdint.h>
#include <sys/types.h>
#include "base/basictypes.h"
-#include "snapshot/mac/process_reader.h"
#include "snapshot/memory_snapshot.h"
+#include "snapshot/win/process_reader_win.h"
#include "util/misc/initialization_state_dcheck.h"
namespace crashpad {
namespace internal {
//! \brief A MemorySnapshot of a memory region in a process on the running
-//! system, when the system runs Mac OS X.
-class MemorySnapshotMac final : public MemorySnapshot {
+//! system, when the system runs Windows.
+class MemorySnapshotWin final : public MemorySnapshot {
public:
- MemorySnapshotMac();
- ~MemorySnapshotMac() override;
+ MemorySnapshotWin();
+ ~MemorySnapshotWin() override;
//! \brief Initializes the object.
//!
@@ -41,9 +41,9 @@ class MemorySnapshotMac final : public MemorySnapshot {
//!
//! \param[in] process_reader A reader for the process being snapshotted.
//! \param[in] address The base address of the memory region to snapshot, in
- //! the snapshot process’ address space.
+ //! the snapshot process' address space.
//! \param[in] size The size of the memory region to snapshot.
- void Initialize(ProcessReader* process_reader,
+ void Initialize(ProcessReaderWin* process_reader,
uint64_t address,
uint64_t size);
@@ -54,15 +54,15 @@ class MemorySnapshotMac final : public MemorySnapshot {
bool Read(Delegate* delegate) const override;
private:
- ProcessReader* process_reader_; // weak
+ ProcessReaderWin* process_reader_; // weak
uint64_t address_;
- uint64_t size_;
+ size_t size_;
InitializationStateDcheck initialized_;
- DISALLOW_COPY_AND_ASSIGN(MemorySnapshotMac);
+ DISALLOW_COPY_AND_ASSIGN(MemorySnapshotWin);
};
} // namespace internal
} // namespace crashpad
-#endif // CRASHPAD_SNAPSHOT_MAC_MEMORY_SNAPSHOT_MAC_H_
+#endif // CRASHPAD_SNAPSHOT_WIN_MEMORY_SNAPSHOT_WIN_H_
« no previous file with comments | « snapshot/snapshot.gyp ('k') | snapshot/win/memory_snapshot_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698