diff options
author | Artem Strygin <art-snake@yandex-team.ru> | 2017-08-29 00:22:48 +0300 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-28 21:49:03 +0000 |
commit | 6e63fd32cd816210189516e92f0a650788f5f4f8 (patch) | |
tree | ca4f905470e4d563676ac3015178830c0f3d77e0 /core/fpdfapi/parser/cpdf_data_avail.h | |
parent | 38adfc184a53fbe472e48867acfc201ed940e8ee (diff) | |
download | pdfium-6e63fd32cd816210189516e92f0a650788f5f4f8.tar.xz |
Unify CPDF_DataAvail::CheckTrailer.
Use read validator to check trailer availability
Change-Id: Id8c62a6c746f136c05cfa8d646268322e2543b52
Reviewed-on: https://pdfium-review.googlesource.com/11770
Commit-Queue: Art Snake <art-snake@yandex-team.ru>
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 | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/fpdfapi/parser/cpdf_data_avail.h b/core/fpdfapi/parser/cpdf_data_avail.h index 57fcc96eb7..1f2a1f2475 100644 --- a/core/fpdfapi/parser/cpdf_data_avail.h +++ b/core/fpdfapi/parser/cpdf_data_avail.h @@ -43,7 +43,6 @@ enum PDF_DATAAVAIL_STATUS { PDF_DATAAVAIL_DONE, PDF_DATAAVAIL_ERROR, PDF_DATAAVAIL_LOADALLFILE, - PDF_DATAAVAIL_TRAILER_APPEND }; enum PDF_PAGENODE_TYPE { @@ -135,7 +134,7 @@ class CPDF_DataAvail final { bool CheckEnd(); bool CheckCrossRef(); bool CheckCrossRefItem(); - bool CheckTrailer(DownloadHints* pHints); + bool CheckTrailer(); bool CheckRoot(); bool CheckInfo(); bool CheckPages(); @@ -143,7 +142,6 @@ class CPDF_DataAvail final { bool CheckResources(); bool CheckAcroForm(); bool CheckAcroFormSubObject(); - bool CheckTrailerAppend(DownloadHints* pHints); bool CheckPageStatus(); bool IsLinearizedFile(uint8_t* pData, uint32_t dwLen); |