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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 UPGRADE_MIN_ADDRESS, | 506 UPGRADE_MIN_ADDRESS, |
507 CHOOSE_ANOTHER_INSTRUMENT_OR_ADDRESS, | 507 CHOOSE_ANOTHER_INSTRUMENT_OR_ADDRESS, |
508 VERIFY_CVV, | 508 VERIFY_CVV, |
509 INVALID_FORM_FIELD, | 509 INVALID_FORM_FIELD, |
510 REQUIRE_PHONE_NUMBER, | 510 REQUIRE_PHONE_NUMBER, |
511 NUM_WALLET_REQUIRED_ACTIONS | 511 NUM_WALLET_REQUIRED_ACTIONS |
512 }; | 512 }; |
513 | 513 |
514 static void LogCardUploadDecisionMetric(CardUploadDecisionMetric metric); | 514 static void LogCardUploadDecisionMetric(CardUploadDecisionMetric metric); |
515 static void LogCreditCardInfoBarMetric(InfoBarMetric metric); | 515 static void LogCreditCardInfoBarMetric(InfoBarMetric metric); |
| 516 static void LogCreditCardFillingInfoBarMetric(InfoBarMetric metric); |
516 static void LogSaveCardPromptMetric(SaveCardPromptMetric metric, | 517 static void LogSaveCardPromptMetric(SaveCardPromptMetric metric, |
517 bool is_uploading, | 518 bool is_uploading, |
518 bool is_reshow); | 519 bool is_reshow); |
519 static void LogScanCreditCardPromptMetric(ScanCreditCardPromptMetric metric); | 520 static void LogScanCreditCardPromptMetric(ScanCreditCardPromptMetric metric); |
520 | 521 |
521 // Should be called when credit card scan is finished. |duration| should be | 522 // Should be called when credit card scan is finished. |duration| should be |
522 // the time elapsed between launching the credit card scanner and getting back | 523 // the time elapsed between launching the credit card scanner and getting back |
523 // the result. |completed| should be true if a credit card was scanned, false | 524 // the result. |completed| should be true if a credit card was scanned, false |
524 // if the scan was cancelled. | 525 // if the scan was cancelled. |
525 static void LogScanCreditCardCompleted(const base::TimeDelta& duration, | 526 static void LogScanCreditCardCompleted(const base::TimeDelta& duration, |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 FormFieldData last_polled_field_; | 702 FormFieldData last_polled_field_; |
702 }; | 703 }; |
703 | 704 |
704 private: | 705 private: |
705 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); | 706 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); |
706 }; | 707 }; |
707 | 708 |
708 } // namespace autofill | 709 } // namespace autofill |
709 | 710 |
710 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 711 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
OLD | NEW |