Clear cached QUIC network stats when a QUIC handshake fails.
BUG=
Review-Url: https://codereview.chromium.org/2699003002
Cr-Commit-Position: refs/heads/master@{#457196}
diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h
index 6ba72dcf..f6b71c3 100644
--- a/net/http/http_server_properties.h
+++ b/net/http/http_server_properties.h
@@ -293,10 +293,14 @@
virtual void SetSupportsQuic(bool used_quic,
const IPAddress& last_address) = 0;
- // Sets |stats| for |host_port_pair|.
+ // Sets |stats| for |server|.
virtual void SetServerNetworkStats(const url::SchemeHostPort& server,
ServerNetworkStats stats) = 0;
+ // Clears any stats for |server|.
+ virtual void ClearServerNetworkStats(const url::SchemeHostPort& server) = 0;
+
+ // Returns any stats for |server| or nullptr if there are none.
virtual const ServerNetworkStats* GetServerNetworkStats(
const url::SchemeHostPort& server) = 0;