diff options
author | Artem Strygin <art-snake@yandex-team.ru> | 2018-08-02 19:19:27 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-02 19:19:27 +0000 |
commit | 2d2b9934996277801a63bb0670899030dcdbcd35 (patch) | |
tree | 80dd13b8d4846640bd549543e720268258a3af40 /core/fpdfapi/parser/cpdf_hint_tables.h | |
parent | e89d258be505877a6f73d36b3b84a41e4ee37ea8 (diff) | |
download | pdfium-2d2b9934996277801a63bb0670899030dcdbcd35.tar.xz |
Rework of CPDF_DataAvail::CheckHintTables.
Move HintTables parsing logic into CPDF_HintTables.
Change-Id: I9748179fe9fc3ac44f88c19c347e30c0e7e3ac67
Reviewed-on: https://pdfium-review.googlesource.com/38771
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Art Snake <art-snake@yandex-team.ru>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_hint_tables.h')
-rw-r--r-- | core/fpdfapi/parser/cpdf_hint_tables.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/fpdfapi/parser/cpdf_hint_tables.h b/core/fpdfapi/parser/cpdf_hint_tables.h index 20ba9be051..6b6a5897eb 100644 --- a/core/fpdfapi/parser/cpdf_hint_tables.h +++ b/core/fpdfapi/parser/cpdf_hint_tables.h @@ -7,6 +7,7 @@ #ifndef CORE_FPDFAPI_PARSER_CPDF_HINT_TABLES_H_ #define CORE_FPDFAPI_PARSER_CPDF_HINT_TABLES_H_ +#include <memory> #include <vector> #include "core/fpdfapi/parser/cpdf_data_avail.h" @@ -15,8 +16,9 @@ class CFX_BitStream; class CPDF_LinearizedHeader; -class CPDF_Stream; class CPDF_ReadValidator; +class CPDF_Stream; +class CPDF_SyntaxParser; class CPDF_HintTables { public: @@ -67,6 +69,10 @@ class CPDF_HintTables { PageInfo& operator=(const PageInfo&) = delete; }; + static std::unique_ptr<CPDF_HintTables> Parse( + CPDF_SyntaxParser* parser, + CPDF_LinearizedHeader* pLinearized); + CPDF_HintTables(CPDF_ReadValidator* pValidator, CPDF_LinearizedHeader* pLinearized); virtual ~CPDF_HintTables(); |