<ahref="#pub-methods">Public Member Functions</a>|
<ahref="classcrashpad_1_1CrashReportUploadThread-members.html">List of all members</a></div>
<divclass="headertitle">
<divclass="title">crashpad::CrashReportUploadThread Class Reference</div></div>
</div><!--header-->
<divclass="contents">
<p>A thread that processes pending crash reports in a <aclass="el"href="classcrashpad_1_1CrashReportDatabase.html"title="An interface for managing a collection of crash report files and metadata associated with the crash r...">CrashReportDatabase</a> by uploading them or marking them as completed without upload, as desired.
<areahref="classcrashpad_1_1WorkerThread_1_1Delegate.html"title="An interface for doing work on a WorkerThread. "alt="crashpad::WorkerThread::Delegate"shape="rect"coords="0,0,221,24"/>
<trclass="memdesc:af19f2a8b4a64741b37c6aeeb319a7a6c"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Constructs a new object. <ahref="#af19f2a8b4a64741b37c6aeeb319a7a6c">More...</a><br/></td></tr>
<trclass="memdesc:ad59667e3d1c518734c9cbb1741a19c0e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Starts a dedicated upload thread, which executes ThreadMain(). <ahref="#ad59667e3d1c518734c9cbb1741a19c0e">More...</a><br/></td></tr>
<trclass="memdesc:af3189181e4bb60a98e736edff644708d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Stops the upload thread. <ahref="#af3189181e4bb60a98e736edff644708d">More...</a><br/></td></tr>
<trclass="memdesc:affea498106bb97435e17d109dfdbfded"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Informs the upload thread that a new pending report has been added to the database. <ahref="#affea498106bb97435e17d109dfdbfded">More...</a><br/></td></tr>
<divclass="textblock"><p>A thread that processes pending crash reports in a <aclass="el"href="classcrashpad_1_1CrashReportDatabase.html"title="An interface for managing a collection of crash report files and metadata associated with the crash r...">CrashReportDatabase</a> by uploading them or marking them as completed without upload, as desired. </p>
<p>A producer of crash reports should notify an object of this class that a new report has been added to the database by calling <aclass="el"href="classcrashpad_1_1CrashReportUploadThread.html#affea498106bb97435e17d109dfdbfded"title="Informs the upload thread that a new pending report has been added to the database. ">ReportPending()</a>.</p>
<p>Independently of being triggered by <aclass="el"href="classcrashpad_1_1CrashReportUploadThread.html#affea498106bb97435e17d109dfdbfded"title="Informs the upload thread that a new pending report has been added to the database. ">ReportPending()</a>, objects of this class periodically examine the database for pending reports. This allows failed upload attempts for reports left in the pending state to be retried. It also catches reports that are added without a <aclass="el"href="classcrashpad_1_1CrashReportUploadThread.html#affea498106bb97435e17d109dfdbfded"title="Informs the upload thread that a new pending report has been added to the database. ">ReportPending()</a> signal being caught. This may happen if crash reports are added to the database by other processes. </p>
</div><h2class="groupheader">Constructor & Destructor Documentation</h2>
<tr><tdclass="paramdir">[in]</td><tdclass="paramname">rate_limit</td><td>Whether uploads should be throttled to a (currently hardcoded) rate. </td></tr>
<p>Starts a dedicated upload thread, which executes ThreadMain(). </p>
<p>This method may only be be called on a newly-constructed object or after a call to <aclass="el"href="classcrashpad_1_1CrashReportUploadThread.html#af3189181e4bb60a98e736edff644708d"title="Stops the upload thread. ">Stop()</a>. </p>
<p>The upload thread will terminate after completing whatever task it is performing. If it is not performing any task, it will terminate immediately. This method blocks while waiting for the upload thread to terminate.</p>
<p>This method must only be called after <aclass="el"href="classcrashpad_1_1CrashReportUploadThread.html#ad59667e3d1c518734c9cbb1741a19c0e"title="Starts a dedicated upload thread, which executes ThreadMain(). ">Start()</a>. If <aclass="el"href="classcrashpad_1_1CrashReportUploadThread.html#ad59667e3d1c518734c9cbb1741a19c0e"title="Starts a dedicated upload thread, which executes ThreadMain(). ">Start()</a> has been called, this method must be called before destroying an object of this class.</p>
<p>This method may be called from any thread other than the upload thread. It is expected to only be called from the same thread that called <aclass="el"href="classcrashpad_1_1CrashReportUploadThread.html#ad59667e3d1c518734c9cbb1741a19c0e"title="Starts a dedicated upload thread, which executes ThreadMain(). ">Start()</a>. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>handler/crash_report_upload_thread.h</li>
<li>handler/crash_report_upload_thread.cc</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hrclass="footer"/><addressclass="footer"><small>
Generated by  <ahref="http://www.doxygen.org/index.html">