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

Issue 1415163009: Cleanup CPDF_Stream: (Closed)

Created:
5 years, 1 month ago by Lei Zhang
Modified:
5 years, 1 month ago
Reviewers:
dsinclair
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Cleanup CPDF_Stream: - Remove CPDF_Stream::Create() and checks that it might fail. - Remove m_pCryptoHandler that's always a nullptr. - Remove m_FileOffset that's always 0. - Rename file version of InitStream() to InitStreamFromFile(). - Use IsMemoryBased() in more places. R=dsinclair@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/e6e16954f0cdc324849fca9da883be8f131b3834

Patch Set 1 #

Patch Set 2 : self review #

Total comments: 4

Patch Set 3 : nits #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -117 lines) Patch
M core/include/fpdfapi/fpdf_objects.h View 5 chunks +9 lines, -18 lines 0 comments Download
M core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp View 1 2 3 7 chunks +71 lines, -89 lines 0 comments Download
M core/src/fpdfdoc/doc_ap.cpp View 1 2 3 1 chunk +2 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Lei Zhang
5 years, 1 month ago (2015-11-10 08:16:47 UTC) #3
dsinclair
lgtm w/ nits. https://codereview.chromium.org/1415163009/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp (right): https://codereview.chromium.org/1415163009/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp#newcode866 core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp:866: m_GenNum = kMemoryBasedGenNum; It would be ...
5 years, 1 month ago (2015-11-10 17:32:37 UTC) #4
Lei Zhang
https://codereview.chromium.org/1415163009/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp (right): https://codereview.chromium.org/1415163009/diff/20001/core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp#newcode866 core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp:866: m_GenNum = kMemoryBasedGenNum; On 2015/11/10 17:32:36, dsinclair wrote: > ...
5 years, 1 month ago (2015-11-10 18:18:06 UTC) #5
Lei Zhang
5 years, 1 month ago (2015-11-10 18:23:35 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
e6e16954f0cdc324849fca9da883be8f131b3834 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698