summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/autofill_metrics.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autofill/autofill_metrics.h')
-rw-r--r--chrome/browser/autofill/autofill_metrics.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/autofill/autofill_metrics.h b/chrome/browser/autofill/autofill_metrics.h
index 888336b..f270c7a 100644
--- a/chrome/browser/autofill/autofill_metrics.h
+++ b/chrome/browser/autofill/autofill_metrics.h
@@ -17,6 +17,16 @@ class TimeDelta;
class AutofillMetrics {
public:
+ enum DeveloperEngagementMetric {
+ // Parsed a form that is potentially autofillable.
+ FILLABLE_FORM_PARSED = 0,
+ // Parsed a form that is potentially autofillable and contains at least one
+ // web developer-specified field type hint, a la
+ // http://is.gd/whatwg_autocomplete
+ FILLABLE_FORM_CONTAINS_TYPE_HINTS,
+ NUM_DEVELOPER_ENGAGEMENT_METRICS
+ };
+
enum InfoBarMetric {
INFOBAR_SHOWN = 0, // We showed an infobar, e.g. prompting to save credit
// card info.
@@ -124,6 +134,9 @@ class AutofillMetrics {
virtual void LogCreditCardInfoBarMetric(InfoBarMetric metric) const;
+ virtual void LogDeveloperEngagementMetric(
+ DeveloperEngagementMetric metric) const;
+
virtual void LogHeuristicTypePrediction(
FieldTypeQualityMetric metric,
AutofillFieldType field_type,