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_ENTERPRISE_METRICS_H_ | 5 #ifndef CHROME_BROWSER_POLICY_ENTERPRISE_METRICS_H_ |
| 6 #define CHROME_BROWSER_POLICY_ENTERPRISE_METRICS_H_ | 6 #define CHROME_BROWSER_POLICY_ENTERPRISE_METRICS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 namespace policy { | 9 namespace policy { |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 38 | 38 |
| 39 // Successfully cached a token to disk. | 39 // Successfully cached a token to disk. |
| 40 kMetricTokenStoreSucceeded, | 40 kMetricTokenStoreSucceeded, |
| 41 // Caching a token to disk failed. | 41 // Caching a token to disk failed. |
| 42 kMetricTokenStoreFailed, | 42 kMetricTokenStoreFailed, |
| 43 | 43 |
| 44 // DM server reported that the device-id generated is not unique. | 44 // DM server reported that the device-id generated is not unique. |
| 45 kMetricTokenFetchDeviceIdConflict, | 45 kMetricTokenFetchDeviceIdConflict, |
| 46 // DM server reported that the serial number we try to register is invalid. | 46 // DM server reported that the serial number we try to register is invalid. |
| 47 kMetricTokenFetchInvalidSerialNumber, | 47 kMetricTokenFetchInvalidSerialNumber, |
| 48 // DM server reported that the licenses for the domain has expired or been | |
|
Mattias Nissler (ping if slow)
2012/06/26 09:19:34
s/has/have/
pastarmovj
2012/06/26 16:59:29
Done.
| |
| 49 // exhausted. | |
| 50 kMetricMissingLicenses, | |
| 48 | 51 |
| 49 kMetricTokenSize // Must be the last. | 52 kMetricTokenSize // Must be the last. |
| 50 }; | 53 }; |
| 51 | 54 |
| 52 // Events related to fetching, saving and loading user and device policies. | 55 // Events related to fetching, saving and loading user and device policies. |
| 53 enum MetricPolicy { | 56 enum MetricPolicy { |
| 54 // A cached policy was successfully loaded from disk. | 57 // A cached policy was successfully loaded from disk. |
| 55 kMetricPolicyLoadSucceeded, | 58 kMetricPolicyLoadSucceeded, |
| 56 // Reading a cached policy from disk failed. | 59 // Reading a cached policy from disk failed. |
| 57 kMetricPolicyLoadFailed, | 60 kMetricPolicyLoadFailed, |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 140 kMetricEnrollmentInvalidEnrollmentMode, | 143 kMetricEnrollmentInvalidEnrollmentMode, |
| 141 // Auto-enrollment is not supported for the mode supplied by the server. | 144 // Auto-enrollment is not supported for the mode supplied by the server. |
| 142 // This presently means trying to auto-enroll in kiosk mode. | 145 // This presently means trying to auto-enroll in kiosk mode. |
| 143 kMetricEnrollmentAutoEnrollmentNotSupported, | 146 kMetricEnrollmentAutoEnrollmentNotSupported, |
| 144 // The lockbox initialization has taken too long to complete and the | 147 // The lockbox initialization has taken too long to complete and the |
| 145 // enrollment has been canceled because of that. | 148 // enrollment has been canceled because of that. |
| 146 kMetricLockboxTimeoutError, | 149 kMetricLockboxTimeoutError, |
| 147 // The username used to re-enroll the device does not belong to the domain | 150 // The username used to re-enroll the device does not belong to the domain |
| 148 // that the device was initially enrolled to. | 151 // that the device was initially enrolled to. |
| 149 kMetricEnrollmentWrongUserError, | 152 kMetricEnrollmentWrongUserError, |
| 153 // DM server reported that the licenses for the domain has expired or been | |
| 154 // exhausted. | |
| 155 kMetricEnrollmentMissingSerialsError, | |
|
Mattias Nissler (ping if slow)
2012/06/26 09:19:34
wrong name.
pastarmovj
2012/06/26 16:59:29
Done.
| |
| 150 | 156 |
| 151 kMetricEnrollmentSize // Must be the last. | 157 kMetricEnrollmentSize // Must be the last. |
| 152 }; | 158 }; |
| 153 | 159 |
| 154 // Names for the UMA counters. They are shared from here since the events | 160 // Names for the UMA counters. They are shared from here since the events |
| 155 // from the same enum above can be triggered in different files, and must use | 161 // from the same enum above can be triggered in different files, and must use |
| 156 // the same UMA histogram name. | 162 // the same UMA histogram name. |
| 157 extern const char* kMetricToken; | 163 extern const char* kMetricToken; |
| 158 extern const char* kMetricPolicy; | 164 extern const char* kMetricPolicy; |
| 159 extern const char* kMetricEnrollment; | 165 extern const char* kMetricEnrollment; |
| 160 | 166 |
| 161 } // namespace policy | 167 } // namespace policy |
| 162 | 168 |
| 163 #endif // CHROME_BROWSER_POLICY_ENTERPRISE_METRICS_H_ | 169 #endif // CHROME_BROWSER_POLICY_ENTERPRISE_METRICS_H_ |
| OLD | NEW |