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

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: review cleanups 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
« no previous file with comments | « core/fpdfapi/fpdf_parser/include/cpdf_document.h ('k') | fpdfsdk/fpdf_dataavail.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_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 22 matching lines...) Expand all
33 PASSWORD_ERROR, 33 PASSWORD_ERROR,
34 HANDLER_ERROR 34 HANDLER_ERROR
35 }; 35 };
36 36
37 CPDF_Parser(); 37 CPDF_Parser();
38 ~CPDF_Parser(); 38 ~CPDF_Parser();
39 39
40 Error StartParse(IFX_FileRead* pFile, 40 Error StartParse(IFX_FileRead* pFile,
41 std::unique_ptr<CPDF_Document> pDocument); 41 std::unique_ptr<CPDF_Document> pDocument);
42 42
43 Error StartAsyncParse(IFX_FileRead* pFile, 43 Error StartLinearizedParse(IFX_FileRead* pFile,
44 std::unique_ptr<CPDF_Document> pDocument); 44 std::unique_ptr<CPDF_Document> pDocument);
45 45
46 void SetPassword(const FX_CHAR* password) { m_Password = password; } 46 void SetPassword(const FX_CHAR* password) { m_Password = password; }
47 CFX_ByteString GetPassword() { return m_Password; } 47 CFX_ByteString GetPassword() { return m_Password; }
48 CPDF_Dictionary* GetTrailer() const { return m_pTrailer; } 48 CPDF_Dictionary* GetTrailer() const { return m_pTrailer; }
49 FX_FILESIZE GetLastXRefOffset() const { return m_LastXRefOffset; } 49 FX_FILESIZE GetLastXRefOffset() const { return m_LastXRefOffset; }
50 CPDF_Document* GetDocument() const { return m_pDocument.get(); } 50 CPDF_Document* GetDocument() const { return m_pDocument.get(); }
51 51
52 uint32_t GetPermissions() const; 52 uint32_t GetPermissions() const;
53 uint32_t GetRootObjNum(); 53 uint32_t GetRootObjNum();
54 uint32_t GetInfoObjNum(); 54 uint32_t GetInfoObjNum();
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 kPostObjNum, 169 kPostObjNum,
170 kGenNum, 170 kGenNum,
171 kPostGenNum, 171 kPostGenNum,
172 kTrailer, 172 kTrailer,
173 kBeginObj, 173 kBeginObj,
174 kEndObj 174 kEndObj
175 }; 175 };
176 }; 176 };
177 177
178 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_PARSER_H_ 178 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_PARSER_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_parser/include/cpdf_document.h ('k') | fpdfsdk/fpdf_dataavail.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698