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

Issue 2275773003: Flip document and parser ownership (Closed)

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

Description

Flip document and parser ownership This Cl switches the ownership between the parser and the document. Previously the parser owned the document and we'd jump through hoops during cleanup to delete the right object. This Cl flips the ownership so the document owns the parser and simplifies the cleanup logic where needed. BUG=pdfium:565 Committed: https://pdfium.googlesource.com/pdfium/+/cedaa557316a3f5c436814e69d67f19795f471d7

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review cleanup #

Patch Set 3 : Rebase to master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -84 lines) Patch
M core/fpdfapi/fpdf_parser/cpdf_document.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_parser.cpp View 10 chunks +12 lines, -15 lines 0 comments Download
M core/fpdfapi/fpdf_parser/include/cpdf_document.h View 2 chunks +3 lines, -3 lines 0 comments Download
M core/fpdfapi/fpdf_parser/include/cpdf_parser.h View 2 chunks +4 lines, -7 lines 0 comments Download
M fpdfsdk/fpdf_dataavail.cpp View 1 chunk +7 lines, -6 lines 0 comments Download
M fpdfsdk/fpdfdoc_unittest.cpp View 3 chunks +4 lines, -2 lines 0 comments Download
M fpdfsdk/fpdfview.cpp View 1 5 chunks +18 lines, -32 lines 0 comments Download
M fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp View 3 chunks +3 lines, -13 lines 0 comments Download
M fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h View 2 chunks +7 lines, -3 lines 0 comments Download
M fpdfsdk/pdfwindow/PWL_FontMap.cpp View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 16 (10 generated)
dsinclair
PTAL.
4 years, 3 months ago (2016-08-24 15:40:37 UTC) #4
Tom Sepez
https://codereview.chromium.org/2275773003/diff/1/core/fpdfapi/fpdf_parser/include/cpdf_parser.h File core/fpdfapi/fpdf_parser/include/cpdf_parser.h (right): https://codereview.chromium.org/2275773003/diff/1/core/fpdfapi/fpdf_parser/include/cpdf_parser.h#newcode120 core/fpdfapi/fpdf_parser/include/cpdf_parser.h:120: CPDF_Document* m_pDocument; // not owned pity this can't be ...
4 years, 3 months ago (2016-08-24 16:38:52 UTC) #7
dsinclair
https://codereview.chromium.org/2275773003/diff/1/core/fpdfapi/fpdf_parser/include/cpdf_parser.h File core/fpdfapi/fpdf_parser/include/cpdf_parser.h (right): https://codereview.chromium.org/2275773003/diff/1/core/fpdfapi/fpdf_parser/include/cpdf_parser.h#newcode120 core/fpdfapi/fpdf_parser/include/cpdf_parser.h:120: CPDF_Document* m_pDocument; // not owned On 2016/08/24 16:38:52, Tom ...
4 years, 3 months ago (2016-08-24 17:30:48 UTC) #9
Tom Sepez
lgtm
4 years, 3 months ago (2016-08-24 17:38:13 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2275773003/40001
4 years, 3 months ago (2016-08-24 17:46:39 UTC) #14
commit-bot: I haz the power
4 years, 3 months ago (2016-08-24 18:12:22 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/cedaa557316a3f5c436814e69d67f19795f4...

Powered by Google App Engine
This is Rietveld 408576698