| 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_PARSER_CPDF_DATA_AVAIL_H_ | 7 #ifndef CORE_FPDFAPI_PARSER_CPDF_DATA_AVAIL_H_ |
| 8 #define CORE_FPDFAPI_PARSER_CPDF_DATA_AVAIL_H_ | 8 #define CORE_FPDFAPI_PARSER_CPDF_DATA_AVAIL_H_ |
| 9 | 9 |
| 10 #include "core/fpdfapi/parser/cpdf_parser.h" | 10 #include "core/fpdfapi/parser/cpdf_parser.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 PDF_PAGENODE_TYPE m_type; | 117 PDF_PAGENODE_TYPE m_type; |
| 118 uint32_t m_dwPageNo; | 118 uint32_t m_dwPageNo; |
| 119 CFX_ArrayTemplate<PageNode*> m_childNode; | 119 CFX_ArrayTemplate<PageNode*> m_childNode; |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 static const int kMaxDataAvailRecursionDepth = 64; | 122 static const int kMaxDataAvailRecursionDepth = 64; |
| 123 static int s_CurrentDataAvailRecursionDepth; | 123 static int s_CurrentDataAvailRecursionDepth; |
| 124 static const int kMaxPageRecursionDepth = 1024; | 124 static const int kMaxPageRecursionDepth = 1024; |
| 125 | 125 |
| 126 uint32_t GetObjectSize(uint32_t objnum, FX_FILESIZE& offset); | 126 uint32_t GetObjectSize(uint32_t objnum, FX_FILESIZE& offset); |
| 127 FX_BOOL IsObjectsAvail(CFX_ArrayTemplate<CPDF_Object*>& obj_array, | 127 FX_BOOL IsObjectsAvail(std::vector<CPDF_Object*>& obj_array, |
| 128 FX_BOOL bParsePage, | 128 FX_BOOL bParsePage, |
| 129 DownloadHints* pHints, | 129 DownloadHints* pHints, |
| 130 CFX_ArrayTemplate<CPDF_Object*>& ret_array); | 130 std::vector<CPDF_Object*>& ret_array); |
| 131 FX_BOOL CheckDocStatus(DownloadHints* pHints); | 131 FX_BOOL CheckDocStatus(DownloadHints* pHints); |
| 132 FX_BOOL CheckHeader(DownloadHints* pHints); | 132 FX_BOOL CheckHeader(DownloadHints* pHints); |
| 133 FX_BOOL CheckFirstPage(DownloadHints* pHints); | 133 FX_BOOL CheckFirstPage(DownloadHints* pHints); |
| 134 FX_BOOL CheckHintTables(DownloadHints* pHints); | 134 FX_BOOL CheckHintTables(DownloadHints* pHints); |
| 135 FX_BOOL CheckEnd(DownloadHints* pHints); | 135 FX_BOOL CheckEnd(DownloadHints* pHints); |
| 136 FX_BOOL CheckCrossRef(DownloadHints* pHints); | 136 FX_BOOL CheckCrossRef(DownloadHints* pHints); |
| 137 FX_BOOL CheckCrossRefItem(DownloadHints* pHints); | 137 FX_BOOL CheckCrossRefItem(DownloadHints* pHints); |
| 138 FX_BOOL CheckTrailer(DownloadHints* pHints); | 138 FX_BOOL CheckTrailer(DownloadHints* pHints); |
| 139 FX_BOOL CheckRoot(DownloadHints* pHints); | 139 FX_BOOL CheckRoot(DownloadHints* pHints); |
| 140 FX_BOOL CheckInfo(DownloadHints* pHints); | 140 FX_BOOL CheckInfo(DownloadHints* pHints); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 FX_BOOL m_bDocAvail; | 202 FX_BOOL m_bDocAvail; |
| 203 FX_FILESIZE m_dwHeaderOffset; | 203 FX_FILESIZE m_dwHeaderOffset; |
| 204 FX_FILESIZE m_dwLastXRefOffset; | 204 FX_FILESIZE m_dwLastXRefOffset; |
| 205 FX_FILESIZE m_dwXRefOffset; | 205 FX_FILESIZE m_dwXRefOffset; |
| 206 FX_FILESIZE m_dwTrailerOffset; | 206 FX_FILESIZE m_dwTrailerOffset; |
| 207 FX_FILESIZE m_dwCurrentOffset; | 207 FX_FILESIZE m_dwCurrentOffset; |
| 208 PDF_DATAAVAIL_STATUS m_docStatus; | 208 PDF_DATAAVAIL_STATUS m_docStatus; |
| 209 FX_FILESIZE m_dwFileLen; | 209 FX_FILESIZE m_dwFileLen; |
| 210 CPDF_Document* m_pDocument; | 210 CPDF_Document* m_pDocument; |
| 211 std::set<uint32_t> m_ObjectSet; | 211 std::set<uint32_t> m_ObjectSet; |
| 212 CFX_ArrayTemplate<CPDF_Object*> m_objs_array; | 212 std::vector<CPDF_Object*> m_objs_array; |
| 213 FX_FILESIZE m_Pos; | 213 FX_FILESIZE m_Pos; |
| 214 FX_FILESIZE m_bufferOffset; | 214 FX_FILESIZE m_bufferOffset; |
| 215 uint32_t m_bufferSize; | 215 uint32_t m_bufferSize; |
| 216 CFX_ByteString m_WordBuf; | 216 CFX_ByteString m_WordBuf; |
| 217 uint8_t m_bufferData[512]; | 217 uint8_t m_bufferData[512]; |
| 218 CFX_ArrayTemplate<uint32_t> m_XRefStreamList; | 218 CFX_ArrayTemplate<uint32_t> m_XRefStreamList; |
| 219 CFX_ArrayTemplate<uint32_t> m_PageObjList; | 219 CFX_ArrayTemplate<uint32_t> m_PageObjList; |
| 220 uint32_t m_PagesObjNum; | 220 uint32_t m_PagesObjNum; |
| 221 FX_BOOL m_bLinearized; | 221 FX_BOOL m_bLinearized; |
| 222 uint32_t m_dwFirstPageNo; | 222 uint32_t m_dwFirstPageNo; |
| 223 FX_BOOL m_bLinearedDataOK; | 223 FX_BOOL m_bLinearedDataOK; |
| 224 FX_BOOL m_bMainXRefLoadTried; | 224 FX_BOOL m_bMainXRefLoadTried; |
| 225 FX_BOOL m_bMainXRefLoadedOK; | 225 FX_BOOL m_bMainXRefLoadedOK; |
| 226 FX_BOOL m_bPagesTreeLoad; | 226 FX_BOOL m_bPagesTreeLoad; |
| 227 FX_BOOL m_bPagesLoad; | 227 FX_BOOL m_bPagesLoad; |
| 228 CPDF_Parser* m_pCurrentParser; | 228 CPDF_Parser* m_pCurrentParser; |
| 229 FX_FILESIZE m_dwCurrentXRefSteam; | 229 FX_FILESIZE m_dwCurrentXRefSteam; |
| 230 FX_BOOL m_bAnnotsLoad; | 230 FX_BOOL m_bAnnotsLoad; |
| 231 FX_BOOL m_bHaveAcroForm; | 231 FX_BOOL m_bHaveAcroForm; |
| 232 uint32_t m_dwAcroFormObjNum; | 232 uint32_t m_dwAcroFormObjNum; |
| 233 FX_BOOL m_bAcroFormLoad; | 233 FX_BOOL m_bAcroFormLoad; |
| 234 CPDF_Object* m_pAcroForm; | 234 CPDF_Object* m_pAcroForm; |
| 235 CFX_ArrayTemplate<CPDF_Object*> m_arrayAcroforms; | 235 std::vector<CPDF_Object*> m_arrayAcroforms; |
| 236 CPDF_Dictionary* m_pPageDict; | 236 CPDF_Dictionary* m_pPageDict; |
| 237 CPDF_Object* m_pPageResource; | 237 CPDF_Object* m_pPageResource; |
| 238 FX_BOOL m_bNeedDownLoadResource; | 238 FX_BOOL m_bNeedDownLoadResource; |
| 239 FX_BOOL m_bPageLoadedOK; | 239 FX_BOOL m_bPageLoadedOK; |
| 240 FX_BOOL m_bLinearizedFormParamLoad; | 240 FX_BOOL m_bLinearizedFormParamLoad; |
| 241 CFX_ArrayTemplate<CPDF_Object*> m_PagesArray; | 241 std::vector<CPDF_Object*> m_PagesArray; |
| 242 uint32_t m_dwEncryptObjNum; | 242 uint32_t m_dwEncryptObjNum; |
| 243 FX_FILESIZE m_dwPrevXRefOffset; | 243 FX_FILESIZE m_dwPrevXRefOffset; |
| 244 FX_BOOL m_bTotalLoadPageTree; | 244 FX_BOOL m_bTotalLoadPageTree; |
| 245 FX_BOOL m_bCurPageDictLoadOK; | 245 FX_BOOL m_bCurPageDictLoadOK; |
| 246 PageNode m_pageNodes; | 246 PageNode m_pageNodes; |
| 247 std::set<uint32_t> m_pageMapCheckState; | 247 std::set<uint32_t> m_pageMapCheckState; |
| 248 std::set<uint32_t> m_pagesLoadState; | 248 std::set<uint32_t> m_pagesLoadState; |
| 249 std::unique_ptr<CPDF_HintTables> m_pHintTables; | 249 std::unique_ptr<CPDF_HintTables> m_pHintTables; |
| 250 FX_BOOL m_bSupportHintTable; | 250 FX_BOOL m_bSupportHintTable; |
| 251 }; | 251 }; |
| 252 | 252 |
| 253 #endif // CORE_FPDFAPI_PARSER_CPDF_DATA_AVAIL_H_ | 253 #endif // CORE_FPDFAPI_PARSER_CPDF_DATA_AVAIL_H_ |
| OLD | NEW |