| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_PARSER_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_PARSER_H_ |
| 8 #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_PARSER_H_ | 8 #define CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_PARSER_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 Error SetEncryptHandler(); | 107 Error SetEncryptHandler(); |
| 108 void ReleaseEncryptHandler(); | 108 void ReleaseEncryptHandler(); |
| 109 FX_BOOL LoadLinearizedAllCrossRefV4(FX_FILESIZE pos, uint32_t dwObjCount); | 109 FX_BOOL LoadLinearizedAllCrossRefV4(FX_FILESIZE pos, uint32_t dwObjCount); |
| 110 FX_BOOL LoadLinearizedCrossRefV4(FX_FILESIZE pos, uint32_t dwObjCount); | 110 FX_BOOL LoadLinearizedCrossRefV4(FX_FILESIZE pos, uint32_t dwObjCount); |
| 111 FX_BOOL LoadLinearizedAllCrossRefV5(FX_FILESIZE pos); | 111 FX_BOOL LoadLinearizedAllCrossRefV5(FX_FILESIZE pos); |
| 112 Error LoadLinearizedMainXRefTable(); | 112 Error LoadLinearizedMainXRefTable(); |
| 113 CPDF_StreamAcc* GetObjectStream(uint32_t number); | 113 CPDF_StreamAcc* GetObjectStream(uint32_t number); |
| 114 FX_BOOL IsLinearizedFile(IFX_FileRead* pFileAccess, uint32_t offset); | 114 FX_BOOL IsLinearizedFile(IFX_FileRead* pFileAccess, uint32_t offset); |
| 115 void SetEncryptDictionary(CPDF_Dictionary* pDict); | 115 void SetEncryptDictionary(CPDF_Dictionary* pDict); |
| 116 void ShrinkObjectMap(uint32_t size); | 116 void ShrinkObjectMap(uint32_t size); |
| 117 // A simple check whether the cross reference table matches with |
| 118 // the objects. |
| 119 bool VerifyCrossRefV4(); |
| 117 | 120 |
| 118 CPDF_Document* m_pDocument; | 121 CPDF_Document* m_pDocument; |
| 119 std::unique_ptr<CPDF_SyntaxParser> m_pSyntax; | 122 std::unique_ptr<CPDF_SyntaxParser> m_pSyntax; |
| 120 bool m_bOwnFileRead; | 123 bool m_bOwnFileRead; |
| 121 int m_FileVersion; | 124 int m_FileVersion; |
| 122 CPDF_Dictionary* m_pTrailer; | 125 CPDF_Dictionary* m_pTrailer; |
| 123 CPDF_Dictionary* m_pEncryptDict; | 126 CPDF_Dictionary* m_pEncryptDict; |
| 124 FX_FILESIZE m_LastXRefOffset; | 127 FX_FILESIZE m_LastXRefOffset; |
| 125 FX_BOOL m_bXRefStream; | 128 FX_BOOL m_bXRefStream; |
| 126 std::unique_ptr<CPDF_SecurityHandler> m_pSecurityHandler; | 129 std::unique_ptr<CPDF_SecurityHandler> m_pSecurityHandler; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 kPostObjNum, | 167 kPostObjNum, |
| 165 kGenNum, | 168 kGenNum, |
| 166 kPostGenNum, | 169 kPostGenNum, |
| 167 kTrailer, | 170 kTrailer, |
| 168 kBeginObj, | 171 kBeginObj, |
| 169 kEndObj | 172 kEndObj |
| 170 }; | 173 }; |
| 171 }; | 174 }; |
| 172 | 175 |
| 173 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_PARSER_H_ | 176 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_PARSER_H_ |
| OLD | NEW |