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

Issue 2932953002: Persist broken and recently-broken alt-svcs to prefs in HttpServerPropertiesManager (Closed)

Created:
3 years, 6 months ago by wangyix1
Modified:
3 years, 5 months ago
Reviewers:
Zhongyi Shi
CC:
chromium-reviews, cbentzel+watch_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Persist broken and recently-broken alt-svcs to prefs in HttpServerPropertiesManager 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

Patch Set 1 #

Patch Set 2 : Added a DCHECK #

Total comments: 14

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Patch Set 5 : Changed to passing TickClock* param instead of using test setter #

Patch Set 6 : Removed BrokenAlternativeServices::Clear() so it can be added in a separate CL #

Total comments: 16

Patch Set 7 : Fixed zhongyi's comments from ps6 #

Patch Set 8 : Rebase onto CL 2949513005 #

Patch Set 9 : working towards storing broken and recently-broken alt svcs in one JSON list #

Patch Set 10 : broken and recently broken alt-svcs now stored in one JSON list #

Patch Set 11 : Cleanup #

Patch Set 12 : Cleanup. Changed UpdatePrefsFromCache() broken alt-svc params to unique_ptrs #

Patch Set 13 : UpdatePrefsWithCache now verifies broken alt-svc expiration time using lower and uppder bounds #

Patch Set 14 : More cleanup #

Total comments: 7

Patch Set 15 : Fixed rch's comments from PS14 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+812 lines, -106 lines) Patch
M net/http/broken_alternative_services.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -6 lines 0 comments Download
M net/http/broken_alternative_services.cc View 1 2 3 4 5 6 7 8 9 3 chunks +18 lines, -17 lines 0 comments Download
M net/http/http_server_properties.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -0 lines 0 comments Download
M net/http/http_server_properties_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +25 lines, -4 lines 0 comments Download
M net/http/http_server_properties_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +26 lines, -10 lines 0 comments Download
M net/http/http_server_properties_manager.h View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +40 lines, -3 lines 2 comments Download
M net/http/http_server_properties_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 18 chunks +287 lines, -39 lines 0 comments Download
M net/http/http_server_properties_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 10 chunks +389 lines, -27 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 2 chunks +16 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 33 (19 generated)
wangyix1
Still updating the CL that this one depends on (https://codereview.chromium.org/2917913002/), but feel free to take ...
3 years, 6 months ago (2017-06-10 01:13:34 UTC) #4
Ryan Hamilton
Looks promising! I'll wait to review thoroughly until you've landed the CL that this depends ...
3 years, 6 months ago (2017-06-12 18:57:33 UTC) #9
wangyix1
https://codereview.chromium.org/2932953002/diff/20001/net/http/broken_alternative_services.cc File net/http/broken_alternative_services.cc (right): https://codereview.chromium.org/2932953002/diff/20001/net/http/broken_alternative_services.cc#newcode125 net/http/broken_alternative_services.cc:125: clock_ = clock; On 2017/06/12 18:57:32, Ryan Hamilton wrote: ...
3 years, 6 months ago (2017-06-14 00:01:26 UTC) #13
Zhongyi Shi
This is my initial round of review. I haven't get to the unittests. In general, ...
3 years, 6 months ago (2017-06-16 04:17:10 UTC) #14
wangyix1
PTAL https://codereview.chromium.org/2932953002/diff/100001/net/http/http_server_properties.h File net/http/http_server_properties.h (right): https://codereview.chromium.org/2932953002/diff/100001/net/http/http_server_properties.h#newcode105 net/http/http_server_properties.h:105: On 2017/06/16 04:17:09, Zhongyi Shi wrote: > Is ...
3 years, 6 months ago (2017-06-16 18:41:16 UTC) #15
wangyix1
Ping
3 years, 6 months ago (2017-06-21 18:38:09 UTC) #16
Zhongyi Shi
Discussed offline, will take another look when this CL is ready to review.
3 years, 5 months ago (2017-06-28 21:17:35 UTC) #25
wangyix1
PTAL
3 years, 5 months ago (2017-07-05 23:31:18 UTC) #26
Ryan Hamilton
Good progress! I'll defer to zhongyi for a full review. https://codereview.chromium.org/2932953002/diff/260001/net/http/broken_alternative_services.h File net/http/broken_alternative_services.h (right): https://codereview.chromium.org/2932953002/diff/260001/net/http/broken_alternative_services.h#newcode12 ...
3 years, 5 months ago (2017-07-06 16:48:22 UTC) #27
wangyix1
https://codereview.chromium.org/2932953002/diff/260001/net/http/broken_alternative_services.h File net/http/broken_alternative_services.h (right): https://codereview.chromium.org/2932953002/diff/260001/net/http/broken_alternative_services.h#newcode12 net/http/broken_alternative_services.h:12: #include "base/time/default_tick_clock.h" On 2017/07/06 16:48:22, Ryan Hamilton wrote: > ...
3 years, 5 months ago (2017-07-06 18:04:29 UTC) #28
Ryan Hamilton
https://codereview.chromium.org/2932953002/diff/260001/net/http/http_server_properties_manager.h File net/http/http_server_properties_manager.h (right): https://codereview.chromium.org/2932953002/diff/260001/net/http/http_server_properties_manager.h#newcode322 net/http/http_server_properties_manager.h:322: base::DefaultTickClock default_clock_; On 2017/07/06 18:04:29, wangyix1 wrote: > On ...
3 years, 5 months ago (2017-07-06 18:36:20 UTC) #29
Zhongyi Shi
Could you rebase the CL before I proceed to the full review? There are some ...
3 years, 5 months ago (2017-07-06 23:13:53 UTC) #30
wangyix1
On 2017/07/06 18:36:20, Ryan Hamilton wrote: > https://codereview.chromium.org/2932953002/diff/260001/net/http/http_server_properties_manager.h > File net/http/http_server_properties_manager.h (right): > > https://codereview.chromium.org/2932953002/diff/260001/net/http/http_server_properties_manager.h#newcode322 ...
3 years, 5 months ago (2017-07-07 00:13:54 UTC) #31
wangyix1
3 years, 5 months ago (2017-07-07 00:17:42 UTC) #32
"git cl upload" is no longer letting me patch this codereview. This has been
re-uploaded to Gerrit here:

https://chromium-review.googlesource.com/c/562604/

zhongyi@, your comment nit has been fixed and is part of the initial version of
the code uploaded to Gerrit.

https://codereview.chromium.org/2932953002/diff/280001/net/http/http_server_p...
File net/http/http_server_properties_manager.h (right):

https://codereview.chromium.org/2932953002/diff/280001/net/http/http_server_p...
net/http/http_server_properties_manager.h:99: // expiration of broken
alternative services. It must not be null.
On 2017/07/06 23:13:53, Zhongyi Shi wrote:
> nit: If null, default clock will be used. 

Done.

Powered by Google App Engine
This is Rietveld 408576698