Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | |
|
jun_fang
2015/09/21 12:18:08
2015
| |
| 6 | |
| 7 #ifndef _FPDFAPI_PARSER_INT_H_ | |
| 8 #define _FPDFAPI_PARSER_INT_H_ | |
| 9 | |
| 10 class CPDF_DataAvail; | |
| 11 | |
| 12 class CPDF_HintTables { | |
| 13 public: | |
| 14 CPDF_HintTables(CPDF_DataAvail* pDataAvail, CPDF_Dictionary* pLinearized) | |
| 15 : m_pLinearizedDict(pLinearized), | |
| 16 m_pHintStream(nullptr), | |
| 17 m_pDataAvail(pDataAvail), | |
| 18 m_nFirstPageSharedObjs(0), | |
| 19 m_szFirstPageObjOffset(0) {} | |
| 20 ~CPDF_HintTables(); | |
| 21 FX_BOOL GetPagePos(int index, | |
| 22 FX_FILESIZE& szPageStartPos, | |
| 23 FX_FILESIZE& szPageLength, | |
| 24 FX_DWORD& dwObjNum); | |
| 25 FX_BOOL CheckPage(int index, IFX_DownloadHints* pHints); | |
| 26 FX_BOOL LoadHintStream(CPDF_Stream* pHintStream); | |
| 27 | |
| 28 protected: | |
| 29 FX_BOOL ReadPageHintTable(CFX_BitStream& bs); | |
| 30 FX_BOOL ReadSharedObjHintTable(CFX_BitStream& bs); | |
| 31 FX_DWORD GetItemLength(int index, CFX_FileSizeArray& szArray); | |
| 32 CPDF_Dictionary* m_pLinearizedDict; | |
|
Tom Sepez
2015/09/22 00:05:39
nit: maybe blank line here between methods and mem
jun_fang
2015/09/22 12:42:32
Acknowledged.
| |
| 33 CPDF_Stream* m_pHintStream; | |
| 34 CPDF_DataAvail* m_pDataAvail; | |
| 35 FX_DWORD m_nFirstPageSharedObjs; | |
| 36 FX_FILESIZE m_szFirstPageObjOffset; | |
| 37 CFX_DWordArray m_dwDeltaNObjsArray; | |
| 38 CFX_DWordArray m_dwNSharedObjsArray; | |
| 39 CFX_DWordArray m_dwSharedObjNumArray; | |
| 40 CFX_DWordArray m_dwIdentifierArray; | |
| 41 CFX_FileSizeArray m_szPageOffsetArray; | |
| 42 CFX_FileSizeArray m_szSharedObjOffsetArray; | |
| 43 }; | |
| 44 #endif //_FPDFAPI_PARSER_INT_H_ | |
| OLD | NEW |