diff options
Diffstat (limited to 'chromium/net/dns/resolve_context.h')
-rw-r--r-- | chromium/net/dns/resolve_context.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/chromium/net/dns/resolve_context.h b/chromium/net/dns/resolve_context.h index 8b3ec4fd388..bcbac646da5 100644 --- a/chromium/net/dns/resolve_context.h +++ b/chromium/net/dns/resolve_context.h @@ -6,6 +6,7 @@ #define NET_DNS_RESOLVE_CONTEXT_H_ #include <memory> +#include <string> #include <vector> #include "base/memory/weak_ptr.h" @@ -92,9 +93,12 @@ class NET_EXPORT_PRIVATE ResolveContext : public base::CheckedObserver { // Record that server failed to respond (due to SRV_FAIL or timeout). If // |is_doh_server| and the number of failures has surpassed a threshold, // sets the DoH probe state to unavailable. Noop if |session| is not the - // current session. + // current session. Should only be called with with server failure |rv|s, + // not eg OK, ERR_NAME_NOT_RESOLVED (which at the transaction level is + // expected to be nxdomain), or ERR_IO_PENDING. void RecordServerFailure(size_t server_index, bool is_doh_server, + int rv, const DnsSession* session); // Record that server responded successfully. Noop if |session| is not the @@ -199,7 +203,14 @@ class NET_EXPORT_PRIVATE ResolveContext : public base::CheckedObserver { bool is_doh_server, base::TimeDelta rtt, int rv, + base::TimeDelta base_timeout, const DnsSession* session); + std::string GetQueryTypeForUma(size_t server_index, + bool is_doh_server, + const DnsSession* session); + std::string GetDohProviderIdForUma(size_t server_index, + bool is_doh_server, + const DnsSession* session); void NotifyDohStatusObserversOfSessionChanged(); void NotifyDohStatusObserversOfUnavailable(bool network_change); |