Public Member Functions | Friends | List of all members
crashpad::CrashReportDatabase::NewReport Class Reference

A crash report that is in the process of being written. More...

#include "client/crash_report_database.h"

Public Member Functions

FileWriterWriter () const
 An open FileWriter with which to write the report.
const UUIDReportID () const
FileWriterAddAttachment (const std::string &name)
 Adds an attachment to the report. More...


class CrashReportDatabaseGeneric
class CrashReportDatabaseMac
class CrashReportDatabaseWin

Detailed Description

A crash report that is in the process of being written.

An instance of this class should be created via PrepareNewCrashReport().

Member Function Documentation

◆ AddAttachment()

FileWriter * crashpad::CrashReportDatabase::NewReport::AddAttachment ( const std::string &  name)

Adds an attachment to the report.

This function is not yet implemented on macOS or Windows.
[in]nameThe key and name for the attachment, which will be included in the http upload. The attachment will not appear in the minidump report. name should only use characters from the set [a-zA-Z0-9._-].
A FileWriter that the caller should use to write the contents of the attachment, or nullptr on failure with an error logged.

◆ ReportID()

const UUID& crashpad::CrashReportDatabase::NewReport::ReportID ( ) const

A unique identifier by which this report will always be known to the database.

The documentation for this class was generated from the following files: