| 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_
|
|
|