summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_hint_tables.h
diff options
context:
space:
mode:
authorArtem Strygin <art-snake@yandex-team.ru>2018-07-12 09:50:19 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-07-12 09:50:19 +0000
commit859d06f4ab89f4b6bcf4428585271c8c1d18907c (patch)
treed0d511c25199dbedfbba65c3dfecd954392b90f0 /core/fpdfapi/parser/cpdf_hint_tables.h
parent68d04f284423414392b7176cbd74671f50bae196 (diff)
downloadpdfium-859d06f4ab89f4b6bcf4428585271c8c1d18907c.tar.xz
Implement CPDF_HintsTable::SharedObjGroupInfo.
Merge shared objects related data into CPDF_HintsTable::SharedObjGroupInfo. Change-Id: I53bb7fc42ea6bcd26b3ebf91b8c6aa402108d086 Reviewed-on: https://pdfium-review.googlesource.com/15830 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.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/core/fpdfapi/parser/cpdf_hint_tables.h b/core/fpdfapi/parser/cpdf_hint_tables.h
index 0db190b189..861f231547 100644
--- a/core/fpdfapi/parser/cpdf_hint_tables.h
+++ b/core/fpdfapi/parser/cpdf_hint_tables.h
@@ -20,6 +20,11 @@ class CPDF_ReadValidator;
class CPDF_HintTables {
public:
+ struct SharedObjGroupInfo {
+ FX_FILESIZE m_szOffset = 0;
+ uint32_t m_dwLength = 0;
+ };
+
class PageInfo {
public:
PageInfo();
@@ -74,6 +79,9 @@ class CPDF_HintTables {
bool LoadHintStream(CPDF_Stream* pHintStream);
const std::vector<PageInfo>& PageInfos() const { return m_PageInfos; }
+ const std::vector<SharedObjGroupInfo>& SharedGroupInfos() const {
+ return m_SharedObjGroupInfos;
+ }
protected:
bool ReadPageHintTable(CFX_BitStream* hStream);
@@ -95,8 +103,7 @@ class CPDF_HintTables {
FX_FILESIZE m_szFirstPageObjOffset;
std::vector<PageInfo> m_PageInfos;
- std::vector<uint32_t> m_dwSharedObjNumArray;
- std::vector<FX_FILESIZE> m_szSharedObjOffsetArray;
+ std::vector<SharedObjGroupInfo> m_SharedObjGroupInfos;
};
#endif // CORE_FPDFAPI_PARSER_CPDF_HINT_TABLES_H_