| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 CPDF_Object* ParseIndirectObjectAt(CPDF_IndirectObjectHolder* pObjList, | 76 CPDF_Object* ParseIndirectObjectAt(CPDF_IndirectObjectHolder* pObjList, |
| 77 FX_FILESIZE pos, | 77 FX_FILESIZE pos, |
| 78 uint32_t objnum); | 78 uint32_t objnum); |
| 79 | 79 |
| 80 CPDF_Object* ParseIndirectObjectAtByStrict( | 80 CPDF_Object* ParseIndirectObjectAtByStrict( |
| 81 CPDF_IndirectObjectHolder* pObjList, | 81 CPDF_IndirectObjectHolder* pObjList, |
| 82 FX_FILESIZE pos, | 82 FX_FILESIZE pos, |
| 83 uint32_t objnum, | 83 uint32_t objnum, |
| 84 FX_FILESIZE* pResultPos); | 84 FX_FILESIZE* pResultPos); |
| 85 | 85 |
| 86 Error StartAsyncParse(IFX_FileRead* pFile); | 86 Error StartLinearizedParse(IFX_FileRead* pFile); |
| 87 | 87 |
| 88 uint32_t GetFirstPageNo() const { return m_dwFirstPageNo; } | 88 uint32_t GetFirstPageNo() const { return m_dwFirstPageNo; } |
| 89 | 89 |
| 90 protected: | 90 protected: |
| 91 struct ObjectInfo { | 91 struct ObjectInfo { |
| 92 ObjectInfo() : pos(0), type(0), gennum(0) {} | 92 ObjectInfo() : pos(0), type(0), gennum(0) {} |
| 93 | 93 |
| 94 FX_FILESIZE pos; | 94 FX_FILESIZE pos; |
| 95 uint8_t type; | 95 uint8_t type; |
| 96 uint16_t gennum; | 96 uint16_t gennum; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 kPostObjNum, | 167 kPostObjNum, |
| 168 kGenNum, | 168 kGenNum, |
| 169 kPostGenNum, | 169 kPostGenNum, |
| 170 kTrailer, | 170 kTrailer, |
| 171 kBeginObj, | 171 kBeginObj, |
| 172 kEndObj | 172 kEndObj |
| 173 }; | 173 }; |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_PARSER_H_ | 176 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_PARSER_H_ |
| OLD | NEW |