diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-12 14:27:29 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-13 09:35:20 +0000 |
commit | c30a6232df03e1efbd9f3b226777b07e087a1122 (patch) | |
tree | e992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/net/dns/resolve_context.h | |
parent | 7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff) | |
download | qtwebengine-chromium-85-based.tar.gz |
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
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); |