diff options
author | Artem Strygin <art-snake@yandex-team.ru> | 2017-08-23 17:40:40 +0300 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-28 21:02:22 +0000 |
commit | 4a1493d73135d87d1d4417dd168c92e8902dd12d (patch) | |
tree | 074ed195be883756d84e82efa80460a170eefef0 /core/fpdfapi/parser/cpdf_data_avail.h | |
parent | 93ed5f640ce24dae3f0bbf8eeb38e3cc83909a60 (diff) | |
download | pdfium-4a1493d73135d87d1d4417dd168c92e8902dd12d.tar.xz |
Unify CPDF_DataAvail::LoadAllFile.chromium/3199
Use read validator to check whole file availability.
Change-Id: Ic118ccee38557d124ecde3893ee3c18c98c674d5
Reviewed-on: https://pdfium-review.googlesource.com/11712
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_data_avail.h')
-rw-r--r-- | core/fpdfapi/parser/cpdf_data_avail.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fpdfapi/parser/cpdf_data_avail.h b/core/fpdfapi/parser/cpdf_data_avail.h index e704e12900..57fcc96eb7 100644 --- a/core/fpdfapi/parser/cpdf_data_avail.h +++ b/core/fpdfapi/parser/cpdf_data_avail.h @@ -144,7 +144,7 @@ class CPDF_DataAvail final { bool CheckAcroForm(); bool CheckAcroFormSubObject(); bool CheckTrailerAppend(DownloadHints* pHints); - bool CheckPageStatus(DownloadHints* pHints); + bool CheckPageStatus(); bool IsLinearizedFile(uint8_t* pData, uint32_t dwLen); void SetStartOffset(FX_FILESIZE dwOffset); @@ -158,14 +158,14 @@ class CPDF_DataAvail final { bool* pExistInFile); bool GetPageKids(CPDF_Parser* pParser, CPDF_Object* pPages); bool PreparePageItem(); - bool LoadPages(DownloadHints* pHints); + bool LoadPages(); bool LoadAllXref(DownloadHints* pHints); - bool LoadAllFile(DownloadHints* pHints); + bool LoadAllFile(); DocAvailStatus CheckLinearizedData(DownloadHints* pHints); bool CheckPageAnnots(uint32_t dwPage); DocAvailStatus CheckLinearizedFirstPage(uint32_t dwPage); - bool CheckPage(uint32_t dwPage, DownloadHints* pHints); + bool CheckPage(uint32_t dwPage); bool LoadDocPages(); bool LoadDocPage(uint32_t dwPage); bool CheckPageNode(const PageNode& pageNode, |