Index: handler/crash_report_upload_thread.h |
diff --git a/handler/crash_report_upload_thread.h b/handler/crash_report_upload_thread.h |
index f015ef945498fe7e714d2daa93adb43a01cac44e..6ace268b47f916345eae0581aacdd1f82895fbdd 100644 |
--- a/handler/crash_report_upload_thread.h |
+++ b/handler/crash_report_upload_thread.h |
@@ -44,8 +44,11 @@ class CrashReportUploadThread : public WorkerThread::Delegate { |
//! |
//! \param[in] database The database to upload crash reports from. |
//! \param[in] url The URL of the server to upload crash reports to. |
+ //! \param[in] rate_limit Whether uploads should be throttled to a (currently |
+ //! hardcoded) rate. |
CrashReportUploadThread(CrashReportDatabase* database, |
- const std::string& url); |
+ const std::string& url, |
+ bool rate_limit); |
~CrashReportUploadThread(); |
//! \brief Starts a dedicated upload thread, which executes ThreadMain(). |
@@ -136,6 +139,7 @@ class CrashReportUploadThread : public WorkerThread::Delegate { |
std::string url_; |
WorkerThread thread_; |
CrashReportDatabase* database_; // weak |
+ bool rate_limit_; |
}; |
} // namespace crashpad |