| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_AUTOFILL_METRICS_H_ | 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_METRICS_H_ |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_METRICS_H_ | 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_METRICS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "components/autofill/browser/autofill_manager_delegate.h" | 12 #include "components/autofill/browser/autofill_manager_delegate.h" |
| 13 #include "components/autofill/browser/field_types.h" | 13 #include "components/autofill/browser/field_types.h" |
| 14 | 14 |
| 15 namespace base { | 15 namespace base { |
| 16 class TimeDelta; | 16 class TimeDelta; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace autofill { | 19 namespace autofill { |
| 20 | 20 |
| 21 class AutofillMetrics { | 21 class AUTOFILL_EXPORT AutofillMetrics { |
| 22 public: | 22 public: |
| 23 // The possible results of an Autocheckout flow. | 23 // The possible results of an Autocheckout flow. |
| 24 enum AutocheckoutBuyFlowMetric { | 24 enum AutocheckoutBuyFlowMetric { |
| 25 // The user has initated Autocheckout. The baseline metric. | 25 // The user has initated Autocheckout. The baseline metric. |
| 26 AUTOCHECKOUT_BUY_FLOW_STARTED, | 26 AUTOCHECKOUT_BUY_FLOW_STARTED, |
| 27 // Autocheckout completed successfully. | 27 // Autocheckout completed successfully. |
| 28 AUTOCHECKOUT_BUY_FLOW_SUCCESS, | 28 AUTOCHECKOUT_BUY_FLOW_SUCCESS, |
| 29 // Autocheckout failed due to missing server side data. | 29 // Autocheckout failed due to missing server side data. |
| 30 AUTOCHECKOUT_BUY_FLOW_MISSING_FIELDMAPPING, | 30 AUTOCHECKOUT_BUY_FLOW_MISSING_FIELDMAPPING, |
| 31 // Autocheckout failed due to a missing proceed element. | 31 // Autocheckout failed due to a missing proceed element. |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 virtual void LogServerExperimentIdForUpload( | 490 virtual void LogServerExperimentIdForUpload( |
| 491 const std::string& experiment_id) const; | 491 const std::string& experiment_id) const; |
| 492 | 492 |
| 493 private: | 493 private: |
| 494 DISALLOW_COPY_AND_ASSIGN(AutofillMetrics); | 494 DISALLOW_COPY_AND_ASSIGN(AutofillMetrics); |
| 495 }; | 495 }; |
| 496 | 496 |
| 497 } // namespace autofill | 497 } // namespace autofill |
| 498 | 498 |
| 499 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_METRICS_H_ | 499 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_METRICS_H_ |
| OLD | NEW |