<areahref="classcrashpad_1_1CrashReportDatabase.html"title="An interface for managing a collection of crash report files and metadata associated with the crash r..."alt="crashpad::CrashReportDatabase"shape="rect"coords="0,0,216,24"/>
<trclass="memdesc:a6937857d53e9e7de656cb5388d91a1d0"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the <aclass="el"href="classcrashpad_1_1Settings.html"title="An interface for accessing and modifying the settings of a CrashReportDatabase. ">Settings</a> object for this database. <ahref="#a6937857d53e9e7de656cb5388d91a1d0">More...</a><br/></td></tr>
<trclass="memdesc:a6da9af1cdc7e3f3bd24a52be280e1371"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates a record of a new crash report. <ahref="#a6da9af1cdc7e3f3bd24a52be280e1371">More...</a><br/></td></tr>
<trclass="memdesc:a3f92307c8d84d5a0822d7412db997cf6"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Informs the database that a crash report has been successfully written. <ahref="#a3f92307c8d84d5a0822d7412db997cf6">More...</a><br/></td></tr>
<trclass="memdesc:a169d708e76fff838309dfa46095a04e7"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the crash report record for the unique identifier. <ahref="#a169d708e76fff838309dfa46095a04e7">More...</a><br/></td></tr>
<trclass="memdesc:a16ddf168ba04b4e889a18882b5a7e280"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a list of crash report records that have not been uploaded. <ahref="#a16ddf168ba04b4e889a18882b5a7e280">More...</a><br/></td></tr>
<trclass="memdesc:ac70f0365623f26abcaf8a1eced25dbc8"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a list of crash report records that have been completed, either by being uploaded or by skipping upload. <ahref="#ac70f0365623f26abcaf8a1eced25dbc8">More...</a><br/></td></tr>
<trclass="memdesc:a34ec65f696f0284ac0890dc268902154"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Obtains and locks a report object for uploading to a collection server. <ahref="#a34ec65f696f0284ac0890dc268902154">More...</a><br/></td></tr>
<trclass="memdesc:a5a26772b33767a3e9f6bf56c40a4440b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Moves a report from the pending state to the completed state, but without the report being uploaded. <ahref="#a5a26772b33767a3e9f6bf56c40a4440b">More...</a><br/></td></tr>
<trclass="memdesc:a8d00c5da892c1fc2abf10b1a7180adbe"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Deletes a crash report file and its associated metadata. <ahref="#a8d00c5da892c1fc2abf10b1a7180adbe">More...</a><br/></td></tr>
<trclass="memdesc:aa241dbd8fcd739370b79b87ffee4ac86"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Marks a crash report as explicitly requested to be uploaded by the user and moves it to 'pending' state. <ahref="#aa241dbd8fcd739370b79b87ffee4ac86">More...</a><br/></td></tr>
<trclass="inherit_header pub_methods_classcrashpad_1_1CrashReportDatabase"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_classcrashpad_1_1CrashReportDatabase')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="classcrashpad_1_1CrashReportDatabase.html">crashpad::CrashReportDatabase</a></td></tr>
<trclass="memdesc:a329a165c28e20bc3458e697ea8778517 inherit pub_methods_classcrashpad_1_1CrashReportDatabase"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Records a successful upload for a report and updates the last upload attempt time as returned by <aclass="el"href="classcrashpad_1_1Settings.html#a855f61d6fc73042dcb886ef40d8e4429"title="Retrieves the last time at which a report was attempted to be uploaded. ">Settings::GetLastUploadAttemptTime()</a>. <ahref="classcrashpad_1_1CrashReportDatabase.html#a329a165c28e20bc3458e697ea8778517">More...</a><br/></td></tr>
<trclass="memdesc:af06b2b1312d8a824559d99232a173576 inherit pub_methods_classcrashpad_1_1CrashReportDatabase"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Cleans the database of expired lockfiles, metadata without report files, and report files without metadata. <ahref="classcrashpad_1_1CrashReportDatabase.html#af06b2b1312d8a824559d99232a173576">More...</a><br/></td></tr>
<trclass="inherit_header pub_types_classcrashpad_1_1CrashReportDatabase"><tdcolspan="2"onclick="javascript:toggleInherit('pub_types_classcrashpad_1_1CrashReportDatabase')"><imgsrc="closed.png"alt="-"/> Public Types inherited from <aclass="el"href="classcrashpad_1_1CrashReportDatabase.html">crashpad::CrashReportDatabase</a></td></tr>
<trclass="memitem:a0bbd146654537fa0cf1b576eb647bb00 inherit pub_types_classcrashpad_1_1CrashReportDatabase"><tdclass="memItemLeft"align="right"valign="top">enum  </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="classcrashpad_1_1CrashReportDatabase.html#a0bbd146654537fa0cf1b576eb647bb00">OperationStatus</a><trclass="memdesc:a0bbd146654537fa0cf1b576eb647bb00"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The result code for operations performed on a database. <ahref="classcrashpad_1_1CrashReportDatabase.html#a0bbd146654537fa0cf1b576eb647bb00">More...</a><br/></td></tr>
<trclass="inherit_header pub_static_methods_classcrashpad_1_1CrashReportDatabase"><tdcolspan="2"onclick="javascript:toggleInherit('pub_static_methods_classcrashpad_1_1CrashReportDatabase')"><imgsrc="closed.png"alt="-"/> Static Public Member Functions inherited from <aclass="el"href="classcrashpad_1_1CrashReportDatabase.html">crashpad::CrashReportDatabase</a></td></tr>
<trclass="memdesc:a00292742dfe4c0081d6987c5a32c7a3e inherit pub_static_methods_classcrashpad_1_1CrashReportDatabase"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Opens a database of crash reports, possibly creating it. <ahref="classcrashpad_1_1CrashReportDatabase.html#a00292742dfe4c0081d6987c5a32c7a3e">More...</a><br/></td></tr>
<trclass="memdesc:abc49f639a5880f51c7d69b955a3deae7 inherit pub_static_methods_classcrashpad_1_1CrashReportDatabase"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Opens an existing database of crash reports. <ahref="classcrashpad_1_1CrashReportDatabase.html#abc49f639a5880f51c7d69b955a3deae7">More...</a><br/></td></tr>
<p>Deletes a crash report file and its associated metadata. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">uuid</td><td>The <aclass="el"href="structcrashpad_1_1UUID.html"title="A universally unique identifier (UUID). ">UUID</a> of the report to delete.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>The operation status code. </dd></dl>
<p>Informs the database that a crash report has been successfully written. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">report</td><td>A NewReport obtained with <aclass="el"href="classcrashpad_1_1CrashReportDatabaseWin.html#a6da9af1cdc7e3f3bd24a52be280e1371"title="Creates a record of a new crash report. ">PrepareNewCrashReport()</a>. The NewReport object will be invalidated as part of this call. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">uuid</td><td>The <aclass="el"href="structcrashpad_1_1UUID.html"title="A universally unique identifier (UUID). ">UUID</a> of this crash report.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>The operation status code. </dd></dl>
<p>Returns a list of crash report records that have been completed, either by being uploaded or by skipping upload. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">reports</td><td>A list of crash report record objects. This must be empty on entry. Only valid if this returns <aclass="el"href="classcrashpad_1_1CrashReportDatabase.html#a0bbd146654537fa0cf1b576eb647bb00ad73503b93bff6f4ae156a65fcb5e71f8"title="No error occurred. ">kNoError</a>.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>The operation status code. </dd></dl>
<p>Returns a list of crash report records that have not been uploaded. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">reports</td><td>A list of crash report record objects. This must be empty on entry. Only valid if this returns <aclass="el"href="classcrashpad_1_1CrashReportDatabase.html#a0bbd146654537fa0cf1b576eb647bb00ad73503b93bff6f4ae156a65fcb5e71f8"title="No error occurred. ">kNoError</a>.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>The operation status code. </dd></dl>
<p>Obtains and locks a report object for uploading to a collection server. </p>
<p>Callers should upload the crash report using the <aclass="el"href="classcrashpad_1_1FileReader.html"title="A file reader implementation that wraps traditional system file operations on files accessed through ...">FileReader</a> provided. Callers should then call <aclass="el"href="classcrashpad_1_1CrashReportDatabase.html#a329a165c28e20bc3458e697ea8778517"title="Records a successful upload for a report and updates the last upload attempt time as returned by Sett...">RecordUploadComplete()</a> to record a successful upload. If <aclass="el"href="classcrashpad_1_1CrashReportDatabase.html#a329a165c28e20bc3458e697ea8778517"title="Records a successful upload for a report and updates the last upload attempt time as returned by Sett...">RecordUploadComplete()</a> is not called, the upload attempt will be recorded as unsuccessful and the report lock released when <em>report</em> is destroyed.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">uuid</td><td>The unique identifier for the crash report record. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">report</td><td>A crash report record for the report to be uploaded. Only valid if this returns <aclass="el"href="classcrashpad_1_1CrashReportDatabase.html#a0bbd146654537fa0cf1b576eb647bb00ad73503b93bff6f4ae156a65fcb5e71f8"title="No error occurred. ">kNoError</a>. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">report_metrics</td><td>If <code>false</code>, metrics will not be recorded for this upload attempt when <aclass="el"href="classcrashpad_1_1CrashReportDatabase.html#a329a165c28e20bc3458e697ea8778517"title="Records a successful upload for a report and updates the last upload attempt time as returned by Sett...">RecordUploadComplete()</a> is called or <em>report</em> is destroyed. Metadata for the upload attempt will still be recorded in the database.</td></tr>
<p>Returns the <aclass="el"href="classcrashpad_1_1Settings.html"title="An interface for accessing and modifying the settings of a CrashReportDatabase. ">Settings</a> object for this database. </p>
<dlclass="section return"><dt>Returns</dt><dd>A weak pointer to the <aclass="el"href="classcrashpad_1_1Settings.html"title="An interface for accessing and modifying the settings of a CrashReportDatabase. ">Settings</a> object, which is owned by the database. </dd></dl>
<p>Returns the crash report record for the unique identifier. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">uuid</td><td>The crash report record unique identifier. </td></tr>
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">report</td><td>A crash report record. Only valid if this returns <aclass="el"href="classcrashpad_1_1CrashReportDatabase.html#a0bbd146654537fa0cf1b576eb647bb00ad73503b93bff6f4ae156a65fcb5e71f8"title="No error occurred. ">kNoError</a>.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>The operation status code. </dd></dl>
<p>Callers should write the crash report using the <aclass="el"href="classcrashpad_1_1FileWriter.html"title="A file writer implementation that wraps traditional system file operations on files accessed through ...">FileWriter</a> provided. Callers should then call <aclass="el"href="classcrashpad_1_1CrashReportDatabaseWin.html#a3f92307c8d84d5a0822d7412db997cf6"title="Informs the database that a crash report has been successfully written. ">FinishedWritingCrashReport()</a> to complete report creation. If an error is encountered while writing the crash report, no special action needs to be taken. If <aclass="el"href="classcrashpad_1_1CrashReportDatabaseWin.html#a3f92307c8d84d5a0822d7412db997cf6"title="Informs the database that a crash report has been successfully written. ">FinishedWritingCrashReport()</a> is not called, the report will be removed from the database when <em>report</em> is destroyed.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[out]</td><tdclass="paramname">report</td><td>A NewReport object containing a <aclass="el"href="classcrashpad_1_1FileWriter.html"title="A file writer implementation that wraps traditional system file operations on files accessed through ...">FileWriter</a> with which to write the report data. Only valid if this returns <aclass="el"href="classcrashpad_1_1CrashReportDatabase.html#a0bbd146654537fa0cf1b576eb647bb00ad73503b93bff6f4ae156a65fcb5e71f8"title="No error occurred. ">kNoError</a>.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>The operation status code. </dd></dl>
<p>Moves a report from the pending state to the completed state, but without the report being uploaded. </p>
<p>This can be used if the user has disabled crash report collection, but crash generation is still enabled in the product.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">uuid</td><td>The unique identifier for the crash report record. </td></tr>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">reason</td><td>The reason the report upload is being skipped for metrics tracking purposes.</td></tr>
</table>
</dd>
</dl>
<dlclass="section return"><dt>Returns</dt><dd>The operation status code. </dd></dl>