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

Issue 10416003: RefCounted types should not have public destructors (Closed)

Created:
8 years, 7 months ago by Ryan Sleevi
Modified:
8 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, jochen+watch-content_chromium.org, erikwright (departed), joi+watch-content_chromium.org, darin-cc_chromium.org, rdsmith+dwatch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

RefCounted types should not have public destructors Change content::ResourceResponse to be base::RefCountedData<> rather than directly inheriting from both ResourceResponseHead and base::RefCounted. BUG=123295 TEST=existing Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=143880

Patch Set 1 #

Total comments: 5

Patch Set 2 : Review feedback #

Patch Set 3 : Rebase to r139261 #

Patch Set 4 : Rebased to ToT #

Patch Set 5 : Rebase to r141382 #

Patch Set 6 : Rebase to ToT #

Patch Set 7 : One more fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -59 lines) Patch
M base/memory/ref_counted.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/net/load_timing_observer.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/debugger/devtools_netlog_observer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_resource_handler.cc View 1 2 3 4 5 3 chunks +7 lines, -8 lines 0 comments Download
M content/browser/renderer_host/async_resource_handler.cc View 1 2 3 4 5 2 chunks +6 lines, -6 lines 0 comments Download
M content/browser/renderer_host/buffered_resource_handler.cc View 1 2 3 4 5 6 chunks +9 lines, -9 lines 0 comments Download
M content/browser/renderer_host/cross_site_resource_handler.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/redirect_to_file_resource_handler.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/resource_loader.cc View 1 2 3 4 5 6 2 chunks +16 lines, -15 lines 0 comments Download
M content/browser/renderer_host/sync_resource_handler.cc View 1 2 3 4 5 1 chunk +10 lines, -10 lines 0 comments Download
M content/browser/renderer_host/x509_user_cert_resource_handler.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/public/common/resource_response.h View 1 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Ryan Sleevi
jar: base/ (and chrome/browser/net since its noparent) jam: everything else
8 years, 7 months ago (2012-05-21 07:54:22 UTC) #1
jam
I find that the additional "->data." makes things less readable, so I prefer the original ...
8 years, 7 months ago (2012-05-21 15:18:42 UTC) #2
Ryan Sleevi
On May 21, 2012 8:18 AM, <jam@chromium.org> wrote: > > I find that the additional ...
8 years, 7 months ago (2012-05-21 15:32:19 UTC) #3
jar (doing other things)
base/memory/ref_counted.h LGTM (I didn't review the rest)
8 years, 7 months ago (2012-05-21 16:17:09 UTC) #4
jam
On 2012/05/21 15:32:19, Ryan Sleevi wrote: > On May 21, 2012 8:18 AM, <mailto:jam@chromium.org> wrote: ...
8 years, 7 months ago (2012-05-22 00:22:29 UTC) #5
Ryan Sleevi
On 2012/05/22 00:22:29, John Abd-El-Malek wrote: > On 2012/05/21 15:32:19, Ryan Sleevi wrote: > > ...
8 years, 7 months ago (2012-05-22 00:37:39 UTC) #6
jam
I'm not a fan of the extra "data->". I'll defer to Darin, since he wrote ...
8 years, 7 months ago (2012-05-22 15:40:28 UTC) #7
darin (slow to review)
http://codereview.chromium.org/10416003/diff/1/base/memory/ref_counted.h File base/memory/ref_counted.h (right): http://codereview.chromium.org/10416003/diff/1/base/memory/ref_counted.h#newcode169 base/memory/ref_counted.h:169: ~RefCountedData() {} probably you want to make this destructor ...
8 years, 7 months ago (2012-05-22 18:01:31 UTC) #8
darin (slow to review)
I'm confused about the changes to ResourceResponse. It seemed to already have a non-public destructor.
8 years, 7 months ago (2012-05-22 18:03:08 UTC) #9
Ryan Sleevi
On 2012/05/22 18:03:08, darin wrote: > I'm confused about the changes to ResourceResponse. It seemed ...
8 years, 7 months ago (2012-05-22 18:34:28 UTC) #10
Ryan Sleevi
http://codereview.chromium.org/10416003/diff/1/base/memory/ref_counted.h File base/memory/ref_counted.h (right): http://codereview.chromium.org/10416003/diff/1/base/memory/ref_counted.h#newcode169 base/memory/ref_counted.h:169: ~RefCountedData() {} On 2012/05/22 18:01:31, darin wrote: > probably ...
8 years, 7 months ago (2012-05-22 18:36:20 UTC) #11
jam
On Tue, May 22, 2012 at 11:36 AM, <rsleevi@chromium.org> wrote: > > http://codereview.chromium.**org/10416003/diff/1/base/** > memory/ref_counted.h<http://codereview.chromium.org/10416003/diff/1/base/memory/ref_counted.h> ...
8 years, 7 months ago (2012-05-22 19:10:07 UTC) #12
darin (slow to review)
On 2012/05/22 18:36:20, Ryan Sleevi wrote: > http://codereview.chromium.org/10416003/diff/1/base/memory/ref_counted.h > File base/memory/ref_counted.h (right): > > http://codereview.chromium.org/10416003/diff/1/base/memory/ref_counted.h#newcode169 ...
8 years, 7 months ago (2012-05-22 21:27:58 UTC) #13
Ryan Sleevi
On 2012/05/22 21:27:58, darin wrote: > On 2012/05/22 18:36:20, Ryan Sleevi wrote: > > http://codereview.chromium.org/10416003/diff/1/base/memory/ref_counted.h ...
8 years, 7 months ago (2012-05-22 21:41:19 UTC) #14
darin (slow to review)
On Tue, May 22, 2012 at 2:41 PM, <rsleevi@chromium.org> wrote: > On 2012/05/22 21:27:58, darin ...
8 years, 7 months ago (2012-05-22 21:47:18 UTC) #15
Ryan Sleevi
On 2012/05/22 21:47:18, darin wrote: > On Tue, May 22, 2012 at 2:41 PM, <mailto:rsleevi@chromium.org> ...
8 years, 7 months ago (2012-05-22 21:59:22 UTC) #16
darin (slow to review)
On Tue, May 22, 2012 at 2:59 PM, <rsleevi@chromium.org> wrote: > On 2012/05/22 21:47:18, darin ...
8 years, 7 months ago (2012-05-22 22:43:47 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/10416003/26001
8 years, 6 months ago (2012-06-04 07:59:46 UTC) #18
commit-bot: I haz the power
Presubmit check for 10416003-26001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 6 months ago (2012-06-04 07:59:56 UTC) #19
Ryan Sleevi
On 2012/06/04 07:59:56, I haz the power (commit-bot) wrote: > Presubmit check for 10416003-26001 failed ...
8 years, 6 months ago (2012-06-11 21:19:22 UTC) #20
jam
lgtm
8 years, 6 months ago (2012-06-14 19:05:36 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/10416003/33001
8 years, 6 months ago (2012-06-14 19:26:43 UTC) #22
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/resource_dispatcher_host_impl.cc: While running patch -p1 --forward --force; patching file content/browser/renderer_host/resource_dispatcher_host_impl.cc ...
8 years, 6 months ago (2012-06-14 19:26:55 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsleevi@chromium.org/10416003/45001
8 years, 6 months ago (2012-06-25 06:57:35 UTC) #24
commit-bot: I haz the power
8 years, 6 months ago (2012-06-25 08:15:44 UTC) #25
Change committed as 143880

Powered by Google App Engine
This is Rietveld 408576698