#include "minidump/minidump_annotation_writer.h"
#include <memory>
#include "base/check_op.h"
#include "base/logging.h"
#include "util/file/file_writer.h"
#include "util/numeric/safe_assignment.h"
namespace crashpad {
MinidumpAnnotationWriter::MinidumpAnnotationWriter() = default;
MinidumpAnnotationWriter::~MinidumpAnnotationWriter() = default;
void MinidumpAnnotationWriter::InitializeFromSnapshot(
const AnnotationSnapshot& snapshot) { … }
void MinidumpAnnotationWriter::InitializeWithData(
const std::string& name,
uint16_t type,
const std::vector<uint8_t>& data) { … }
bool MinidumpAnnotationWriter::Freeze() { … }
size_t MinidumpAnnotationWriter::SizeOfObject() { … }
std::vector<internal::MinidumpWritable*> MinidumpAnnotationWriter::Children() { … }
bool MinidumpAnnotationWriter::WriteObject(FileWriterInterface* file_writer) { … }
MinidumpAnnotationListWriter::MinidumpAnnotationListWriter()
: … { … }
MinidumpAnnotationListWriter::~MinidumpAnnotationListWriter() = default;
void MinidumpAnnotationListWriter::InitializeFromList(
const std::vector<AnnotationSnapshot>& list) { … }
void MinidumpAnnotationListWriter::AddObject(
std::unique_ptr<MinidumpAnnotationWriter> annotation_writer) { … }
bool MinidumpAnnotationListWriter::IsUseful() const { … }
bool MinidumpAnnotationListWriter::Freeze() { … }
size_t MinidumpAnnotationListWriter::SizeOfObject() { … }
std::vector<internal::MinidumpWritable*>
MinidumpAnnotationListWriter::Children() { … }
bool MinidumpAnnotationListWriter::WriteObject(
FileWriterInterface* file_writer) { … }
}