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

Side by Side Diff: core/fpdfapi/parser/cpdf_data_avail.h

Issue 2474283005: Revert of Unify some code (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « BUILD.gn ('k') | core/fpdfapi/parser/cpdf_data_avail.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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;
20 class CPDF_Parser; 19 class CPDF_Parser;
21 20
22 enum PDF_DATAAVAIL_STATUS { 21 enum PDF_DATAAVAIL_STATUS {
23 PDF_DATAAVAIL_HEADER = 0, 22 PDF_DATAAVAIL_HEADER = 0,
24 PDF_DATAAVAIL_FIRSTPAGE, 23 PDF_DATAAVAIL_FIRSTPAGE,
25 PDF_DATAAVAIL_FIRSTPAGE_PREPARE, 24 PDF_DATAAVAIL_FIRSTPAGE_PREPARE,
26 PDF_DATAAVAIL_HINTTABLE, 25 PDF_DATAAVAIL_HINTTABLE,
27 PDF_DATAAVAIL_END, 26 PDF_DATAAVAIL_END,
28 PDF_DATAAVAIL_CROSSREF, 27 PDF_DATAAVAIL_CROSSREF,
29 PDF_DATAAVAIL_CROSSREF_ITEM, 28 PDF_DATAAVAIL_CROSSREF_ITEM,
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 void ResetFirstCheck(uint32_t dwPage); 192 void ResetFirstCheck(uint32_t dwPage);
194 bool IsDataAvail(FX_FILESIZE offset, uint32_t size, DownloadHints* pHints); 193 bool IsDataAvail(FX_FILESIZE offset, uint32_t size, DownloadHints* pHints);
195 194
196 FileAvail* const m_pFileAvail; 195 FileAvail* const m_pFileAvail;
197 IFX_SeekableReadStream* const m_pFileRead; 196 IFX_SeekableReadStream* const m_pFileRead;
198 CPDF_Parser m_parser; 197 CPDF_Parser m_parser;
199 CPDF_SyntaxParser m_syntaxParser; 198 CPDF_SyntaxParser m_syntaxParser;
200 CPDF_Object* m_pRoot; 199 CPDF_Object* m_pRoot;
201 uint32_t m_dwRootObjNum; 200 uint32_t m_dwRootObjNum;
202 uint32_t m_dwInfoObjNum; 201 uint32_t m_dwInfoObjNum;
203 std::unique_ptr<CPDF_Linearized> m_pLinearized; 202 CPDF_Object* m_pLinearized;
204 CPDF_Object* m_pTrailer; 203 CPDF_Object* m_pTrailer;
205 bool m_bDocAvail; 204 bool m_bDocAvail;
206 FX_FILESIZE m_dwHeaderOffset; 205 FX_FILESIZE m_dwHeaderOffset;
207 FX_FILESIZE m_dwLastXRefOffset; 206 FX_FILESIZE m_dwLastXRefOffset;
208 FX_FILESIZE m_dwXRefOffset; 207 FX_FILESIZE m_dwXRefOffset;
209 FX_FILESIZE m_dwTrailerOffset; 208 FX_FILESIZE m_dwTrailerOffset;
210 FX_FILESIZE m_dwCurrentOffset; 209 FX_FILESIZE m_dwCurrentOffset;
211 PDF_DATAAVAIL_STATUS m_docStatus; 210 PDF_DATAAVAIL_STATUS m_docStatus;
212 FX_FILESIZE m_dwFileLen; 211 FX_FILESIZE m_dwFileLen;
213 CPDF_Document* m_pDocument; 212 CPDF_Document* m_pDocument;
214 std::set<uint32_t> m_ObjectSet; 213 std::set<uint32_t> m_ObjectSet;
215 std::vector<CPDF_Object*> m_objs_array; 214 std::vector<CPDF_Object*> m_objs_array;
216 FX_FILESIZE m_Pos; 215 FX_FILESIZE m_Pos;
217 FX_FILESIZE m_bufferOffset; 216 FX_FILESIZE m_bufferOffset;
218 uint32_t m_bufferSize; 217 uint32_t m_bufferSize;
219 CFX_ByteString m_WordBuf; 218 CFX_ByteString m_WordBuf;
220 uint8_t m_bufferData[512]; 219 uint8_t m_bufferData[512];
221 CFX_ArrayTemplate<uint32_t> m_XRefStreamList; 220 CFX_ArrayTemplate<uint32_t> m_XRefStreamList;
222 CFX_ArrayTemplate<uint32_t> m_PageObjList; 221 CFX_ArrayTemplate<uint32_t> m_PageObjList;
223 uint32_t m_PagesObjNum; 222 uint32_t m_PagesObjNum;
223 bool m_bLinearized;
224 uint32_t m_dwFirstPageNo;
224 bool m_bLinearedDataOK; 225 bool m_bLinearedDataOK;
225 bool m_bMainXRefLoadTried; 226 bool m_bMainXRefLoadTried;
226 bool m_bMainXRefLoadedOK; 227 bool m_bMainXRefLoadedOK;
227 bool m_bPagesTreeLoad; 228 bool m_bPagesTreeLoad;
228 bool m_bPagesLoad; 229 bool m_bPagesLoad;
229 CPDF_Parser* m_pCurrentParser; 230 CPDF_Parser* m_pCurrentParser;
230 FX_FILESIZE m_dwCurrentXRefSteam; 231 FX_FILESIZE m_dwCurrentXRefSteam;
231 bool m_bAnnotsLoad; 232 bool m_bAnnotsLoad;
232 bool m_bHaveAcroForm; 233 bool m_bHaveAcroForm;
233 uint32_t m_dwAcroFormObjNum; 234 uint32_t m_dwAcroFormObjNum;
(...skipping 11 matching lines...) Expand all
245 bool m_bTotalLoadPageTree; 246 bool m_bTotalLoadPageTree;
246 bool m_bCurPageDictLoadOK; 247 bool m_bCurPageDictLoadOK;
247 PageNode m_pageNodes; 248 PageNode m_pageNodes;
248 std::set<uint32_t> m_pageMapCheckState; 249 std::set<uint32_t> m_pageMapCheckState;
249 std::set<uint32_t> m_pagesLoadState; 250 std::set<uint32_t> m_pagesLoadState;
250 std::unique_ptr<CPDF_HintTables> m_pHintTables; 251 std::unique_ptr<CPDF_HintTables> m_pHintTables;
251 bool m_bSupportHintTable; 252 bool m_bSupportHintTable;
252 }; 253 };
253 254
254 #endif // CORE_FPDFAPI_PARSER_CPDF_DATA_AVAIL_H_ 255 #endif // CORE_FPDFAPI_PARSER_CPDF_DATA_AVAIL_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | core/fpdfapi/parser/cpdf_data_avail.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698