Record UMA of succeeded DNS task type and metadata availability
This CL introduces following UMAs:
- Net.DNS.GoogleHost.MetadataAvailable.TaskType
- Net.DNS.GoogleHost.MetadataUnavailable.TaskType
They are recorded only for some of Google hosts which are expected to
have valid HTTPS DNS metadata,
Change-Id: Iee63a0da314cee7cfa875a6764193ece46505fe6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3965875
Reviewed-by: Takashi Toyoshima <[email protected]>
Reviewed-by: Eric Orth <[email protected]>
Commit-Queue: Tsuyoshi Horo <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1065401}
diff --git a/net/base/url_util.h b/net/base/url_util.h
index 4b0dc5a..3e5045e 100644
--- a/net/base/url_util.h
+++ b/net/base/url_util.h
@@ -217,6 +217,11 @@
// be used for histograms and shouldn't be used to affect behavior.
NET_EXPORT_PRIVATE bool IsGoogleHost(base::StringPiece host);
+// Returns true if |host| is the hostname of a Google server and HTTPS DNS
+// record of |host| is expected to indicate H3 support. This should only be used
+// for histograms and shouldn't be used to affect behavior.
+NET_EXPORT_PRIVATE bool IsGoogleHostWithAlpnH3(base::StringPiece host);
+
// This function tests |host| to see if it is of any local hostname form.
// |host| is normalized before being tested.
NET_EXPORT_PRIVATE bool IsLocalHostname(base::StringPiece host);