Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2159)

Unified Diff: handler/crash_report_upload_thread.h

Issue 1563683002: Allow disabling upload rate-limiting (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | handler/crash_report_upload_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | handler/crash_report_upload_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698