Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: chrome/browser/policy/cloud/enterprise_metrics.h

Issue 19733003: Implement cloud policy invalidations using the invalidation service framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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.
166 kMetricPolicyRefreshChanged,
167 // A refresh occurred while the policy was not invalidated and the policy was
168 // unchanged.
169 kMetricPolicyRefreshUnchanged,
170 // A refresh occurred while the policy was invalidated and the policy was
171 // changed.
172 kMetricPolicyRefreshInvalidatedChanged,
173 // A refresh occurred while the policy was invalidated and the policy was
174 // unchanged.
175 kMetricPolicyRefreshInvalidatedUnchanged,
176
177 kMetricPolicyRefreshSize // Must be the last.
178 };
179
180 // Events related to policy invalidations.
181 enum MetricPolicyInvalidations {
182 // A invalidation with a payload was received.
183 kMetricPolicyInvalidationsPayload,
184 // A invalidation with no payload was received.
185 kMetricPolicyInvalidationsNoPayload,
186
187 kMetricPolicyInvalidationsSize // Must be the last.
188 };
189
162 // Names for the UMA counters. They are shared from here since the events 190 // 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 191 // from the same enum above can be triggered in different files, and must use
164 // the same UMA histogram name. 192 // the same UMA histogram name.
165 extern const char* kMetricToken; 193 extern const char* kMetricToken;
166 extern const char* kMetricPolicy; 194 extern const char* kMetricPolicy;
167 extern const char* kMetricEnrollment; 195 extern const char* kMetricEnrollment;
196 extern const char* kMetricPolicyRefresh;
197 extern const char* kMetricPolicyInvalidations;
168 198
169 } // namespace policy 199 } // namespace policy
170 200
171 #endif // CHROME_BROWSER_POLICY_CLOUD_ENTERPRISE_METRICS_H_ 201 #endif // CHROME_BROWSER_POLICY_CLOUD_ENTERPRISE_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698