Index: tools/metrics/histograms/histograms.xml |
diff --git a/tools/metrics/histograms/histograms.xml b/tools/metrics/histograms/histograms.xml |
index c8816c3a67a6bb0d57cca583d425b05cfc3276c4..df0dc763b8a41c805a98c29db1fb40be29a16c35 100644 |
--- a/tools/metrics/histograms/histograms.xml |
+++ b/tools/metrics/histograms/histograms.xml |
@@ -5229,6 +5229,28 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries. |
<summary>Intervals between access time updates for each cookie.</summary> |
</histogram> |
+<histogram name="Cookie.CookiePrefix" enum="CookiePrefix"> |
+ <owner>estark@chromium.org</owner> |
+ <summary> |
+ Number of times a cookie was set with a name prefixed by |
+ "$Secure-" or "$Host-" (prefixes reserved by |
+ https://tools.ietf.org/html/draft-west-cookie-prefixes). |
+ </summary> |
+</histogram> |
+ |
+<histogram name="Cookie.CookiePrefixBlocked" enum="CookiePrefix"> |
+ <owner>estark@chromium.org</owner> |
+ <summary> |
+ Number of times a cookie was set with a name prefixed by |
+ "$Secure-" or "$Host-" that violate cookie prefix rules. |
+ That is, a $Secure- cookie must be set over a secure connection with the |
+ Secure attribute, and a $Host- cookie must be set over a secure connection, |
+ with the Secure attribute, with no Domain attribute, and with a Path |
+ attribute of "/". (As defined in |
+ https://tools.ietf.org/html/draft-west-cookie-prefixes.) |
+ </summary> |
+</histogram> |
+ |
<histogram name="Cookie.CookieSourceScheme" enum="CookieSourceScheme"> |
<owner>estark@chromium.org</owner> |
<summary> |
@@ -56750,6 +56772,12 @@ http://cs/file:chrome/histograms.xml - but prefer this file for new entries. |
<int value="3" label="Both"/> |
</enum> |
+<enum name="CookiePrefix" type="int"> |
+ <int value="0" label="No special prefix"/> |
+ <int value="1" label="Secure prefix"/> |
+ <int value="2" label="Host prefix"/> |
+</enum> |
+ |
<enum name="CookieSourceScheme" type="int"> |
<int value="0" label="Secure cookie, source scheme is cryptographic"/> |
<int value="1" label="Secure cookie, source scheme is not cryptographic"/> |