#include "minidump/minidump_thread_writer.h"
#include <utility>
#include "base/check_op.h"
#include "base/logging.h"
#include "minidump/minidump_context_writer.h"
#include "minidump/minidump_memory_writer.h"
#include "snapshot/memory_snapshot.h"
#include "snapshot/thread_snapshot.h"
#include "util/file/file_writer.h"
#include "util/numeric/safe_assignment.h"
namespace crashpad {
MinidumpThreadWriter::MinidumpThreadWriter()
: … { … }
MinidumpThreadWriter::~MinidumpThreadWriter() { … }
void MinidumpThreadWriter::InitializeFromSnapshot(
const ThreadSnapshot* thread_snapshot,
const MinidumpThreadIDMap* thread_id_map) { … }
const MINIDUMP_THREAD* MinidumpThreadWriter::MinidumpThread() const { … }
void MinidumpThreadWriter::SetStack(
std::unique_ptr<SnapshotMinidumpMemoryWriter> stack) { … }
void MinidumpThreadWriter::SetContext(
std::unique_ptr<MinidumpContextWriter> context) { … }
bool MinidumpThreadWriter::Freeze() { … }
size_t MinidumpThreadWriter::SizeOfObject() { … }
std::vector<internal::MinidumpWritable*> MinidumpThreadWriter::Children() { … }
bool MinidumpThreadWriter::WriteObject(FileWriterInterface* file_writer) { … }
MinidumpThreadListWriter::MinidumpThreadListWriter()
: … { … }
MinidumpThreadListWriter::~MinidumpThreadListWriter() { … }
void MinidumpThreadListWriter::InitializeFromSnapshot(
const std::vector<const ThreadSnapshot*>& thread_snapshots,
MinidumpThreadIDMap* thread_id_map) { … }
void MinidumpThreadListWriter::SetMemoryListWriter(
MinidumpMemoryListWriter* memory_list_writer) { … }
void MinidumpThreadListWriter::AddThread(
std::unique_ptr<MinidumpThreadWriter> thread) { … }
bool MinidumpThreadListWriter::Freeze() { … }
size_t MinidumpThreadListWriter::SizeOfObject() { … }
std::vector<internal::MinidumpWritable*> MinidumpThreadListWriter::Children() { … }
bool MinidumpThreadListWriter::WriteObject(FileWriterInterface* file_writer) { … }
MinidumpStreamType MinidumpThreadListWriter::StreamType() const { … }
}