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

Unified Diff: components/policy/core/common/cloud/enterprise_metrics.h

Issue 226093005: Reduce unneeded policy fetches by detecting expired invalidations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/policy/core/common/cloud/enterprise_metrics.h
diff --git a/components/policy/core/common/cloud/enterprise_metrics.h b/components/policy/core/common/cloud/enterprise_metrics.h
index f3af0802640b23880643ad402497d4b269ed935d..daac653ea26ecc955d2c537d750232cdbab1b727 100644
--- a/components/policy/core/common/cloud/enterprise_metrics.h
+++ b/components/policy/core/common/cloud/enterprise_metrics.h
@@ -192,6 +192,20 @@ enum MetricPolicyRefresh {
METRIC_POLICY_REFRESH_SIZE // Must be the last.
};
+// Types of policy invalidations.
+enum PolicyInvalidationType {
+ // The invalidation contained no payload.
+ POLICY_INVALIDATION_TYPE_NO_PAYLOAD,
+ // A normal invalidation containing a payload.
+ POLICY_INVALIDATION_TYPE_NORMAL,
+ // The invalidation contained no payload and was considered expired.
+ POLICY_INVALIDATION_TYPE_NO_PAYLOAD_EXPIRED,
+ // The invalidation contained a payload and was considered expired.
+ POLICY_INVALIDATION_TYPE_EXPIRED,
+
+ POLICY_INVALIDATION_TYPE_SIZE // Must be the last.
+};
+
// Names for the UMA counters. They are shared from here since the events
// from the same enum above can be triggered in different files, and must use
// the same UMA histogram name.
« no previous file with comments | « chrome/browser/policy/cloud/cloud_policy_invalidator_unittest.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698