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

Issue 1991653002: Move caching out of MultiThreadedCertVerifier (Closed)

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

Description

Move caching out of MultiThreadedCertVerifier Split out the logic for caching cert verification from the MultiThreadedCertVerifier, and into the CachingCertVerifier, which can add caching/memoization to any CertVerifier. BUG=612655 Committed: https://crrev.com/6df5418b76ec5d9daa9df35e6f616129b72a1a5d Cr-Commit-Position: refs/heads/master@{#399446}

Patch Set 1 #

Patch Set 2 : Rebased on new Verify #

Patch Set 3 : Rebased #

Patch Set 4 : Now with caching #

Total comments: 3

Patch Set 5 : Cache appropriately #

Patch Set 6 : Rebased #

Total comments: 11

Patch Set 7 : Add comments #

Patch Set 8 : Fix bad rebase #

Patch Set 9 : More feedback #

Patch Set 10 : More fixes #

Patch Set 11 : Unused headers #

Patch Set 12 : Missing header #

Patch Set 13 : CrOS fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+579 lines, -426 lines) Patch
M chrome/browser/chromeos/policy/policy_cert_verifier.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -3 lines 0 comments Download
M ios/chrome/browser/ios_chrome_io_thread.mm View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -3 lines 0 comments Download
A net/cert/caching_cert_verifier.h View 1 2 3 4 5 6 1 chunk +143 lines, -0 lines 0 comments Download
A net/cert/caching_cert_verifier.cc View 1 2 3 1 chunk +196 lines, -0 lines 0 comments Download
A net/cert/caching_cert_verifier_unittest.cc View 1 2 3 1 chunk +195 lines, -0 lines 0 comments Download
M net/cert/cert_verifier.cc View 1 7 2 chunks +4 lines, -2 lines 0 comments Download
M net/cert/multi_threaded_cert_verifier.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +1 line, -73 lines 0 comments Download
M net/cert/multi_threaded_cert_verifier.cc View 1 2 3 4 5 6 7 8 9 10 15 chunks +22 lines, -159 lines 0 comments Download
M net/cert/multi_threaded_cert_verifier_unittest.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +0 lines, -179 lines 0 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (9 generated)
Ryan Sleevi
WIP: 1) The CertTrustAnchorProvider layering is in a weird place, because the additional_trust_anchors was only ...
4 years, 7 months ago (2016-05-18 02:15:28 UTC) #2
Ryan Sleevi
Next up: Get rid of fingerprint and get rid of TAP. I just moved it ...
4 years, 7 months ago (2016-05-20 03:24:13 UTC) #4
eroman
Is this ready for review?
4 years, 6 months ago (2016-05-31 22:25:18 UTC) #5
Ryan Sleevi
On 2016/05/31 22:25:18, eroman (OOO till June 9) wrote: > Is this ready for review? ...
4 years, 6 months ago (2016-06-06 16:26:01 UTC) #6
eroman
Overall LG. Mostly just creeped out by SetCertTrustAnchorProvider() https://codereview.chromium.org/1991653002/diff/100001/net/cert/caching_cert_verifier.cc File net/cert/caching_cert_verifier.cc (right): https://codereview.chromium.org/1991653002/diff/100001/net/cert/caching_cert_verifier.cc#newcode52 net/cert/caching_cert_verifier.cc:52: CertificateList ...
4 years, 6 months ago (2016-06-10 00:08:06 UTC) #7
Ryan Sleevi
https://codereview.chromium.org/1991653002/diff/100001/net/cert/caching_cert_verifier.cc File net/cert/caching_cert_verifier.cc (right): https://codereview.chromium.org/1991653002/diff/100001/net/cert/caching_cert_verifier.cc#newcode52 net/cert/caching_cert_verifier.cc:52: CertificateList additional_trust_anchors(params.additional_trust_anchors()); On 2016/06/10 00:08:03, eroman wrote: > Do ...
4 years, 6 months ago (2016-06-10 00:41:10 UTC) #8
eroman
lgtm https://codereview.chromium.org/1991653002/diff/60001/net/cert/caching_cert_verifier.cc File net/cert/caching_cert_verifier.cc (right): https://codereview.chromium.org/1991653002/diff/60001/net/cert/caching_cert_verifier.cc#newcode74 net/cert/caching_cert_verifier.cc:74: new_params, start_time, callback, verify_result); On 2016/05/20 03:24:13, Ryan ...
4 years, 6 months ago (2016-06-10 01:26:38 UTC) #9
eroman
https://codereview.chromium.org/1991653002/diff/100001/net/cert/caching_cert_verifier.h File net/cert/caching_cert_verifier.h (right): https://codereview.chromium.org/1991653002/diff/100001/net/cert/caching_cert_verifier.h#newcode20 net/cert/caching_cert_verifier.h:20: class NET_EXPORT CachingCertVerifier : public CertVerifier, Also, please add ...
4 years, 6 months ago (2016-06-10 01:31:52 UTC) #10
Ryan Sleevi
https://codereview.chromium.org/1991653002/diff/60001/net/cert/caching_cert_verifier.cc File net/cert/caching_cert_verifier.cc (right): https://codereview.chromium.org/1991653002/diff/60001/net/cert/caching_cert_verifier.cc#newcode74 net/cert/caching_cert_verifier.cc:74: new_params, start_time, callback, verify_result); On 2016/06/10 01:26:38, eroman wrote: ...
4 years, 6 months ago (2016-06-10 07:51:21 UTC) #11
Ryan Sleevi
https://codereview.chromium.org/1991653002/diff/100001/net/cert/caching_cert_verifier.h File net/cert/caching_cert_verifier.h (right): https://codereview.chromium.org/1991653002/diff/100001/net/cert/caching_cert_verifier.h#newcode107 net/cert/caching_cert_verifier.h:107: uint64_t cache_hits() const { return cache_hits_; } On 2016/06/10 ...
4 years, 6 months ago (2016-06-10 23:41:51 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1991653002/180001
4 years, 6 months ago (2016-06-10 23:42:09 UTC) #14
Ryan Sleevi
thestig: The two bits in //chrome (which are mechanical, so feel free to RS) droger: ...
4 years, 6 months ago (2016-06-11 00:47:43 UTC) #16
Ryan Sleevi
Actually adding droger for the mechanical bits
4 years, 6 months ago (2016-06-11 00:48:01 UTC) #18
Lei Zhang
lgtm
4 years, 6 months ago (2016-06-11 01:33:45 UTC) #19
droger
ios LGTM
4 years, 6 months ago (2016-06-13 08:19:02 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1991653002/240001
4 years, 6 months ago (2016-06-13 12:55:06 UTC) #23
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 6 months ago (2016-06-13 14:34:38 UTC) #25
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-13 14:34:46 UTC) #26
commit-bot: I haz the power
4 years, 6 months ago (2016-06-13 14:36:14 UTC) #28
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/6df5418b76ec5d9daa9df35e6f616129b72a1a5d
Cr-Commit-Position: refs/heads/master@{#399446}

Powered by Google App Engine
This is Rietveld 408576698