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 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 // Log how many profiles were considered for the deduplication process. | 656 // Log how many profiles were considered for the deduplication process. |
657 static void LogNumberOfProfilesConsideredForDedupe(size_t num_considered); | 657 static void LogNumberOfProfilesConsideredForDedupe(size_t num_considered); |
658 | 658 |
659 // Log how many profiles were removed as part of the deduplication process. | 659 // Log how many profiles were removed as part of the deduplication process. |
660 static void LogNumberOfProfilesRemovedDuringDedupe(size_t num_removed); | 660 static void LogNumberOfProfilesRemovedDuringDedupe(size_t num_removed); |
661 | 661 |
662 // Log whether the Autofill query on a credit card form is made in a secure | 662 // Log whether the Autofill query on a credit card form is made in a secure |
663 // context. | 663 // context. |
664 static void LogIsQueriedCreditCardFormSecure(bool is_secure); | 664 static void LogIsQueriedCreditCardFormSecure(bool is_secure); |
665 | 665 |
| 666 // This should be called when the user selects the Form-Not-Secure warning |
| 667 // suggestion to show an explanation of the warning. |
| 668 static void LogShowedHttpNotSecureExplanation(); |
| 669 |
666 // Utility to autofill form events in the relevant histograms depending on | 670 // Utility to autofill form events in the relevant histograms depending on |
667 // the presence of server and/or local data. | 671 // the presence of server and/or local data. |
668 class FormEventLogger { | 672 class FormEventLogger { |
669 public: | 673 public: |
670 FormEventLogger(bool is_for_credit_card); | 674 FormEventLogger(bool is_for_credit_card); |
671 | 675 |
672 inline void set_is_server_data_available(bool is_server_data_available) { | 676 inline void set_is_server_data_available(bool is_server_data_available) { |
673 is_server_data_available_ = is_server_data_available; | 677 is_server_data_available_ = is_server_data_available; |
674 } | 678 } |
675 | 679 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 FormFieldData last_polled_field_; | 718 FormFieldData last_polled_field_; |
715 }; | 719 }; |
716 | 720 |
717 private: | 721 private: |
718 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); | 722 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); |
719 }; | 723 }; |
720 | 724 |
721 } // namespace autofill | 725 } // namespace autofill |
722 | 726 |
723 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 727 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
OLD | NEW |