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

Issue 140893013: Clean up dependencies for disk_cache histogram_macros.h. (Closed)

Created:
6 years, 10 months ago by gavinp
Modified:
6 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Clean up dependencies for disk_cache histogram_macros.h. The current mechanism by which these convenience macros find their backend is confusing, at best; the macro has the form of our include guard macros, but describes a CC file. Embedded within the histogram_macros.h then is an abstraction violation: it just knows which object has backend information depending on which file it was included from. Some downstream reviews have made this even more confusing; rather than continue this, let's parameterize the backend object to the convenience macros, so each translation unit is responsible for knowing its own context. R=mmenke@chromium.org, rvargas@chromium.org TBR=mmenke@chromium.org BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251116

Patch Set 1 #

Patch Set 2 : self review #

Patch Set 3 : cleanup pipelining compatibility client #

Total comments: 8

Patch Set 4 : remediate #

Patch Set 5 : finish remediation #

Patch Set 6 : actually finish remediation #

Patch Set 7 : spelling #

Total comments: 1

Patch Set 8 : rebase #

Patch Set 9 : rebase #

Patch Set 10 : fix comment, name, include order #

Patch Set 11 : save first, commit second #

Patch Set 12 : fix fat finger #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -25 lines) Patch
M chrome/browser/net/http_pipelining_compatibility_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M net/disk_cache/backend_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M net/disk_cache/backend_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M net/disk_cache/entry_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M net/disk_cache/eviction.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M net/disk_cache/histogram_macros.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -8 lines 0 comments Download
M net/disk_cache/in_flight_backend_io.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M net/disk_cache/rankings.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M net/disk_cache/v3/backend_impl_v3.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M net/disk_cache/v3/backend_worker.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M net/disk_cache/v3/entry_impl_v3.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M net/disk_cache/v3/eviction_v3.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M net/disk_cache/v3/histogram_macros.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -8 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
gavinp
mmenke, rvargas: PTAL. This review is upstream of the net/disk_cache directory re-orgs. In the first ...
6 years, 10 months ago (2014-02-06 18:28:10 UTC) #1
rvargas (doing something else)
Sorry for the delay, I'll try to go over it on Monday.
6 years, 10 months ago (2014-02-08 03:57:37 UTC) #2
rvargas (doing something else)
https://codereview.chromium.org/140893013/diff/260001/chrome/browser/net/http_pipelining_compatibility_client.cc File chrome/browser/net/http_pipelining_compatibility_client.cc (right): https://codereview.chromium.org/140893013/diff/260001/chrome/browser/net/http_pipelining_compatibility_client.cc#newcode30 chrome/browser/net/http_pipelining_compatibility_client.cc:30: // TODO(gavinp,rvargas): Clean up this dependency by moving the ...
6 years, 10 months ago (2014-02-11 02:17:15 UTC) #3
gavinp
PTAL. https://codereview.chromium.org/140893013/diff/260001/chrome/browser/net/http_pipelining_compatibility_client.cc File chrome/browser/net/http_pipelining_compatibility_client.cc (right): https://codereview.chromium.org/140893013/diff/260001/chrome/browser/net/http_pipelining_compatibility_client.cc#newcode30 chrome/browser/net/http_pipelining_compatibility_client.cc:30: // TODO(gavinp,rvargas): Clean up this dependency by moving ...
6 years, 10 months ago (2014-02-11 16:12:43 UTC) #4
rvargas (doing something else)
https://codereview.chromium.org/140893013/diff/260001/net/disk_cache/histogram_macros.h File net/disk_cache/histogram_macros.h (right): https://codereview.chromium.org/140893013/diff/260001/net/disk_cache/histogram_macros.h#newcode87 net/disk_cache/histogram_macros.h:87: #define BACKEND_OBJ CACHE_HISTOGRAM_MACROS_BACKEND_IMPL_OBJ On 2014/02/11 16:12:45, gavinp wrote: > ...
6 years, 10 months ago (2014-02-11 19:41:48 UTC) #5
rvargas (doing something else)
On 2014/02/11 19:41:48, rvargas wrote: > https://codereview.chromium.org/140893013/diff/260001/net/disk_cache/histogram_macros.h > File net/disk_cache/histogram_macros.h (right): > > https://codereview.chromium.org/140893013/diff/260001/net/disk_cache/histogram_macros.h#newcode87 > ...
6 years, 10 months ago (2014-02-11 19:42:29 UTC) #6
gavinp
PTAL. I've updated the macro name, and the comment.
6 years, 10 months ago (2014-02-12 21:09:52 UTC) #7
rvargas (doing something else)
LGTM
6 years, 10 months ago (2014-02-12 22:27:39 UTC) #8
gavinp
The CQ bit was checked by gavinp@chromium.org
6 years, 10 months ago (2014-02-13 13:51:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/140893013/1370001
6 years, 10 months ago (2014-02-13 13:51:20 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 14:16:05 UTC) #11
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=50055
6 years, 10 months ago (2014-02-13 14:16:06 UTC) #12
mmenke
The CQ bit was checked by mmenke@chromium.org
6 years, 10 months ago (2014-02-13 16:44:09 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/140893013/1370001
6 years, 10 months ago (2014-02-13 16:44:28 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 17:12:23 UTC) #15
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=50085
6 years, 10 months ago (2014-02-13 17:12:24 UTC) #16
gavinp
Adding mmenke to TBR for http_pipeline_compatibility_client.cc.
6 years, 10 months ago (2014-02-13 18:53:07 UTC) #17
gavinp
The CQ bit was checked by gavinp@chromium.org
6 years, 10 months ago (2014-02-13 18:53:12 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/140893013/1370001
6 years, 10 months ago (2014-02-13 18:54:18 UTC) #19
mmenke
On 2014/02/13 18:53:12, gavinp wrote: > The CQ bit was checked by mailto:gavinp@chromium.org Pipelining stuff ...
6 years, 10 months ago (2014-02-13 18:55:13 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 19:13:50 UTC) #21
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=50125
6 years, 10 months ago (2014-02-13 19:13:51 UTC) #22
gavinp
The CQ bit was checked by gavinp@chromium.org
6 years, 10 months ago (2014-02-13 19:37:15 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/140893013/1370001
6 years, 10 months ago (2014-02-13 20:00:28 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 20:40:49 UTC) #25
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=50160
6 years, 10 months ago (2014-02-13 20:40:50 UTC) #26
gavinp
6 years, 10 months ago (2014-02-13 20:46:58 UTC) #27
Message was sent while issue was closed.
Committed patchset #12 manually as r251116.

Powered by Google App Engine
This is Rietveld 408576698