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 <vector> | 10 #include <vector> |
11 | 11 |
12 #include "core/fpdfapi/parser/cpdf_parser.h" | 12 #include "core/fpdfapi/parser/cpdf_parser.h" |
13 #include "core/fpdfapi/parser/cpdf_syntax_parser.h" | 13 #include "core/fpdfapi/parser/cpdf_syntax_parser.h" |
14 #include "core/fxcrt/fx_basic.h" | 14 #include "core/fxcrt/fx_basic.h" |
15 | 15 |
16 class CPDF_Dictionary; | 16 class CPDF_Dictionary; |
17 class CPDF_HintTables; | 17 class CPDF_HintTables; |
18 class CPDF_IndirectObjectHolder; | 18 class CPDF_IndirectObjectHolder; |
19 class CPDF_Linearized; | 19 class CPDF_LinearizedHeader; |
20 class CPDF_Parser; | 20 class CPDF_Parser; |
21 | 21 |
22 enum PDF_DATAAVAIL_STATUS { | 22 enum PDF_DATAAVAIL_STATUS { |
23 PDF_DATAAVAIL_HEADER = 0, | 23 PDF_DATAAVAIL_HEADER = 0, |
24 PDF_DATAAVAIL_FIRSTPAGE, | 24 PDF_DATAAVAIL_FIRSTPAGE, |
25 PDF_DATAAVAIL_FIRSTPAGE_PREPARE, | 25 PDF_DATAAVAIL_FIRSTPAGE_PREPARE, |
26 PDF_DATAAVAIL_HINTTABLE, | 26 PDF_DATAAVAIL_HINTTABLE, |
27 PDF_DATAAVAIL_END, | 27 PDF_DATAAVAIL_END, |
28 PDF_DATAAVAIL_CROSSREF, | 28 PDF_DATAAVAIL_CROSSREF, |
29 PDF_DATAAVAIL_CROSSREF_ITEM, | 29 PDF_DATAAVAIL_CROSSREF_ITEM, |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 void ResetFirstCheck(uint32_t dwPage); | 193 void ResetFirstCheck(uint32_t dwPage); |
194 bool IsDataAvail(FX_FILESIZE offset, uint32_t size, DownloadHints* pHints); | 194 bool IsDataAvail(FX_FILESIZE offset, uint32_t size, DownloadHints* pHints); |
195 | 195 |
196 FileAvail* const m_pFileAvail; | 196 FileAvail* const m_pFileAvail; |
197 IFX_SeekableReadStream* const m_pFileRead; | 197 IFX_SeekableReadStream* const m_pFileRead; |
198 CPDF_Parser m_parser; | 198 CPDF_Parser m_parser; |
199 CPDF_SyntaxParser m_syntaxParser; | 199 CPDF_SyntaxParser m_syntaxParser; |
200 CPDF_Object* m_pRoot; | 200 CPDF_Object* m_pRoot; |
201 uint32_t m_dwRootObjNum; | 201 uint32_t m_dwRootObjNum; |
202 uint32_t m_dwInfoObjNum; | 202 uint32_t m_dwInfoObjNum; |
203 std::unique_ptr<CPDF_Linearized> m_pLinearized; | 203 std::unique_ptr<CPDF_LinearizedHeader> m_pLinearized; |
204 CPDF_Object* m_pTrailer; | 204 CPDF_Object* m_pTrailer; |
205 bool m_bDocAvail; | 205 bool m_bDocAvail; |
206 FX_FILESIZE m_dwHeaderOffset; | 206 FX_FILESIZE m_dwHeaderOffset; |
207 FX_FILESIZE m_dwLastXRefOffset; | 207 FX_FILESIZE m_dwLastXRefOffset; |
208 FX_FILESIZE m_dwXRefOffset; | 208 FX_FILESIZE m_dwXRefOffset; |
209 FX_FILESIZE m_dwTrailerOffset; | 209 FX_FILESIZE m_dwTrailerOffset; |
210 FX_FILESIZE m_dwCurrentOffset; | 210 FX_FILESIZE m_dwCurrentOffset; |
211 PDF_DATAAVAIL_STATUS m_docStatus; | 211 PDF_DATAAVAIL_STATUS m_docStatus; |
212 FX_FILESIZE m_dwFileLen; | 212 FX_FILESIZE m_dwFileLen; |
213 CPDF_Document* m_pDocument; | 213 CPDF_Document* m_pDocument; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 bool m_bTotalLoadPageTree; | 245 bool m_bTotalLoadPageTree; |
246 bool m_bCurPageDictLoadOK; | 246 bool m_bCurPageDictLoadOK; |
247 PageNode m_pageNodes; | 247 PageNode m_pageNodes; |
248 std::set<uint32_t> m_pageMapCheckState; | 248 std::set<uint32_t> m_pageMapCheckState; |
249 std::set<uint32_t> m_pagesLoadState; | 249 std::set<uint32_t> m_pagesLoadState; |
250 std::unique_ptr<CPDF_HintTables> m_pHintTables; | 250 std::unique_ptr<CPDF_HintTables> m_pHintTables; |
251 bool m_bSupportHintTable; | 251 bool m_bSupportHintTable; |
252 }; | 252 }; |
253 | 253 |
254 #endif // CORE_FPDFAPI_PARSER_CPDF_DATA_AVAIL_H_ | 254 #endif // CORE_FPDFAPI_PARSER_CPDF_DATA_AVAIL_H_ |
OLD | NEW |