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

Unified Diff: net/http/http_server_properties_manager.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_manager.h
diff --git a/net/http/http_server_properties_manager.h b/net/http/http_server_properties_manager.h
index d2e6fc30849cfd3163df6ba1de1273ecafa06363..e2301c410776e0d2cb765224a85fe03a38ebac5f 100644
--- a/net/http/http_server_properties_manager.h
+++ b/net/http/http_server_properties_manager.h
@@ -150,6 +150,7 @@ class NET_EXPORT HttpServerPropertiesManager : public HttpServerProperties {
void SetSupportsQuic(bool used_quic, const IPAddress& last_address) override;
void SetServerNetworkStats(const url::SchemeHostPort& server,
ServerNetworkStats stats) override;
+ void ClearServerNetworkStats(const url::SchemeHostPort& server) override;
const ServerNetworkStats* GetServerNetworkStats(
const url::SchemeHostPort& server) override;
const ServerNetworkStatsMap& server_network_stats_map() const override;
@@ -164,6 +165,8 @@ class NET_EXPORT HttpServerPropertiesManager : public HttpServerProperties {
protected:
// The location where ScheduleUpdatePrefsOnNetworkThread was called.
+ // Must be kept up to date with HttpServerPropertiesUpdatePrefsLocation in
+ // histograms.xml.
enum Location {
SUPPORTS_SPDY = 0,
HTTP_11_REQUIRED = 1,
@@ -179,7 +182,8 @@ class NET_EXPORT HttpServerPropertiesManager : public HttpServerProperties {
SET_SERVER_NETWORK_STATS = 11,
DETECTED_CORRUPTED_PREFS = 12,
SET_QUIC_SERVER_INFO = 13,
- NUM_LOCATIONS = 14,
+ CLEAR_SERVER_NETWORK_STATS = 14,
+ NUM_LOCATIONS = 15,
};
// --------------------

Powered by Google App Engine
This is Rietveld 408576698