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

Issue 1805683002: Add a Retained Pointer smart class. (Closed)

Created:
4 years, 9 months ago by Tom Sepez
Modified:
4 years, 8 months ago
Reviewers:
Lei Zhang, dsinclair
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Add a Retained Pointer smart class. It's going to be hard to fix some XFA object leaks without this. Put this in fxcrt/ as we should be able to make the FX strings take advantage of this. BUG=pdfium:55 Committed: https://pdfium.googlesource.com/pdfium/+/602aebc11a615971800d38f8d427a4e4f95c1134

Patch Set 1 #

Patch Set 2 : Typo in Get() vs. get(). #

Patch Set 3 : Move FreeDeleter and such to fx_memory.h #

Total comments: 6

Patch Set 4 : Move to fxcrt/include, tidy per comments. #

Patch Set 5 : One more test. #

Total comments: 2

Patch Set 6 : Rebase, improve Reset(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+320 lines, -43 lines) Patch
M BUILD.gn View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
A core/fxcrt/cfx_retain_ptr_unittest.cpp View 1 2 3 4 1 chunk +215 lines, -0 lines 0 comments Download
A core/fxcrt/include/cfx_retain_ptr.h View 1 2 3 4 5 1 chunk +57 lines, -0 lines 0 comments Download
M core/fxcrt/include/fx_basic.h View 1 2 3 4 5 1 chunk +0 lines, -26 lines 0 comments Download
M core/fxcrt/include/fx_memory.h View 1 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
M pdfium.gyp View 1 2 3 4 5 3 chunks +20 lines, -17 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
Tom Sepez
Dan, for review.
4 years, 9 months ago (2016-03-15 21:47:03 UTC) #2
dsinclair
https://codereview.chromium.org/1805683002/diff/40001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/1805683002/diff/40001/BUILD.gn#newcode541 BUILD.gn:541: "core/include/fxcrt/cfx_retain_ptr.h", Can we put this in core/fxcrt/include? https://codereview.chromium.org/1805683002/diff/40001/core/include/fxcrt/cfx_retain_ptr.h File ...
4 years, 9 months ago (2016-03-16 13:47:45 UTC) #5
Tom Sepez
https://codereview.chromium.org/1805683002/diff/40001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/1805683002/diff/40001/BUILD.gn#newcode541 BUILD.gn:541: "core/include/fxcrt/cfx_retain_ptr.h", On 2016/03/16 13:47:45, dsinclair wrote: > Can we ...
4 years, 9 months ago (2016-03-16 19:12:56 UTC) #6
dsinclair
lgtm Sorry, thought I'd lgtm'd this one.
4 years, 9 months ago (2016-03-17 01:30:29 UTC) #7
dsinclair
Were you still planning on landing this one?
4 years, 9 months ago (2016-03-22 20:33:18 UTC) #8
Tom Sepez
On 2016/03/22 20:33:18, dsinclair wrote: > Were you still planning on landing this one? Once ...
4 years, 9 months ago (2016-03-22 20:38:06 UTC) #9
Lei Zhang
lgtm, but needs rebasing. https://codereview.chromium.org/1805683002/diff/80001/core/fxcrt/include/cfx_retain_ptr.h File core/fxcrt/include/cfx_retain_ptr.h (right): https://codereview.chromium.org/1805683002/diff/80001/core/fxcrt/include/cfx_retain_ptr.h#newcode28 core/fxcrt/include/cfx_retain_ptr.h:28: void Reset(T* obj = nullptr) ...
4 years, 8 months ago (2016-03-29 18:36:36 UTC) #10
Tom Sepez
On 2016/03/29 18:36:36, Lei Zhang wrote: > lgtm, but needs rebasing. > > https://codereview.chromium.org/1805683002/diff/80001/core/fxcrt/include/cfx_retain_ptr.h > ...
4 years, 8 months ago (2016-03-29 21:32:14 UTC) #11
Tom Sepez
https://codereview.chromium.org/1805683002/diff/80001/core/fxcrt/include/cfx_retain_ptr.h File core/fxcrt/include/cfx_retain_ptr.h (right): https://codereview.chromium.org/1805683002/diff/80001/core/fxcrt/include/cfx_retain_ptr.h#newcode28 core/fxcrt/include/cfx_retain_ptr.h:28: void Reset(T* obj = nullptr) { On 2016/03/29 18:36:36, ...
4 years, 8 months ago (2016-03-29 21:37:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1805683002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1805683002/100001
4 years, 8 months ago (2016-03-29 21:37:39 UTC) #15
commit-bot: I haz the power
4 years, 8 months ago (2016-03-29 22:04:25 UTC) #17
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://pdfium.googlesource.com/pdfium/+/602aebc11a615971800d38f8d427a4e4f95c...

Powered by Google App Engine
This is Rietveld 408576698