OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 NUM_DIALOG_UI_EVENTS | 276 NUM_DIALOG_UI_EVENTS |
277 }; | 277 }; |
278 | 278 |
279 enum InfoBarMetric { | 279 enum InfoBarMetric { |
280 INFOBAR_SHOWN = 0, // We showed an infobar, e.g. prompting to save credit | 280 INFOBAR_SHOWN = 0, // We showed an infobar, e.g. prompting to save credit |
281 // card info. | 281 // card info. |
282 INFOBAR_ACCEPTED, // The user explicitly accepted the infobar. | 282 INFOBAR_ACCEPTED, // The user explicitly accepted the infobar. |
283 INFOBAR_DENIED, // The user explicitly denied the infobar. | 283 INFOBAR_DENIED, // The user explicitly denied the infobar. |
284 INFOBAR_IGNORED, // The user completely ignored the infobar (logged on | 284 INFOBAR_IGNORED, // The user completely ignored the infobar (logged on |
285 // tab close). | 285 // tab close). |
| 286 INFOBAR_NOT_SHOWN_INVALID_LEGAL_MESSAGE, // We didn't show the infobar |
| 287 // because the provided legal |
| 288 // message was invalid. |
286 NUM_INFO_BAR_METRICS, | 289 NUM_INFO_BAR_METRICS, |
287 }; | 290 }; |
288 | 291 |
289 // Metrics to measure user interaction with the save credit card prompt. | 292 // Metrics to measure user interaction with the save credit card prompt. |
290 // | 293 // |
291 // SAVE_CARD_PROMPT_DISMISS_FOCUS is not stored explicitly, but can be | 294 // SAVE_CARD_PROMPT_DISMISS_FOCUS is not stored explicitly, but can be |
292 // inferred from the other metrics: | 295 // inferred from the other metrics: |
293 // SAVE_CARD_PROMPT_DISMISS_FOCUS = SHOW_REQUESTED - END_* - DISMISS_* | 296 // SAVE_CARD_PROMPT_DISMISS_FOCUS = SHOW_REQUESTED - END_* - DISMISS_* |
294 enum SaveCardPromptMetric { | 297 enum SaveCardPromptMetric { |
295 // Prompt was requested to be shown due to: | 298 // Prompt was requested to be shown due to: |
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
962 | 965 |
963 private: | 966 private: |
964 static const int kNumCardUploadDecisionMetrics = 12; | 967 static const int kNumCardUploadDecisionMetrics = 12; |
965 | 968 |
966 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); | 969 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); |
967 }; | 970 }; |
968 | 971 |
969 } // namespace autofill | 972 } // namespace autofill |
970 | 973 |
971 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 974 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
OLD | NEW |