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

Issue 1999733002: Add support for walking and modifying the CachingCertVerifier (Closed)

Created:
4 years, 7 months ago by Ryan Sleevi
Modified:
4 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, eroman
Base URL:
https://chromium.googlesource.com/chromium/src.git@move_cache
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for walking and modifying the CachingCertVerifier In anticipation of experimenting with persisting the certificate verification cache across process evictions on mobile, add the ability to iterate through the cache's contents (allowing it to be serialized) and to restore the contents later. Because restoration is expected to be disjoint from object creation, rather than requiring the deserialized entries be presented at construction, allow them to be provided after the cache already has results, provided that no other results are evicted. BUG=590875 Committed: https://crrev.com/b25d90c36cbf578cd8459f1e0acfd26930d0e139 Cr-Commit-Position: refs/heads/master@{#400100}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rebased #

Patch Set 3 : Review feedback #

Patch Set 4 : More tests #

Total comments: 10

Patch Set 5 : Review remarks #

Patch Set 6 : Constify #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -0 lines) Patch
M net/cert/caching_cert_verifier.h View 1 2 3 4 5 2 chunks +36 lines, -0 lines 0 comments Download
M net/cert/caching_cert_verifier.cc View 1 2 3 4 5 2 chunks +36 lines, -0 lines 0 comments Download
M net/cert/caching_cert_verifier_unittest.cc View 1 2 3 3 chunks +141 lines, -0 lines 0 comments Download
M net/cert/cert_verifier.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/cert/cert_verifier.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (12 generated)
Ryan Sleevi
Raman: This offers a skeletal outline that you can then build upon up in the ...
4 years, 7 months ago (2016-05-20 08:39:29 UTC) #2
ramant (doing other things)
On 2016/05/20 08:39:29, Ryan Sleevi wrote: > Raman: This offers a skeletal outline that you ...
4 years, 7 months ago (2016-05-20 17:56:47 UTC) #3
ramant (doing other things)
Hi Ryan, Not sure if you wanted me to wait for unittests or not. Changes ...
4 years, 6 months ago (2016-06-10 21:35:24 UTC) #5
Ryan Sleevi
Adding Eric for review since he's been (helpfully) very critical on the other CLs, which ...
4 years, 6 months ago (2016-06-13 13:04:41 UTC) #7
eroman
Do you have unit tests for this? (Per your initial comment). From an interface perspective ...
4 years, 6 months ago (2016-06-13 22:49:35 UTC) #8
Ryan Sleevi
On 2016/06/13 22:49:35, eroman wrote: > Do you have unit tests for this? (Per your ...
4 years, 6 months ago (2016-06-13 23:00:15 UTC) #9
eroman
> My choice of Iterator was that it was the most difficult interface to misuse. ...
4 years, 6 months ago (2016-06-13 23:39:40 UTC) #10
Ryan Sleevi
On 2016/06/13 23:39:40, eroman wrote: > The visitor pattern internalizes the lifetime of the cache ...
4 years, 6 months ago (2016-06-13 23:41:52 UTC) #11
Ryan Sleevi
Eric: Please take another look based on the feedback Raman: Heads up that the interface ...
4 years, 6 months ago (2016-06-15 22:54:08 UTC) #12
ramant (doing other things)
On 2016/06/15 22:54:08, Ryan Sleevi wrote: > Eric: Please take another look based on the ...
4 years, 6 months ago (2016-06-15 22:59:03 UTC) #13
eroman
thanks for making those changes! LGTM https://codereview.chromium.org/1999733002/diff/1/net/cert/caching_cert_verifier.h File net/cert/caching_cert_verifier.h (right): https://codereview.chromium.org/1999733002/diff/1/net/cert/caching_cert_verifier.h#newcode70 net/cert/caching_cert_verifier.h:70: // exists). On ...
4 years, 6 months ago (2016-06-16 00:25:04 UTC) #14
Ryan Sleevi
https://codereview.chromium.org/1999733002/diff/60001/net/cert/caching_cert_verifier.h File net/cert/caching_cert_verifier.h (right): https://codereview.chromium.org/1999733002/diff/60001/net/cert/caching_cert_verifier.h#newcode47 net/cert/caching_cert_verifier.h:47: virtual bool VisitEntry(const RequestParams& params, On 2016/06/16 00:25:04, eroman ...
4 years, 6 months ago (2016-06-16 00:44:34 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999733002/80001
4 years, 6 months ago (2016-06-16 00:45:36 UTC) #18
eroman
https://codereview.chromium.org/1999733002/diff/60001/net/cert/caching_cert_verifier.h File net/cert/caching_cert_verifier.h (right): https://codereview.chromium.org/1999733002/diff/60001/net/cert/caching_cert_verifier.h#newcode91 net/cert/caching_cert_verifier.h:91: void VisitEntries(CacheVisitor* visitor); On 2016/06/16 00:44:34, Ryan Sleevi wrote: ...
4 years, 6 months ago (2016-06-16 00:54:51 UTC) #19
Ryan Sleevi
On 2016/06/16 00:54:51, eroman wrote: > I think you misunderstood. What I am asking for ...
4 years, 6 months ago (2016-06-16 01:40:07 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999733002/100001
4 years, 6 months ago (2016-06-16 01:43:01 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/128112)
4 years, 6 months ago (2016-06-16 02:44:24 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1999733002/100001
4 years, 6 months ago (2016-06-16 06:30:22 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-16 07:12:12 UTC) #30
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-16 07:12:20 UTC) #31
commit-bot: I haz the power
4 years, 6 months ago (2016-06-16 07:13:54 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b25d90c36cbf578cd8459f1e0acfd26930d0e139
Cr-Commit-Position: refs/heads/master@{#400100}

Powered by Google App Engine
This is Rietveld 408576698