| 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 CHROME_BROWSER_AUTOFILL_AUTOFILL_METRICS_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_METRICS_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_METRICS_H_ | 6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_METRICS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <stddef.h> |
| 9 #include <string> | 10 #include <string> |
| 10 | 11 |
| 11 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 12 | 13 |
| 13 class AutofillMetrics { | 14 class AutofillMetrics { |
| 14 public: | 15 public: |
| 15 // Each of these is logged at most once per form submission. | 16 // Each of these is logged at most once per form submission. |
| 16 enum CreditCardInfoBarMetric { | 17 enum CreditCardInfoBarMetric { |
| 17 // Logged when we show an infobar prompting to save credit card info. | 18 // Logged when we show an infobar prompting to save credit card info. |
| 18 CREDIT_CARD_INFOBAR_SHOWN = 0, | 19 CREDIT_CARD_INFOBAR_SHOWN = 0, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 virtual void Log(ServerQueryMetric metric) const; | 80 virtual void Log(ServerQueryMetric metric) const; |
| 80 | 81 |
| 81 // This should be called at most once per run. | 82 // This should be called at most once per run. |
| 82 virtual void LogStoredProfileCount(size_t num_profiles) const; | 83 virtual void LogStoredProfileCount(size_t num_profiles) const; |
| 83 | 84 |
| 84 private: | 85 private: |
| 85 DISALLOW_COPY_AND_ASSIGN(AutofillMetrics); | 86 DISALLOW_COPY_AND_ASSIGN(AutofillMetrics); |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_METRICS_H_ | 89 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_METRICS_H_ |
| OLD | NEW |