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

Unified Diff: components/domain_reliability/scheduler.h

Issue 357103002: Domain Reliability: Add rudimentary WebUI page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compiler errors (cast size_t to int in WebUI code) Created 6 years, 5 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 | « components/domain_reliability/monitor.cc ('k') | components/domain_reliability/scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/domain_reliability/scheduler.h
diff --git a/components/domain_reliability/scheduler.h b/components/domain_reliability/scheduler.h
index c62fe58369eb02b5a0557fb30f53c284a539deb1..95b2fbfa8f926343f482187b3969e4a050dabc00 100644
--- a/components/domain_reliability/scheduler.h
+++ b/components/domain_reliability/scheduler.h
@@ -11,6 +11,10 @@
#include "base/time/time.h"
#include "components/domain_reliability/domain_reliability_export.h"
+namespace base {
+class Value;
+} // namespace base
+
namespace domain_reliability {
class DomainReliabilityConfig;
@@ -65,6 +69,8 @@ class DOMAIN_RELIABILITY_EXPORT DomainReliabilityScheduler {
// upload was successful, and false otherwise.
void OnUploadComplete(bool success);
+ base::Value* GetWebUIData() const;
+
private:
struct CollectorState {
CollectorState();
@@ -111,6 +117,16 @@ class DOMAIN_RELIABILITY_EXPORT DomainReliabilityScheduler {
// first_beacon_time_ saved during uploads. Restored if upload fails.
base::TimeTicks old_first_beacon_time_;
+
+ // Extra bits to return in GetWebUIData.
+ base::TimeTicks scheduled_min_time_;
+ base::TimeTicks scheduled_max_time_;
+ // Whether the other last_upload_* fields are populated.
+ bool last_upload_finished_;
+ base::TimeTicks last_upload_start_time_;
+ base::TimeTicks last_upload_end_time_;
+ size_t last_upload_collector_index_;
+ bool last_upload_success_;
};
} // namespace domain_reliability
« no previous file with comments | « components/domain_reliability/monitor.cc ('k') | components/domain_reliability/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698