Chromium Code Reviews| 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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 700 // In case of masked cards, caller must make sure this gets called before | 700 // In case of masked cards, caller must make sure this gets called before |
| 701 // the card is upgraded to a full card. | 701 // the card is upgraded to a full card. |
| 702 void OnDidFillSuggestion(const CreditCard& credit_card); | 702 void OnDidFillSuggestion(const CreditCard& credit_card); |
| 703 | 703 |
| 704 void OnDidFillSuggestion(const AutofillProfile& profile); | 704 void OnDidFillSuggestion(const AutofillProfile& profile); |
| 705 | 705 |
| 706 void OnWillSubmitForm(); | 706 void OnWillSubmitForm(); |
| 707 | 707 |
| 708 void OnFormSubmitted(); | 708 void OnFormSubmitted(); |
| 709 | 709 |
| 710 void OnDidPollSuggestions(); | |
|
Mathieu
2016/04/12 14:44:32
nit: I would move this after OnDidInteract to resp
sebsg
2016/04/12 15:07:47
Done.
| |
| 711 | |
| 710 private: | 712 private: |
| 711 void Log(FormEvent event) const; | 713 void Log(FormEvent event) const; |
| 712 | 714 |
| 713 bool is_for_credit_card_; | 715 bool is_for_credit_card_; |
| 714 bool is_server_data_available_; | 716 bool is_server_data_available_; |
| 715 bool is_local_data_available_; | 717 bool is_local_data_available_; |
| 716 bool has_logged_interacted_; | 718 bool has_logged_interacted_; |
| 717 bool has_logged_suggestions_shown_; | 719 bool has_logged_suggestions_shown_; |
| 718 bool has_logged_masked_server_card_suggestion_selected_; | 720 bool has_logged_masked_server_card_suggestion_selected_; |
| 719 bool has_logged_suggestion_filled_; | 721 bool has_logged_suggestion_filled_; |
| 720 bool has_logged_will_submit_; | 722 bool has_logged_will_submit_; |
| 721 bool has_logged_submitted_; | 723 bool has_logged_submitted_; |
| 722 bool logged_suggestion_filled_was_server_data_; | 724 bool logged_suggestion_filled_was_server_data_; |
| 723 bool logged_suggestion_filled_was_masked_server_card_; | 725 bool logged_suggestion_filled_was_masked_server_card_; |
| 724 }; | 726 }; |
| 725 | 727 |
| 726 private: | 728 private: |
| 727 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); | 729 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); |
| 728 }; | 730 }; |
| 729 | 731 |
| 730 } // namespace autofill | 732 } // namespace autofill |
| 731 | 733 |
| 732 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 734 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
| OLD | NEW |