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

Unified Diff: net/http/http_server_properties_manager.h

Issue 2171743002: Do not persist HttpServerProperties to disk that often. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re: #7. Created 4 years, 5 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 988ab4a8ece4744b829153e83c3b96b68b1702f3..53305a0521698e4f166bf4350d8b4c851eefcb31 100644
--- a/net/http/http_server_properties_manager.h
+++ b/net/http/http_server_properties_manager.h
@@ -314,6 +314,9 @@ class NET_EXPORT HttpServerPropertiesManager : public HttpServerProperties {
// Used to post |prefs::kHttpServerProperties| pref update tasks.
std::unique_ptr<base::OneShotTimer> network_prefs_update_timer_;
+ // Time of last UpdatePrefsFromCacheOnNetworkThread() execution.
+ base::Time last_update_prefs_from_cache_;
+
std::unique_ptr<HttpServerPropertiesImpl> http_server_properties_impl_;
// Used to get |weak_ptr_| to self on the pref thread.

Powered by Google App Engine
This is Rietveld 408576698