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

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

Issue 2482973002: Rename CPDF_Linearized to CPDF_LinearizedHeader (Closed)
Patch Set: Remove if 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
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; 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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698