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

Issue 356953003: Adding DiskBasedCertCache to HttpCache (+UMA). (Closed)

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

Description

Adding DiskBasedCertCache to HttpCache (+UMA). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282429

Patch Set 1 #

Total comments: 12

Patch Set 2 : Callbacks no longer members, forward declaration added, style fixes. #

Patch Set 3 : Added UMA histogram for timing DBCC certificate chain writing. #

Patch Set 4 : Fixed incorrect UMA histogram name and improved documentation. #

Patch Set 5 : Counting outwards from root instead of outwards from leaf (and added to histograms.xml) #

Patch Set 6 : fixed mistake in last patch. (v2) #

Patch Set 7 : Added field trial. #

Total comments: 39

Patch Set 8 : Fixed minor issues in patch 7. #

Total comments: 11

Patch Set 9 : Fixed nits. #

Total comments: 3

Patch Set 10 : Moved CertChain writing and reading to new functions. #

Total comments: 4

Patch Set 11 : Fixed nits. #

Total comments: 2

Patch Set 12 : Correctly renamed functions. #

Patch Set 13 : Improved histogram descriptions/ used BooleanSuccess enum. #

Total comments: 5

Patch Set 14 : Updated histograms. #

Total comments: 3

Patch Set 15 : Fixed issues (remembered to compile). #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -1 line) Patch
M net/http/http_cache.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -0 lines 0 comments Download
M net/http/http_cache.cc View 1 2 3 4 5 6 7 4 chunks +11 lines, -1 line 0 comments Download
M net/http/http_cache_transaction.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M net/http/http_cache_transaction.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +170 lines, -0 lines 5 comments Download
M tools/metrics/histograms/histograms.xml View 3 chunks +61 lines, -0 lines 1 comment Download

Messages

Total messages: 33 (0 generated)
brandonsalmon
This is a first attempt at adding the DBCC to the HttpCache.
6 years, 6 months ago (2014-06-26 19:41:40 UTC) #1
Ryan Sleevi
So, I would suggest that you move the getting/setting of the cache bits into helper ...
6 years, 6 months ago (2014-06-26 19:56:03 UTC) #2
brandonsalmon
I uploaded patch 2 in response to the review of patch 1. https://codereview.chromium.org/356953003/diff/1/net/http/disk_based_cert_cache.cc File net/http/disk_based_cert_cache.cc ...
6 years, 6 months ago (2014-06-26 22:04:43 UTC) #3
brandonsalmon
I added code that should create a UMA histogram of the time it takes to ...
6 years, 6 months ago (2014-06-27 01:53:42 UTC) #4
brandonsalmon
I added the necessary code for this change to be used as a field trial.
6 years, 5 months ago (2014-07-07 23:00:27 UTC) #5
wtc
Review comments on patch set 7: https://codereview.chromium.org/356953003/diff/250001/net/http/http_cache.cc File net/http/http_cache.cc (right): https://codereview.chromium.org/356953003/diff/250001/net/http/http_cache.cc#newcode49 net/http/http_cache.cc:49: bool UseCertCache() { ...
6 years, 5 months ago (2014-07-08 00:14:04 UTC) #6
Ryan Sleevi
wtc: I have a lot more comments for your comments than I do for Brandon's ...
6 years, 5 months ago (2014-07-08 00:34:18 UTC) #7
wtc
Ryan: I answered your questions below. https://codereview.chromium.org/356953003/diff/250001/net/http/http_cache.cc File net/http/http_cache.cc (right): https://codereview.chromium.org/356953003/diff/250001/net/http/http_cache.cc#newcode49 net/http/http_cache.cc:49: bool UseCertCache() { ...
6 years, 5 months ago (2014-07-08 01:54:42 UTC) #8
wtc
https://codereview.chromium.org/356953003/diff/250001/net/http/http_cache.cc File net/http/http_cache.cc (right): https://codereview.chromium.org/356953003/diff/250001/net/http/http_cache.cc#newcode51 net/http/http_cache.cc:51: "ExperimentGroup"; IMPORTANT: Users in the field trial will have ...
6 years, 5 months ago (2014-07-08 18:24:21 UTC) #9
Ryan Sleevi
https://codereview.chromium.org/356953003/diff/250001/net/http/http_cache.cc File net/http/http_cache.cc (right): https://codereview.chromium.org/356953003/diff/250001/net/http/http_cache.cc#newcode51 net/http/http_cache.cc:51: "ExperimentGroup"; On 2014/07/08 18:24:21, wtc wrote: > > IMPORTANT: ...
6 years, 5 months ago (2014-07-08 18:29:08 UTC) #10
wtc
https://codereview.chromium.org/356953003/diff/250001/net/http/http_cache.cc File net/http/http_cache.cc (right): https://codereview.chromium.org/356953003/diff/250001/net/http/http_cache.cc#newcode51 net/http/http_cache.cc:51: "ExperimentGroup"; On 2014/07/08 18:29:08, Ryan Sleevi wrote: > > ...
6 years, 5 months ago (2014-07-08 19:00:11 UTC) #11
brandonsalmon
I fixed the minor issues mentioned in patch set 7.
6 years, 5 months ago (2014-07-08 19:12:52 UTC) #12
Ryan Sleevi
On 2014/07/08 19:00:11, wtc wrote: > https://codereview.chromium.org/356953003/diff/250001/net/http/http_cache.cc > File net/http/http_cache.cc (right): > > https://codereview.chromium.org/356953003/diff/250001/net/http/http_cache.cc#newcode51 > ...
6 years, 5 months ago (2014-07-08 19:17:12 UTC) #13
wtc
Patch set 8 LGTM. https://codereview.chromium.org/356953003/diff/280005/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/356953003/diff/280005/net/http/http_cache_transaction.cc#newcode61 net/http/http_cache_transaction.cc:61: : num_pending_ops(num_ops), start_time(start) {} Nit: ...
6 years, 5 months ago (2014-07-08 22:37:34 UTC) #14
brandonsalmon
I fixed a few issues with the last patch set.
6 years, 5 months ago (2014-07-08 23:16:45 UTC) #15
rvargas (doing something else)
Consider my review a drive-by (I'm leaving the detailed review to wtc/ryan). https://codereview.chromium.org/356953003/diff/300001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc ...
6 years, 5 months ago (2014-07-09 00:05:39 UTC) #16
brandonsalmon
I moved the code for reading and writing the certificate chains to their own HttpCache::Transaction ...
6 years, 5 months ago (2014-07-09 00:50:56 UTC) #17
rvargas (doing something else)
Thanks! https://codereview.chromium.org/356953003/diff/320001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/356953003/diff/320001/net/http/http_cache_transaction.cc#newcode1871 net/http/http_cache_transaction.cc:1871: //----------------------------------------------------------------------------- nit: this line separates the state machine ...
6 years, 5 months ago (2014-07-09 01:25:36 UTC) #18
wtc
Patch set 11 LGTM. https://codereview.chromium.org/356953003/diff/360001/net/http/http_cache_transaction.h File net/http/http_cache_transaction.h (right): https://codereview.chromium.org/356953003/diff/360001/net/http/http_cache_transaction.h#newcode273 net/http/http_cache_transaction.h:273: void CertChainWrite(); Please name these ...
6 years, 5 months ago (2014-07-09 01:50:42 UTC) #19
brandonsalmon
Fixed the last patch. https://codereview.chromium.org/356953003/diff/320001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/356953003/diff/320001/net/http/http_cache_transaction.cc#newcode1871 net/http/http_cache_transaction.cc:1871: //----------------------------------------------------------------------------- On 2014/07/09 01:25:36, rvargas ...
6 years, 5 months ago (2014-07-09 01:50:43 UTC) #20
brandonsalmon
https://codereview.chromium.org/356953003/diff/360001/net/http/http_cache_transaction.h File net/http/http_cache_transaction.h (right): https://codereview.chromium.org/356953003/diff/360001/net/http/http_cache_transaction.h#newcode273 net/http/http_cache_transaction.h:273: void CertChainWrite(); On 2014/07/09 01:50:42, wtc wrote: > > ...
6 years, 5 months ago (2014-07-09 01:58:50 UTC) #21
brandonsalmon
I improved my histogram descriptions in histograms.xml.
6 years, 5 months ago (2014-07-09 18:20:20 UTC) #22
Ryan Sleevi
lgtm
6 years, 5 months ago (2014-07-09 18:59:36 UTC) #23
wtc
Patch set 13 LGTM. https://codereview.chromium.org/356953003/diff/400001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/356953003/diff/400001/tools/metrics/histograms/histograms.xml#newcode3505 tools/metrics/histograms/histograms.xml:3505: + Measures the wall clock ...
6 years, 5 months ago (2014-07-09 21:11:51 UTC) #24
jar (doing other things)
https://codereview.chromium.org/356953003/diff/400001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/356953003/diff/400001/net/http/http_cache_transaction.cc#newcode136 net/http/http_cache_transaction.cc:136: UMA_HISTOGRAM_TIMES("DiskBasedCertCache.ChainWriteTime", write_chain_wait); nit: suggest UMA_HISTOGRAM_CUSTOM_TIMES("...", sample, base::TimeDelta::FromMilliseconds(1), base::TimeDelta::FromMinutes(10), 50) ...
6 years, 5 months ago (2014-07-09 22:12:01 UTC) #25
jar (doing other things)
https://chromiumcodereview.appspot.com/356953003/diff/420001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://chromiumcodereview.appspot.com/356953003/diff/420001/net/http/http_cache_transaction.cc#newcode117 net/http/http_cache_transaction.cc:117: "DiskBasedCertCache.CertIoReadFailure", 1, 10, 7); I think your'e missing an ...
6 years, 5 months ago (2014-07-10 00:14:52 UTC) #26
brandonsalmon
I rewrote some of the histogram descriptions (and I remembered to compile this time).
6 years, 5 months ago (2014-07-10 02:06:54 UTC) #27
jar (doing other things)
lgtm
6 years, 5 months ago (2014-07-10 03:13:06 UTC) #28
brandonsalmon
The CQ bit was checked by brandonsalmon@chromium.org
6 years, 5 months ago (2014-07-10 17:48:08 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brandonsalmon@chromium.org/356953003/440001
6 years, 5 months ago (2014-07-10 17:49:17 UTC) #30
wtc
Patch set 15 LGTM. You don't need to abort the commit queue job for these ...
6 years, 5 months ago (2014-07-10 18:42:21 UTC) #31
brandonsalmon
https://codereview.chromium.org/356953003/diff/440001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/356953003/diff/440001/net/http/http_cache_transaction.cc#newcode101 net/http/http_cache_transaction.cc:101: UMA_HISTOGRAM_CUSTOM_TIMES("DiskBasedCertCache.ChainReadTime", On 2014/07/10 18:42:21, wtc wrote: > > Should ...
6 years, 5 months ago (2014-07-10 19:00:13 UTC) #32
commit-bot: I haz the power
6 years, 5 months ago (2014-07-10 21:18:23 UTC) #33
Message was sent while issue was closed.
Change committed as 282429

Powered by Google App Engine
This is Rietveld 408576698