| 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 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 static void LogIsQueriedCreditCardFormSecure(bool is_secure); | 792 static void LogIsQueriedCreditCardFormSecure(bool is_secure); |
| 793 | 793 |
| 794 // Log how the converted wallet address was added to the local autofill | 794 // Log how the converted wallet address was added to the local autofill |
| 795 // profiles. | 795 // profiles. |
| 796 static void LogWalletAddressConversionType(WalletAddressConversionType type); | 796 static void LogWalletAddressConversionType(WalletAddressConversionType type); |
| 797 | 797 |
| 798 // This should be called when the user selects the Form-Not-Secure warning | 798 // This should be called when the user selects the Form-Not-Secure warning |
| 799 // suggestion to show an explanation of the warning. | 799 // suggestion to show an explanation of the warning. |
| 800 static void LogShowedHttpNotSecureExplanation(); | 800 static void LogShowedHttpNotSecureExplanation(); |
| 801 | 801 |
| 802 // Logs the card upload decision ukm based on the specified |url| and | 802 // Logs the card upload decisions ukm based on the specified |url| and |
| 803 // |upload_decision|. | 803 // |upload_decisions|. |
| 804 static void LogCardUploadDecisionUkm( | 804 static void LogCardUploadDecisionsUkm( |
| 805 ukm::UkmService* ukm_service, | 805 ukm::UkmService* ukm_service, |
| 806 const GURL& url, | 806 const GURL& url, |
| 807 AutofillMetrics::CardUploadDecisionMetric upload_decision); | 807 const std::vector<AutofillMetrics::CardUploadDecisionMetric>& |
| 808 upload_decisions); |
| 808 | 809 |
| 809 // Logs the developer engagement ukm for the specified |url| and autofill | 810 // Logs the developer engagement ukm for the specified |url| and autofill |
| 810 // fields in the form structure. | 811 // fields in the form structure. |
| 811 static void LogDeveloperEngagementUkm( | 812 static void LogDeveloperEngagementUkm( |
| 812 ukm::UkmService* ukm_service, | 813 ukm::UkmService* ukm_service, |
| 813 const GURL& url, | 814 const GURL& url, |
| 814 std::vector<AutofillMetrics::DeveloperEngagementMetric> metrics); | 815 std::vector<AutofillMetrics::DeveloperEngagementMetric> metrics); |
| 815 | 816 |
| 816 // Logs the the |ukm_entry_name| with the specified |url| and the specified | 817 // Logs the the |ukm_entry_name| with the specified |url| and the specified |
| 817 // |metrics|. Returns whether the ukm was sucessfully logged. | 818 // |metrics|. Returns whether the ukm was sucessfully logged. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 form_interactions_ukm_logger_; // Weak reference. | 881 form_interactions_ukm_logger_; // Weak reference. |
| 881 }; | 882 }; |
| 882 | 883 |
| 883 private: | 884 private: |
| 884 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); | 885 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); |
| 885 }; | 886 }; |
| 886 | 887 |
| 887 } // namespace autofill | 888 } // namespace autofill |
| 888 | 889 |
| 889 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 890 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
| OLD | NEW |