diff options
author | Artem Strygin <art-snake@yandex-team.ru> | 2017-10-03 17:33:19 +0300 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-10-03 19:53:25 +0000 |
commit | aafdc153a2b7609968b315ca6c6900717f6d6c36 (patch) | |
tree | 4e9671595b04047a507a64292f19114d9589be91 /core/fpdfapi/parser/cpdf_hint_tables.h | |
parent | 609d1fd4a4360e2592c5c59d60758ac67a1cb4ee (diff) | |
download | pdfium-chromium/3232.tar.xz |
Unify CPDF_HintsTable.chromium/3232
Break relationship from CPDF_DataAvail for CPDF_HintsTable.
Change-Id: If3e6d4910dd368742f095c05adb122ab08c0d804
Reviewed-on: https://pdfium-review.googlesource.com/15270
Commit-Queue: Art Snake <art-snake@yandex-team.ru>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_hint_tables.h')
-rw-r--r-- | core/fpdfapi/parser/cpdf_hint_tables.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/fpdfapi/parser/cpdf_hint_tables.h b/core/fpdfapi/parser/cpdf_hint_tables.h index 9658be5462..a9aa5d42d9 100644 --- a/core/fpdfapi/parser/cpdf_hint_tables.h +++ b/core/fpdfapi/parser/cpdf_hint_tables.h @@ -16,10 +16,11 @@ class CFX_BitStream; class CPDF_LinearizedHeader; class CPDF_Stream; +class CPDF_ReadValidator; class CPDF_HintTables { public: - CPDF_HintTables(CPDF_DataAvail* pDataAvail, + CPDF_HintTables(CPDF_ReadValidator* pValidator, CPDF_LinearizedHeader* pLinearized); virtual ~CPDF_HintTables(); @@ -48,8 +49,8 @@ class CPDF_HintTables { uint32_t GetItemLength(uint32_t index, const std::vector<FX_FILESIZE>& szArray); - // Owner, outlives this object. - UnownedPtr<CPDF_DataAvail> const m_pDataAvail; + // Owned by |m_pDataAvail|. + UnownedPtr<CPDF_ReadValidator> m_pValidator; // Owned by |m_pDataAvail|. UnownedPtr<CPDF_LinearizedHeader> const m_pLinearized; |