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

Side by Side Diff: core/fpdfapi/fpdf_parser/include/cpdf_parser.h

Issue 2250163002: Rename async to linearized when parsing (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: formatting Created 4 years, 4 months 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_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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698