Index: handler/crash_report_upload_thread.h |
diff --git a/handler/crash_report_upload_thread.h b/handler/crash_report_upload_thread.h |
index ee5a6fdba252f614861e5dede32d794df965e121..05fb9fc16f14089dd1a90aec689568f3eeee40e7 100644 |
--- a/handler/crash_report_upload_thread.h |
+++ b/handler/crash_report_upload_thread.h |
@@ -43,8 +43,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(). |
@@ -135,6 +138,7 @@ class CrashReportUploadThread : public WorkerThread::Delegate { |
std::string url_; |
WorkerThread thread_; |
CrashReportDatabase* database_; // weak |
+ bool rate_limit_; |
DISALLOW_COPY_AND_ASSIGN(CrashReportUploadThread); |
}; |