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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 inline void set_is_server_data_available(bool is_server_data_available) { | 686 inline void set_is_server_data_available(bool is_server_data_available) { |
687 is_server_data_available_ = is_server_data_available; | 687 is_server_data_available_ = is_server_data_available; |
688 } | 688 } |
689 | 689 |
690 inline void set_is_local_data_available(bool is_local_data_available) { | 690 inline void set_is_local_data_available(bool is_local_data_available) { |
691 is_local_data_available_ = is_local_data_available; | 691 is_local_data_available_ = is_local_data_available; |
692 } | 692 } |
693 | 693 |
694 void OnDidInteractWithAutofillableForm(); | 694 void OnDidInteractWithAutofillableForm(); |
695 | 695 |
696 void OnDidShowSuggestions(); | 696 void OnDidShowSuggestions(bool is_credit_card); |
697 | 697 |
698 void OnDidSelectMaskedServerCardSuggestion(); | 698 void OnDidSelectMaskedServerCardSuggestion(); |
699 | 699 |
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(); |
(...skipping 16 matching lines...) Expand all Loading... |
723 bool logged_suggestion_filled_was_masked_server_card_; | 723 bool logged_suggestion_filled_was_masked_server_card_; |
724 }; | 724 }; |
725 | 725 |
726 private: | 726 private: |
727 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); | 727 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); |
728 }; | 728 }; |
729 | 729 |
730 } // namespace autofill | 730 } // namespace autofill |
731 | 731 |
732 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 732 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
OLD | NEW |