DescriptionClean 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 #
Messages
Total messages: 27 (0 generated)
|