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 COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ | 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ |
6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ | 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ |
7 | 7 |
8 #include "components/policy/policy_export.h" | 8 #include "components/policy/policy_export.h" |
9 | 9 |
10 namespace policy { | 10 namespace policy { |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 // A normal invalidation containing a payload. | 258 // A normal invalidation containing a payload. |
259 POLICY_INVALIDATION_TYPE_NORMAL = 1, | 259 POLICY_INVALIDATION_TYPE_NORMAL = 1, |
260 // The invalidation contained no payload and was considered expired. | 260 // The invalidation contained no payload and was considered expired. |
261 POLICY_INVALIDATION_TYPE_NO_PAYLOAD_EXPIRED = 3, | 261 POLICY_INVALIDATION_TYPE_NO_PAYLOAD_EXPIRED = 3, |
262 // The invalidation contained a payload and was considered expired. | 262 // The invalidation contained a payload and was considered expired. |
263 POLICY_INVALIDATION_TYPE_EXPIRED = 4, | 263 POLICY_INVALIDATION_TYPE_EXPIRED = 4, |
264 | 264 |
265 POLICY_INVALIDATION_TYPE_SIZE // Must be the last. | 265 POLICY_INVALIDATION_TYPE_SIZE // Must be the last. |
266 }; | 266 }; |
267 | 267 |
268 // Types of sensitive data that is removed from system logs to upload. | |
269 // This enum is used to define the buckets for an enumerated UMA histogram. | |
270 // Hence, | |
271 // (a) existing enumerated constants should never be deleted or reordered, and | |
272 // (b) new constants should only be appended at the end of the enumeration. | |
273 enum SystemLogPIIType { | |
274 // Found email address in system logs to upload. | |
275 SYSTEM_LOG_PII_TYPE_EMAIL_ADDRESS = 0, | |
276 // Found IP address in system logs to upload. | |
277 SYSTEM_LOG_PII_TYPE_IP_ADDRESS = 1, | |
278 // Found Web URL in system logs to upload. | |
279 SYSTEM_LOG_PII_TYPE_WEB_URL = 2, | |
280 // Found SSID in system logs to upload. | |
281 SYSTEM_LOG_PII_TYPE_SSID = 3, | |
282 | |
283 SYSTEM_LOG_PII_TYPE_SIZE // Must be the last. | |
284 }; | |
285 | |
286 // Names for the UMA counters. They are shared from here since the events | 268 // Names for the UMA counters. They are shared from here since the events |
287 // from the same enum above can be triggered in different files, and must use | 269 // from the same enum above can be triggered in different files, and must use |
288 // the same UMA histogram name. | 270 // the same UMA histogram name. |
289 POLICY_EXPORT extern const char kMetricToken[]; | 271 POLICY_EXPORT extern const char kMetricToken[]; |
290 POLICY_EXPORT extern const char kMetricPolicy[]; | 272 POLICY_EXPORT extern const char kMetricPolicy[]; |
291 POLICY_EXPORT extern const char kMetricUserPolicyRefresh[]; | 273 POLICY_EXPORT extern const char kMetricUserPolicyRefresh[]; |
292 POLICY_EXPORT extern const char kMetricUserPolicyInvalidations[]; | 274 POLICY_EXPORT extern const char kMetricUserPolicyInvalidations[]; |
293 POLICY_EXPORT extern const char kMetricDevicePolicyRefresh[]; | 275 POLICY_EXPORT extern const char kMetricDevicePolicyRefresh[]; |
294 POLICY_EXPORT extern const char kMetricDevicePolicyInvalidations[]; | 276 POLICY_EXPORT extern const char kMetricDevicePolicyInvalidations[]; |
295 POLICY_EXPORT extern const char kMetricSystemLogPII[]; | |
296 | 277 |
297 } // namespace policy | 278 } // namespace policy |
298 | 279 |
299 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ | 280 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_ENTERPRISE_METRICS_H_ |
OLD | NEW |