summaryrefslogtreecommitdiff
path: root/chromium/ui/base/prediction/prediction_metrics_handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/base/prediction/prediction_metrics_handler.h')
-rw-r--r--chromium/ui/base/prediction/prediction_metrics_handler.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/chromium/ui/base/prediction/prediction_metrics_handler.h b/chromium/ui/base/prediction/prediction_metrics_handler.h
index 648ccdd9998..24167f5954f 100644
--- a/chromium/ui/base/prediction/prediction_metrics_handler.h
+++ b/chromium/ui/base/prediction/prediction_metrics_handler.h
@@ -25,7 +25,7 @@ class PredictionMetricsHandlerTest;
// few metrics.
class COMPONENT_EXPORT(UI_BASE_PREDICTION) PredictionMetricsHandler {
public:
- explicit PredictionMetricsHandler();
+ explicit PredictionMetricsHandler(const char* histogram_name);
~PredictionMetricsHandler();
// Struct used to store predicted and real event information.
@@ -103,6 +103,12 @@ class COMPONENT_EXPORT(UI_BASE_PREDICTION) PredictionMetricsHandler {
base::Optional<gfx::PointF> last_predicted_ = base::nullopt;
// The first real event position which time is later than the predicted time.
gfx::PointF next_real_;
+
+ // Beginning of the full histogram name. It will have the various metrics'
+ // names (.OverPrediction, .UnderPrediction, .WrongDirection,
+ // .PredictionJitter, .VisualJitter) appended to it when counting the metric
+ // in a histogram.
+ const char* const histogram_name_;
};
} // namespace ui