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

Unified Diff: components/domain_reliability/scheduler.h

Issue 907993003: Domain Reliability: Measure backoff/retry time to collectors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
Index: components/domain_reliability/scheduler.h
diff --git a/components/domain_reliability/scheduler.h b/components/domain_reliability/scheduler.h
index aac257ed6e8d7466b0d22269767828fc93e0dd33..22a7fd86c8e17f533a524ed8cefc825a1ab813a7 100644
--- a/components/domain_reliability/scheduler.h
+++ b/components/domain_reliability/scheduler.h
@@ -78,6 +78,13 @@ class DOMAIN_RELIABILITY_EXPORT DomainReliabilityScheduler {
// unit tests.
void MakeDeterministicForTesting();
+ // Gets the time until the next upload attempt on the last collector used.
+ // This will be 0 if the upload was a success; it does not take into account
+ // minimum_upload_delay and maximum_upload_delay.
+ base::TimeDelta last_collector_retry_delay() const {
+ return last_collector_retry_delay_;
+ }
+
private:
void MaybeScheduleUpload();
@@ -115,6 +122,10 @@ class DOMAIN_RELIABILITY_EXPORT DomainReliabilityScheduler {
// first_beacon_time_ saved during uploads. Restored if upload fails.
base::TimeTicks old_first_beacon_time_;
+ // Time until the next upload attempt on the last collector used. (Saved for
+ // histograms in Context.)
+ base::TimeDelta last_collector_retry_delay_;
+
// Extra bits to return in GetWebUIData.
base::TimeTicks scheduled_min_time_;
base::TimeTicks scheduled_max_time_;

Powered by Google App Engine
This is Rietveld 408576698