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 580 matching lines...) Loading... |
591 // This should be called at each form submission to indicate the autofilled | 591 // This should be called at each form submission to indicate the autofilled |
592 // state of the form. | 592 // state of the form. |
593 static void LogAutofillFormSubmittedState(AutofillFormSubmittedState state); | 593 static void LogAutofillFormSubmittedState(AutofillFormSubmittedState state); |
594 | 594 |
595 // Log the compression ratio obtained by compressing with gzip. Logs for the | 595 // Log the compression ratio obtained by compressing with gzip. Logs for the |
596 // query or upload request, depending on |type|. | 596 // query or upload request, depending on |type|. |
597 static void LogPayloadCompressionRatio( | 597 static void LogPayloadCompressionRatio( |
598 int compression_ratio, | 598 int compression_ratio, |
599 AutofillDownloadManager::RequestType type); | 599 AutofillDownloadManager::RequestType type); |
600 | 600 |
| 601 // Log success or failure in creating the ICU Collator needed for string |
| 602 // comparison. |
| 603 static void LogIcuCollatorCreationSuccess(bool success); |
| 604 |
601 // Utility to autofill form events in the relevant histograms depending on | 605 // Utility to autofill form events in the relevant histograms depending on |
602 // the presence of server and/or local data. | 606 // the presence of server and/or local data. |
603 class FormEventLogger { | 607 class FormEventLogger { |
604 public: | 608 public: |
605 FormEventLogger(bool is_for_credit_card); | 609 FormEventLogger(bool is_for_credit_card); |
606 | 610 |
607 inline void set_is_server_data_available(bool is_server_data_available) { | 611 inline void set_is_server_data_available(bool is_server_data_available) { |
608 is_server_data_available_ = is_server_data_available; | 612 is_server_data_available_ = is_server_data_available; |
609 } | 613 } |
610 | 614 |
(...skipping 33 matching lines...) Loading... |
644 bool logged_suggestion_filled_was_masked_server_card_; | 648 bool logged_suggestion_filled_was_masked_server_card_; |
645 }; | 649 }; |
646 | 650 |
647 private: | 651 private: |
648 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); | 652 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); |
649 }; | 653 }; |
650 | 654 |
651 } // namespace autofill | 655 } // namespace autofill |
652 | 656 |
653 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 657 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
OLD | NEW |