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

Unified Diff: net/http/http_server_properties.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: #13. 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
« no previous file with comments | « no previous file | net/http/http_server_properties_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties.h
diff --git a/net/http/http_server_properties.h b/net/http/http_server_properties.h
index 5acc682e6f0d93b3a52b9c8fd33cb28dbe91af54..7d3e6eed83a08760bb5ce8ec375381f67f00f312 100644
--- a/net/http/http_server_properties.h
+++ b/net/http/http_server_properties.h
@@ -265,7 +265,8 @@ class NET_EXPORT HttpServerProperties {
// Set a single alternative service for |origin|. Previous alternative
// services for |origin| are discarded.
// |alternative_service.host| may be empty.
- // Return true if |alternative_service_map_| is changed.
+ // Return true if |alternative_service_map_| has changed significantly enough
+ // that it should be persisted to disk.
virtual bool SetAlternativeService(
const url::SchemeHostPort& origin,
const AlternativeService& alternative_service,
@@ -274,7 +275,9 @@ class NET_EXPORT HttpServerProperties {
// Set alternative services for |origin|. Previous alternative services for
// |origin| are discarded.
// Hostnames in |alternative_service_info_vector| may be empty.
- // Return true if |alternative_service_map_| is changed.
+ // |alternative_service_info_vector| may be empty.
+ // Return true if |alternative_service_map_| has changed significantly enough
+ // that it should be persisted to disk.
virtual bool SetAlternativeServices(
const url::SchemeHostPort& origin,
const AlternativeServiceInfoVector& alternative_service_info_vector) = 0;
« no previous file with comments | « no previous file | net/http/http_server_properties_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698