Crashpad
|
An abstract base class for evaluating crash reports for deletion. More...
#include "client/prune_crash_reports.h"
Public Member Functions | |
virtual bool | ShouldPruneReport (const CrashReportDatabase::Report &report)=0 |
Evaluates a crash report for deletion. More... | |
Static Public Member Functions | |
static std::unique_ptr< PruneCondition > | GetDefault () |
Returns a sensible default condition for removing obsolete crash reports. More... | |
An abstract base class for evaluating crash reports for deletion.
When passed to PruneCrashReportDatabase(), each crash report in the database will be evaluated according to ShouldPruneReport(). The reports are evaluated serially in descending sort order by CrashReportDatabase::Report::creation_time.
|
static |
Returns a sensible default condition for removing obsolete crash reports.
The default is to keep reports for one year or a maximum database size of 128 MB.
|
pure virtual |
Evaluates a crash report for deletion.
[in] | report | The crash report to evaluate. |
true
if the crash report should be deleted, false
if it should be kept. Implemented in crashpad::BinaryPruneCondition, crashpad::DatabaseSizePruneCondition, and crashpad::AgePruneCondition.