Persist broken and recently-broken alt-svcs to prefs in HttpServerPropertiesManager

Desktop / Chromium - Yixin Wang [chromium.org] - 13 July 2017 19:09 EDT

Modify TickClock dependency injection for BrokenAlternativeServices to use a setter instead of a constructor param. Add TickClock dependency injection for HttpServerPropertiesImpl and HttpServerPropertiesManager for testing.

Add BrokenAlternativeService::Clear() and update HttpServerPropertiesImpl::Clear() to call that.

CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_ubsan_rel_ng

BUG=705029

Change-Id: Idb411192e47d275cde3362b479a6b9e9fa773a17 Reviewed-on: https://chromium-review.googlesource.com/562604

a66ebc8 Persist broken and recently-broken alt-svcs to prefs in HttpServerPropertiesManager
net/http/broken_alternative_services.cc | 35 +-
net/http/broken_alternative_services.h | 4 +
net/http/http_server_properties.h | 7 +
net/http/http_server_properties_impl.cc | 36 +-
net/http/http_server_properties_impl.h | 29 +-
net/http/http_server_properties_manager.cc | 393 +++++++++++++++----
net/http/http_server_properties_manager.h | 53 ++-
.../http_server_properties_manager_unittest.cc | 425 +++++++++++++++++++--
tools/metrics/histograms/histograms.xml | 16 +
9 files changed, 858 insertions(+), 140 deletions(-)

Upstream: git.chromium.org


  • Share