| 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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 static void LogNumberOfProfilesRemovedDuringDedupe(size_t num_removed); | 669 static void LogNumberOfProfilesRemovedDuringDedupe(size_t num_removed); |
| 670 | 670 |
| 671 // Log whether the Autofill query on a credit card form is made in a secure | 671 // Log whether the Autofill query on a credit card form is made in a secure |
| 672 // context. | 672 // context. |
| 673 static void LogIsQueriedCreditCardFormSecure(bool is_secure); | 673 static void LogIsQueriedCreditCardFormSecure(bool is_secure); |
| 674 | 674 |
| 675 // Log how the converted wallet address was added to the local autofill | 675 // Log how the converted wallet address was added to the local autofill |
| 676 // profiles. | 676 // profiles. |
| 677 static void LogWalletAddressConversionType(WalletAddressConversionType type); | 677 static void LogWalletAddressConversionType(WalletAddressConversionType type); |
| 678 | 678 |
| 679 // This should be called when the user selects the Form-Not-Secure warning |
| 680 // suggestion to show an explanation of the warning. |
| 681 static void LogShowedHttpNotSecureExplanation(); |
| 682 |
| 679 // Utility to autofill form events in the relevant histograms depending on | 683 // Utility to autofill form events in the relevant histograms depending on |
| 680 // the presence of server and/or local data. | 684 // the presence of server and/or local data. |
| 681 class FormEventLogger { | 685 class FormEventLogger { |
| 682 public: | 686 public: |
| 683 FormEventLogger(bool is_for_credit_card); | 687 FormEventLogger(bool is_for_credit_card); |
| 684 | 688 |
| 685 inline void set_is_server_data_available(bool is_server_data_available) { | 689 inline void set_is_server_data_available(bool is_server_data_available) { |
| 686 is_server_data_available_ = is_server_data_available; | 690 is_server_data_available_ = is_server_data_available; |
| 687 } | 691 } |
| 688 | 692 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 FormFieldData last_polled_field_; | 731 FormFieldData last_polled_field_; |
| 728 }; | 732 }; |
| 729 | 733 |
| 730 private: | 734 private: |
| 731 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); | 735 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); |
| 732 }; | 736 }; |
| 733 | 737 |
| 734 } // namespace autofill | 738 } // namespace autofill |
| 735 | 739 |
| 736 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 740 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
| OLD | NEW |