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

Unified Diff: net/http/http_server_properties_manager.h

Issue 1139843002: HttpServerProperties - Track UpdatePrefs callers. In offical builds, on (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comments for patch set 2 Created 5 years, 7 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
« no previous file with comments | « no previous file | net/http/http_server_properties_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 406905df2161dde94985e42c0debffd2577c32da..bfb7ff1b64123ed796b0218ff2096c3845af4b88 100644
--- a/net/http/http_server_properties_manager.h
+++ b/net/http/http_server_properties_manager.h
@@ -123,6 +123,24 @@ class NET_EXPORT HttpServerPropertiesManager : public HttpServerProperties {
const ServerNetworkStatsMap& server_network_stats_map() const override;
protected:
+ // The location where ScheduleUpdatePrefsOnNetworkThread was called.
+ enum Location {
+ SUPPORTS_SPDY = 0,
+ HTTP_11_REQUIRED = 1,
+ SET_ALTERNATIVE_SERVICE = 2,
+ MARK_ALTERNATIVE_SERVICE_BROKEN = 3,
+ MARK_ALTERNATIVE_SERVICE_RECENTLY_BROKEN = 4,
+ CONFIRM_ALTERNATIVE_SERVICE = 5,
+ CLEAR_ALTERNATIVE_SERVICE = 6,
+ SET_SPDY_SETTING = 7,
+ CLEAR_SPDY_SETTINGS = 8,
+ CLEAR_ALL_SPDY_SETTINGS = 9,
+ SET_SUPPORTS_QUIC = 10,
+ SET_SERVER_NETWORK_STATS = 11,
+ DETECTED_CORRUPTED_PREFS = 12,
+ NUM_LOCATIONS = 13,
+ };
+
// --------------------
// SPDY related methods
@@ -154,7 +172,8 @@ class NET_EXPORT HttpServerPropertiesManager : public HttpServerProperties {
// These are used to delay updating the preferences when cached data in
// |http_server_properties_impl_| is changing, and execute only one update per
// simultaneous spdy_servers or spdy_settings or alternative_service changes.
- void ScheduleUpdatePrefsOnNetworkThread();
+ // |location| specifies where this method is called from.
+ void ScheduleUpdatePrefsOnNetworkThread(Location location);
// Starts the timers to update the prefs from cache. This are overridden in
// tests to prevent the delay.
« no previous file with comments | « no previous file | net/http/http_server_properties_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698