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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 // been able to get upload details. | 75 // been able to get upload details. |
76 UPLOAD_NOT_OFFERED_NO_ZIP_CODE, | 76 UPLOAD_NOT_OFFERED_NO_ZIP_CODE, |
77 // A CVC, one or more valid addresses, and a name were available but the | 77 // A CVC, one or more valid addresses, and a name were available but the |
78 // request to Payments for upload details failed. | 78 // request to Payments for upload details failed. |
79 UPLOAD_NOT_OFFERED_GET_UPLOAD_DETAILS_FAILED, | 79 UPLOAD_NOT_OFFERED_GET_UPLOAD_DETAILS_FAILED, |
80 // A CVC and one or more addresses were available but the names on the card | 80 // A CVC and one or more addresses were available but the names on the card |
81 // and/or the addresses didn't match. We don't know whether the address(es) | 81 // and/or the addresses didn't match. We don't know whether the address(es) |
82 // were otherwise valid nor whether we would have been able to get upload | 82 // were otherwise valid nor whether we would have been able to get upload |
83 // details. | 83 // details. |
84 UPLOAD_NOT_OFFERED_CONFLICTING_NAMES, | 84 UPLOAD_NOT_OFFERED_CONFLICTING_NAMES, |
| 85 // No CVC was detected, but valid addresses and names were. Upload is still |
| 86 // possible if the user manually enters CVC, so upload was offered. |
| 87 UPLOAD_OFFERED_NO_CVC, |
85 NUM_CARD_UPLOAD_DECISION_METRICS, | 88 NUM_CARD_UPLOAD_DECISION_METRICS, |
86 }; | 89 }; |
87 | 90 |
88 enum DeveloperEngagementMetric { | 91 enum DeveloperEngagementMetric { |
89 // Parsed a form that is potentially autofillable and does not contain any | 92 // Parsed a form that is potentially autofillable and does not contain any |
90 // web developer-specified field type hint. | 93 // web developer-specified field type hint. |
91 FILLABLE_FORM_PARSED_WITHOUT_TYPE_HINTS = 0, | 94 FILLABLE_FORM_PARSED_WITHOUT_TYPE_HINTS = 0, |
92 // Parsed a form that is potentially autofillable and contains at least one | 95 // Parsed a form that is potentially autofillable and contains at least one |
93 // web developer-specified field type hint, a la | 96 // web developer-specified field type hint, a la |
94 // http://is.gd/whatwg_autocomplete | 97 // http://is.gd/whatwg_autocomplete |
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 FormFieldData last_polled_field_; | 776 FormFieldData last_polled_field_; |
774 }; | 777 }; |
775 | 778 |
776 private: | 779 private: |
777 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); | 780 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); |
778 }; | 781 }; |
779 | 782 |
780 } // namespace autofill | 783 } // namespace autofill |
781 | 784 |
782 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ | 785 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ |
OLD | NEW |