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

Issue 329733002: Disk Based Certificate Cache Implementation (Closed)

Created:
6 years, 6 months ago by brandonsalmon
Modified:
6 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Relanding new and improved object for the caching of certificate objects on disk. Fixed memory leaks in the unittests. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=280400 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=280656

Patch Set 1 #

Patch Set 2 : Improved and fixed first test. #

Total comments: 18

Patch Set 3 : Improved flow and added set overwrite functionality. #

Total comments: 12

Patch Set 4 : Added functionality for multiple simultaneous operations. (not properly tested). #

Patch Set 5 : Improved unittests, error checking, and improved functionality in workers (although this isn't prop… #

Total comments: 35

Patch Set 6 : Fixed issues with last upload, and changed cleanup_callback_ to be previously bound with the correc… #

Total comments: 27

Patch Set 7 : Workers now delete themselves, and DBCC deletion cancels workers. #

Total comments: 20

Patch Set 8 : Fixed style issues with patch 7. v2 #

Total comments: 32

Patch Set 9 : Fixed isses stated in review of patch 8. #

Total comments: 18

Patch Set 10 : Updated unittests with respect to the review of patch 9. #

Total comments: 20

Patch Set 11 : Minor fixes and implemented size checking on cache read/write. #

Total comments: 12

Patch Set 12 : Updated and improved unittests. #

Total comments: 7

Patch Set 13 : Made changes to unittests, added new test, fixed overwrite bug. #

Total comments: 5

Patch Set 14 : changed unsigned int to size_t, key to cache_key, and added comments. #

Total comments: 3

Patch Set 15 : Fixed issues with patch 14 v2 #

Total comments: 1

Patch Set 16 : Fixed issues with patch 14 and 15 #

Total comments: 9

Patch Set 17 : Added null check for free. #

Patch Set 18 : Fixed memory leak by remembering to close entry and free OSCertHandle. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1102 lines, -0 lines) Patch
A net/http/disk_based_cert_cache.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +74 lines, -0 lines 0 comments Download
A net/http/disk_based_cert_cache.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +547 lines, -0 lines 0 comments Download
A net/http/disk_based_cert_cache_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +478 lines, -0 lines 2 comments Download
M net/net.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 51 (0 generated)
Ryan Sleevi
So, a few comments here. For next steps, I would focus on supporting multiple requests ...
6 years, 6 months ago (2014-06-11 22:00:09 UTC) #1
wtc
Review comments on patch set 3: I only took a quick look, so the comments ...
6 years, 6 months ago (2014-06-12 03:13:17 UTC) #2
brandonsalmon
I improved error checking and got rid of some of the more ugly code in ...
6 years, 6 months ago (2014-06-16 23:16:17 UTC) #3
Ryan Sleevi
I need to take a more thorough look; I've tried to make a quick pass ...
6 years, 6 months ago (2014-06-17 00:00:21 UTC) #4
wtc
Brandon: Since Ryan reviewed patch set 5 carefully and gave you many comments, I will ...
6 years, 6 months ago (2014-06-17 17:55:03 UTC) #5
brandonsalmon
I fixed the issues with the last upload. Also, I have a couple more things ...
6 years, 6 months ago (2014-06-18 19:45:08 UTC) #6
Ryan Sleevi
Ok, I've taken another pass. In this case, I focused only on the specific WriteWorker. ...
6 years, 6 months ago (2014-06-18 22:16:04 UTC) #7
brandonsalmon
I tried to solve the issues with the DiskBasedCertCache being deleted in a callback, as ...
6 years, 6 months ago (2014-06-19 21:32:31 UTC) #8
wtc
Review comments on patch set 7: I reviewed the .h file carefully. I only reviewed ...
6 years, 6 months ago (2014-06-20 01:27:07 UTC) #9
brandonsalmon
Fixed most of the style issues Wan-Teh mentioned in patch 7. About the complexity: Yes, ...
6 years, 6 months ago (2014-06-20 18:07:23 UTC) #10
wtc
Review comments on patch set 8: This patch set is much better. I reviewed the ...
6 years, 6 months ago (2014-06-21 00:43:13 UTC) #11
brandonsalmon
I finished patch 8 based on Wan-Teh's review of patch 7. https://codereview.chromium.org/329733002/diff/310001/net/http/disk_based_cert_cache.cc File net/http/disk_based_cert_cache.cc (right): ...
6 years, 6 months ago (2014-06-21 02:21:32 UTC) #12
wtc
Review comments on patch set 9: I only reviewed the _unittest.cc file. https://codereview.chromium.org/329733002/diff/350001/net/http/disk_based_cert_cache_unittest.cc File net/http/disk_based_cert_cache_unittest.cc ...
6 years, 6 months ago (2014-06-23 18:38:41 UTC) #13
brandonsalmon
I made some changes to the unittests in correspondence with Wan-Teh's review of patch set ...
6 years, 6 months ago (2014-06-23 21:32:41 UTC) #14
Ryan Sleevi
I think we're notably closer, as a lot of the design complexity has been reduced. ...
6 years, 6 months ago (2014-06-23 22:43:58 UTC) #15
wtc
Patch set 10 LGTM. Please wait for Ryan's approval. https://codereview.chromium.org/329733002/diff/310001/net/http/disk_based_cert_cache_unittest.cc File net/http/disk_based_cert_cache_unittest.cc (right): https://codereview.chromium.org/329733002/diff/310001/net/http/disk_based_cert_cache_unittest.cc#newcode28 net/http/disk_based_cert_cache_unittest.cc:28: ...
6 years, 6 months ago (2014-06-24 00:21:05 UTC) #16
Ryan Sleevi
https://codereview.chromium.org/329733002/diff/460001/net/http/disk_based_cert_cache_unittest.cc File net/http/disk_based_cert_cache_unittest.cc (right): https://codereview.chromium.org/329733002/diff/460001/net/http/disk_based_cert_cache_unittest.cc#newcode96 net/http/disk_based_cert_cache_unittest.cc:96: AddMockTransaction(&kCertTransaction1); Notes from discussion/review: You want to use ScopedMockTransaction, ...
6 years, 6 months ago (2014-06-24 22:01:00 UTC) #17
brandonsalmon
I updated and improved the unittests taking into consideration what me and Ryan talked about ...
6 years, 6 months ago (2014-06-25 19:13:20 UTC) #18
Ryan Sleevi
I think we're almost there. Just a few more comments, which are more style than ...
6 years, 6 months ago (2014-06-25 19:31:57 UTC) #19
brandonsalmon
Made some minor changes in response to review of patch 11.
6 years, 6 months ago (2014-06-25 21:40:06 UTC) #20
Ryan Sleevi
https://codereview.chromium.org/329733002/diff/560001/net/http/disk_based_cert_cache_unittest.cc File net/http/disk_based_cert_cache_unittest.cc (right): https://codereview.chromium.org/329733002/diff/560001/net/http/disk_based_cert_cache_unittest.cc#newcode29 net/http/disk_based_cert_cache_unittest.cc:29: const char* key; s/key/cache_key/ https://codereview.chromium.org/329733002/diff/560001/net/http/disk_based_cert_cache_unittest.cc#newcode132 net/http/disk_based_cert_cache_unittest.cc:132: for (unsigned int ...
6 years, 6 months ago (2014-06-25 23:24:02 UTC) #21
Ryan Sleevi
LGTM Note: Before you're able to actually use this in Chromium code, you'll also have ...
6 years, 6 months ago (2014-06-26 01:33:43 UTC) #22
brandonsalmon
The CQ bit was checked by brandonsalmon@chromium.org
6 years, 6 months ago (2014-06-26 18:02:23 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brandonsalmon@chromium.org/329733002/570001
6 years, 6 months ago (2014-06-26 18:05:00 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-26 21:33:01 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-26 21:38:52 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/46484)
6 years, 6 months ago (2014-06-26 21:38:54 UTC) #27
wtc
Comments on patch set 14: I looked at the build and test failures. I suggest ...
6 years, 6 months ago (2014-06-26 23:27:53 UTC) #28
brandonsalmon
Wan-Teh, I fixed what those issues. Should I recheck the commit button?
6 years, 6 months ago (2014-06-27 00:48:53 UTC) #29
wtc
Patch set 15 LGTM. Yes, please recheck the Commit box. https://codereview.chromium.org/329733002/diff/600001/net/http/disk_based_cert_cache_unittest.cc File net/http/disk_based_cert_cache_unittest.cc (right): https://codereview.chromium.org/329733002/diff/600001/net/http/disk_based_cert_cache_unittest.cc#newcode247 ...
6 years, 6 months ago (2014-06-27 00:57:01 UTC) #30
brandonsalmon
The CQ bit was checked by brandonsalmon@chromium.org
6 years, 6 months ago (2014-06-27 01:00:41 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brandonsalmon@chromium.org/329733002/600001
6 years, 6 months ago (2014-06-27 01:02:55 UTC) #32
brandonsalmon
The CQ bit was unchecked by brandonsalmon@chromium.org
6 years, 6 months ago (2014-06-27 01:15:20 UTC) #33
brandonsalmon
The CQ bit was checked by brandonsalmon@chromium.org
6 years, 5 months ago (2014-06-27 01:59:19 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brandonsalmon@chromium.org/329733002/450005
6 years, 5 months ago (2014-06-27 02:00:34 UTC) #35
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium ...
6 years, 5 months ago (2014-06-27 05:43:14 UTC) #36
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-06-27 05:51:15 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/33019)
6 years, 5 months ago (2014-06-27 05:51:16 UTC) #38
brandonsalmon
The CQ bit was checked by brandonsalmon@chromium.org
6 years, 5 months ago (2014-06-27 18:28:53 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brandonsalmon@chromium.org/329733002/630001
6 years, 5 months ago (2014-06-27 18:30:06 UTC) #40
rvargas (doing something else)
a few nits to be considered in the future. https://codereview.chromium.org/329733002/diff/450005/net/http/disk_based_cert_cache.cc File net/http/disk_based_cert_cache.cc (right): https://codereview.chromium.org/329733002/diff/450005/net/http/disk_based_cert_cache.cc#newcode49 net/http/disk_based_cert_cache.cc:49: ...
6 years, 5 months ago (2014-06-27 19:00:09 UTC) #41
brandonsalmon
https://codereview.chromium.org/329733002/diff/450005/net/http/disk_based_cert_cache.cc File net/http/disk_based_cert_cache.cc (right): https://codereview.chromium.org/329733002/diff/450005/net/http/disk_based_cert_cache.cc#newcode210 net/http/disk_based_cert_cache.cc:210: state_ = STATE_NONE; On 2014/06/27 19:00:09, rvargas wrote: > ...
6 years, 5 months ago (2014-06-27 19:20:15 UTC) #42
rvargas (doing something else)
https://codereview.chromium.org/329733002/diff/450005/net/http/disk_based_cert_cache.cc File net/http/disk_based_cert_cache.cc (right): https://codereview.chromium.org/329733002/diff/450005/net/http/disk_based_cert_cache.cc#newcode210 net/http/disk_based_cert_cache.cc:210: state_ = STATE_NONE; On 2014/06/27 19:20:15, brandonsalmon wrote: > ...
6 years, 5 months ago (2014-06-27 19:55:31 UTC) #43
commit-bot: I haz the power
Change committed as 280400
6 years, 5 months ago (2014-06-27 20:31:42 UTC) #44
brandonsalmon
A revert of this CL has been created in https://codereview.chromium.org/353183004/ by brandonsalmon@chromium.org. The reason for ...
6 years, 5 months ago (2014-06-27 21:26:56 UTC) #45
brandonsalmon
Fixed memory leak.
6 years, 5 months ago (2014-06-27 23:04:12 UTC) #46
wtc
Patch set 18 LGTM. To reopen the issue, click the "Edit Issue" link, uncheck the ...
6 years, 5 months ago (2014-06-28 14:22:30 UTC) #47
brandonsalmon
The CQ bit was checked by brandonsalmon@chromium.org
6 years, 5 months ago (2014-06-30 17:08:00 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brandonsalmon@chromium.org/329733002/670001
6 years, 5 months ago (2014-06-30 17:08:18 UTC) #49
rvargas (doing something else)
https://codereview.chromium.org/329733002/diff/670001/net/http/disk_based_cert_cache_unittest.cc File net/http/disk_based_cert_cache_unittest.cc (right): https://codereview.chromium.org/329733002/diff/670001/net/http/disk_based_cert_cache_unittest.cc#newcode173 net/http/disk_based_cert_cache_unittest.cc:173: entry->Close(); On 2014/06/28 14:22:30, wtc wrote: > > Nit: ...
6 years, 5 months ago (2014-06-30 18:21:24 UTC) #50
commit-bot: I haz the power
6 years, 5 months ago (2014-06-30 20:33:59 UTC) #51
Message was sent while issue was closed.
Change committed as 280656

Powered by Google App Engine
This is Rietveld 408576698