#include "snapshot/linux/capture_memory_delegate_linux.h"
#include <utility>
#include "base/numerics/safe_conversions.h"
#include "snapshot/memory_snapshot_generic.h"
namespace crashpad {
namespace internal {
CaptureMemoryDelegateLinux::CaptureMemoryDelegateLinux(
ProcessReaderLinux* process_reader,
const ProcessReaderLinux::Thread* thread_opt,
std::vector<std::unique_ptr<MemorySnapshotGeneric>>* snapshots,
uint32_t* budget_remaining)
: … { … }
bool CaptureMemoryDelegateLinux::Is64Bit() const { … }
bool CaptureMemoryDelegateLinux::ReadMemory(uint64_t at,
uint64_t num_bytes,
void* into) const { … }
std::vector<CheckedRange<uint64_t>>
CaptureMemoryDelegateLinux::GetReadableRanges(
const CheckedRange<uint64_t, uint64_t>& range) const { … }
void CaptureMemoryDelegateLinux::AddNewMemorySnapshot(
const CheckedRange<uint64_t, uint64_t>& range) { … }
}
}