Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Side by Side Diff: core/src/fpdfapi/fpdf_parser/parser_int.h

Issue 1523523002: Fix hint table loading issues. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: im dumb Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef CORE_SRC_FPDFAPI_FPDF_PARSER_PARSER_INT_H_ 7 #ifndef CORE_SRC_FPDFAPI_FPDF_PARSER_PARSER_INT_H_
8 #define CORE_SRC_FPDFAPI_FPDF_PARSER_PARSER_INT_H_ 8 #define CORE_SRC_FPDFAPI_FPDF_PARSER_PARSER_INT_H_
9 9
10 #include "core/include/fxcrt/fx_basic.h" 10 #include "core/include/fxcrt/fx_basic.h"
(...skipping 16 matching lines...) Expand all
27 27
28 FX_BOOL GetPagePos(int index, 28 FX_BOOL GetPagePos(int index,
29 FX_FILESIZE& szPageStartPos, 29 FX_FILESIZE& szPageStartPos,
30 FX_FILESIZE& szPageLength, 30 FX_FILESIZE& szPageLength,
31 FX_DWORD& dwObjNum); 31 FX_DWORD& dwObjNum);
32 FX_BOOL CheckPage(int index, IFX_DownloadHints* pHints); 32 FX_BOOL CheckPage(int index, IFX_DownloadHints* pHints);
33 FX_BOOL LoadHintStream(CPDF_Stream* pHintStream); 33 FX_BOOL LoadHintStream(CPDF_Stream* pHintStream);
34 34
35 protected: 35 protected:
36 FX_BOOL ReadPageHintTable(CFX_BitStream* hStream); 36 FX_BOOL ReadPageHintTable(CFX_BitStream* hStream);
37 FX_BOOL ReadSharedObjHintTable(CFX_BitStream* hStream); 37 FX_BOOL ReadSharedObjHintTable(CFX_BitStream* hStream, FX_DWORD offset);
38 FX_DWORD GetItemLength(int index, const CFX_FileSizeArray& szArray); 38 FX_DWORD GetItemLength(int index, const CFX_FileSizeArray& szArray);
39 39
40 private: 40 private:
41 int ReadPrimaryHintStreamOffset() const; 41 int ReadPrimaryHintStreamOffset() const;
42 int ReadPrimaryHintStreamLength() const; 42 int ReadPrimaryHintStreamLength() const;
43 43
44 CPDF_Dictionary* m_pLinearizedDict; 44 CPDF_Dictionary* m_pLinearizedDict;
45 CPDF_DataAvail* m_pDataAvail; 45 CPDF_DataAvail* m_pDataAvail;
46 FX_DWORD m_nFirstPageSharedObjs; 46 FX_DWORD m_nFirstPageSharedObjs;
47 FX_FILESIZE m_szFirstPageObjOffset; 47 FX_FILESIZE m_szFirstPageObjOffset;
48 CFX_DWordArray m_dwDeltaNObjsArray; 48 CFX_DWordArray m_dwDeltaNObjsArray;
49 CFX_DWordArray m_dwNSharedObjsArray; 49 CFX_DWordArray m_dwNSharedObjsArray;
50 CFX_DWordArray m_dwSharedObjNumArray; 50 CFX_DWordArray m_dwSharedObjNumArray;
51 CFX_DWordArray m_dwIdentifierArray; 51 CFX_DWordArray m_dwIdentifierArray;
52 CFX_FileSizeArray m_szPageOffsetArray; 52 CFX_FileSizeArray m_szPageOffsetArray;
53 CFX_FileSizeArray m_szSharedObjOffsetArray; 53 CFX_FileSizeArray m_szSharedObjOffsetArray;
54 }; 54 };
55 55
56 #endif // CORE_SRC_FPDFAPI_FPDF_PARSER_PARSER_INT_H_ 56 #endif // CORE_SRC_FPDFAPI_FPDF_PARSER_PARSER_INT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698