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

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: docs 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') | handler/crashpad_handler.ad » ('J')
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 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
« no previous file with comments | « no previous file | handler/crash_report_upload_thread.cc » ('j') | handler/crashpad_handler.ad » ('J')

Powered by Google App Engine
This is Rietveld 408576698