Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Unified Diff: net/http/http_server_properties.h

Issue 2699003002: Clear cached QUIC network stats when a QUIC handshake fails. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/http/http_server_properties.h
diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h
index 6ba72dcf71321fc8fbbb2b162b96b578ecd52fbf..f6b71c32a1c8f69e887bfd7ba11ffe03609cd2f0 100644
--- a/net/http/http_server_properties.h
+++ b/net/http/http_server_properties.h
@@ -293,10 +293,14 @@ class NET_EXPORT HttpServerProperties {
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;
« no previous file with comments | « no previous file | net/http/http_server_properties_impl.h » ('j') | net/http/http_server_properties_impl_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698