Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_POLICY_CLOUD_ENTERPRISE_METRICS_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_ENTERPRISE_METRICS_H_ |
| 6 #define CHROME_BROWSER_POLICY_CLOUD_ENTERPRISE_METRICS_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_ENTERPRISE_METRICS_H_ |
| 7 | 7 |
| 8 namespace policy { | 8 namespace policy { |
| 9 | 9 |
| 10 // Metrics collected for enterprise events. | 10 // Metrics collected for enterprise events. |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 152 // DM server reported that the licenses for the domain has expired or been | 152 // DM server reported that the licenses for the domain has expired or been |
| 153 // exhausted. | 153 // exhausted. |
| 154 kMetricMissingLicensesError, | 154 kMetricMissingLicensesError, |
| 155 // Enrollment failed because the robot account auth token couldn't be | 155 // Enrollment failed because the robot account auth token couldn't be |
| 156 // exchanged for a refresh token. | 156 // exchanged for a refresh token. |
| 157 kMetricEnrollmentRobotRefreshTokenFetchFailed, | 157 kMetricEnrollmentRobotRefreshTokenFetchFailed, |
| 158 | 158 |
| 159 kMetricEnrollmentSize // Must be the last. | 159 kMetricEnrollmentSize // Must be the last. |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 // Events related to policy refresh. | |
| 163 enum MetricPolicyRefresh { | |
| 164 // A refresh occurred while the policy was not invalidated and the policy was | |
| 165 // changed. Invalidations were enabled. | |
| 166 kMetricPolicyRefreshChanged, | |
| 167 // A refresh occurred while the policy was not invalidated and the policy was | |
| 168 // changed. Invalidations were disabled. | |
| 169 kMetricPolicyRefreshChangedNoInvalidations, | |
| 170 // A refresh occurred while the policy was not invalidated and the policy was | |
| 171 // unchanged. | |
| 172 kMetricPolicyRefreshUnchanged, | |
| 173 // A refresh occurred while the policy was invalidated and the policy was | |
| 174 // changed. | |
| 175 kMetricPolicyRefreshInvalidatedChanged, | |
| 176 // A refresh occurred while the policy was invalidated and the policy was | |
| 177 // unchanged. | |
| 178 kMetricPolicyRefreshInvalidatedUnchanged, | |
| 179 | |
| 180 kMetricPolicyRefreshSize // Must be the last. | |
|
Ilya Sherman
2013/07/30 01:23:16
nit: I see that this isn't the style being used in
Steve Condie
2013/07/30 06:12:31
Done.
| |
| 181 }; | |
| 182 | |
| 183 // Events related to policy invalidations. | |
| 184 enum MetricPolicyInvalidations { | |
| 185 // A invalidation with a payload was received. | |
| 186 kMetricPolicyInvalidationsPayload, | |
| 187 // A invalidation with no payload was received. | |
| 188 kMetricPolicyInvalidationsNoPayload, | |
| 189 | |
| 190 kMetricPolicyInvalidationsSize // Must be the last. | |
| 191 }; | |
| 192 | |
| 162 // Names for the UMA counters. They are shared from here since the events | 193 // Names for the UMA counters. They are shared from here since the events |
| 163 // from the same enum above can be triggered in different files, and must use | 194 // from the same enum above can be triggered in different files, and must use |
| 164 // the same UMA histogram name. | 195 // the same UMA histogram name. |
| 165 extern const char* kMetricToken; | 196 extern const char* kMetricToken; |
| 166 extern const char* kMetricPolicy; | 197 extern const char* kMetricPolicy; |
| 167 extern const char* kMetricEnrollment; | 198 extern const char* kMetricEnrollment; |
| 199 extern const char* kMetricPolicyRefresh; | |
| 200 extern const char* kMetricPolicyInvalidations; | |
| 168 | 201 |
| 169 } // namespace policy | 202 } // namespace policy |
| 170 | 203 |
| 171 #endif // CHROME_BROWSER_POLICY_CLOUD_ENTERPRISE_METRICS_H_ | 204 #endif // CHROME_BROWSER_POLICY_CLOUD_ENTERPRISE_METRICS_H_ |
| OLD | NEW |