Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / components / metrics / metrics_reporting_scheduler.h
index 3e58aaa..19f0757 100644 (file)
@@ -51,6 +51,12 @@ class MetricsReportingScheduler {
   // where the server is having issues.
   void BackOffUploadInterval();
 
+  // Returns upload interval based on the system and experiment that the user is
+  // assigned to.
+  // TODO(gayane): Only for experimenting with upload interval for Android
+  // (bug: 17391128). Should be removed once the experiments are done.
+  base::TimeDelta GetStandardUploadInterval();
+
   // The MetricsService method to call when uploading should happen.
   const base::Closure upload_callback_;
 
@@ -60,6 +66,10 @@ class MetricsReportingScheduler {
   // upload.
   base::TimeDelta upload_interval_;
 
+  // The tick count of the last time log upload has been finished and null if no
+  // upload has been done yet.
+  base::TimeTicks last_upload_finish_time_;
+
   // Indicates that the scheduler is running (i.e., that Start has been called
   // more recently than Stop).
   bool running_;