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 | 10 |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 FORM_EVENT_MASKED_SERVER_CARD_SUGGESTION_SELECTED_ONCE, | 376 FORM_EVENT_MASKED_SERVER_CARD_SUGGESTION_SELECTED_ONCE, |
377 // An autofillable form is about to be submitted. If the submission is not | 377 // An autofillable form is about to be submitted. If the submission is not |
378 // interrupted by JavaScript, the "form submitted" events above will also be | 378 // interrupted by JavaScript, the "form submitted" events above will also be |
379 // logged. Depending on the user filling a local, server, masked server card | 379 // logged. Depending on the user filling a local, server, masked server card |
380 // or no suggestion one of the following will be triggered, at most once per | 380 // or no suggestion one of the following will be triggered, at most once per |
381 // page load. | 381 // page load. |
382 FORM_EVENT_NO_SUGGESTION_WILL_SUBMIT_ONCE, | 382 FORM_EVENT_NO_SUGGESTION_WILL_SUBMIT_ONCE, |
383 FORM_EVENT_LOCAL_SUGGESTION_WILL_SUBMIT_ONCE, | 383 FORM_EVENT_LOCAL_SUGGESTION_WILL_SUBMIT_ONCE, |
384 FORM_EVENT_SERVER_SUGGESTION_WILL_SUBMIT_ONCE, | 384 FORM_EVENT_SERVER_SUGGESTION_WILL_SUBMIT_ONCE, |
385 FORM_EVENT_MASKED_SERVER_CARD_SUGGESTION_WILL_SUBMIT_ONCE, | 385 FORM_EVENT_MASKED_SERVER_CARD_SUGGESTION_WILL_SUBMIT_ONCE, |
| 386 // A dropdown with suggestions was shown and a form was submitted after |
| 387 // that. |
| 388 FORM_EVENT_SUGGESTION_SHOWN_SUBMITTED_ONCE, |
| 389 // A dropdown with suggestions was shown and a form is about to be |
| 390 // submitted. If the submission is not interrupted by JavaScript, the "form |
| 391 // submitted" event above will also be logged. |
| 392 FORM_EVENT_SUGGESTION_SHOWN_WILL_SUBMIT_ONCE, |
386 | 393 |
387 NUM_FORM_EVENTS, | 394 NUM_FORM_EVENTS, |
388 }; | 395 }; |
389 | 396 |
390 // Events related to the Unmask Credit Card Prompt. | 397 // Events related to the Unmask Credit Card Prompt. |
391 enum UnmaskPromptEvent { | 398 enum UnmaskPromptEvent { |
392 // The prompt was shown. | 399 // The prompt was shown. |
393 UNMASK_PROMPT_SHOWN = 0, | 400 UNMASK_PROMPT_SHOWN = 0, |
394 // The prompt was closed without attempting to unmask the card. | 401 // The prompt was closed without attempting to unmask the card. |
395 UNMASK_PROMPT_CLOSED_NO_ATTEMPTS, | 402 UNMASK_PROMPT_CLOSED_NO_ATTEMPTS, |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 FormFieldData last_polled_field_; | 714 FormFieldData last_polled_field_; |
708 }; | 715 }; |
709 | 716 |
710 private: | 717 private: |
711 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); | 718 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); |
712 }; | 719 }; |
713 | 720 |
714 } // namespace autofill | 721 } // namespace autofill |
715 | 722 |
716 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 723 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
OLD | NEW |