| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SECURITY_INTERSTITIALS_CORE_METRICS_HELPER_H_ | 5 #ifndef COMPONENTS_SECURITY_INTERSTITIALS_CORE_METRICS_HELPER_H_ |
| 6 #define COMPONENTS_SECURITY_INTERSTITIALS_CORE_METRICS_HELPER_H_ | 6 #define COMPONENTS_SECURITY_INTERSTITIALS_CORE_METRICS_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 SHOW_ADVANCED, | 48 SHOW_ADVANCED, |
| 49 SHOW_PRIVACY_POLICY, | 49 SHOW_PRIVACY_POLICY, |
| 50 SHOW_DIAGNOSTIC, | 50 SHOW_DIAGNOSTIC, |
| 51 SHOW_LEARN_MORE, | 51 SHOW_LEARN_MORE, |
| 52 RELOAD, | 52 RELOAD, |
| 53 OPEN_TIME_SETTINGS, | 53 OPEN_TIME_SETTINGS, |
| 54 SET_EXTENDED_REPORTING_ENABLED, | 54 SET_EXTENDED_REPORTING_ENABLED, |
| 55 SET_EXTENDED_REPORTING_DISABLED, | 55 SET_EXTENDED_REPORTING_DISABLED, |
| 56 EXTENDED_REPORTING_IS_ENABLED, | 56 EXTENDED_REPORTING_IS_ENABLED, |
| 57 REPORT_PHISHING_ERROR, | 57 REPORT_PHISHING_ERROR, |
| 58 SHOW_WHITEPAPER, |
| 58 MAX_INTERACTION | 59 MAX_INTERACTION |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 // metric_prefix: Histogram prefix for UMA. | 62 // metric_prefix: Histogram prefix for UMA. |
| 62 // examples: "phishing", "ssl_overridable" | 63 // examples: "phishing", "ssl_overridable" |
| 63 // extra_suffix: If not-empty, will generate second set of metrics by | 64 // extra_suffix: If not-empty, will generate second set of metrics by |
| 64 // placing at the end of the metric name. Examples: | 65 // placing at the end of the metric name. Examples: |
| 65 // "from_datasaver", "from_device" | 66 // "from_datasaver", "from_device" |
| 66 // rappor_prefix: Metric prefix for Rappor. | 67 // rappor_prefix: Metric prefix for Rappor. |
| 67 // examples: "phishing2", "ssl3" | 68 // examples: "phishing2", "ssl3" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 base::WeakPtr<rappor::RapporService> rappor_service_; | 132 base::WeakPtr<rappor::RapporService> rappor_service_; |
| 132 int num_visits_; | 133 int num_visits_; |
| 133 base::CancelableTaskTracker request_tracker_; | 134 base::CancelableTaskTracker request_tracker_; |
| 134 | 135 |
| 135 DISALLOW_COPY_AND_ASSIGN(MetricsHelper); | 136 DISALLOW_COPY_AND_ASSIGN(MetricsHelper); |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 } // namespace security_interstitials | 139 } // namespace security_interstitials |
| 139 | 140 |
| 140 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_METRICS_HELPER_H_ | 141 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_METRICS_HELPER_H_ |
| OLD | NEW |