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

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

Issue 2353383002: Delete unused methods in CPDF_Parser (Closed)
Patch Set: Created 4 years, 3 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/cpdf_parser.cpp ('k') | no next file » | 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 30 matching lines...) Expand all
41 CPDF_Parser(); 41 CPDF_Parser();
42 ~CPDF_Parser(); 42 ~CPDF_Parser();
43 43
44 Error StartParse(IFX_FileRead* pFile, CPDF_Document* pDocument); 44 Error StartParse(IFX_FileRead* pFile, CPDF_Document* pDocument);
45 Error StartLinearizedParse(IFX_FileRead* pFile, CPDF_Document* pDocument); 45 Error StartLinearizedParse(IFX_FileRead* pFile, CPDF_Document* pDocument);
46 46
47 void SetPassword(const FX_CHAR* password) { m_Password = password; } 47 void SetPassword(const FX_CHAR* password) { m_Password = password; }
48 CFX_ByteString GetPassword() { return m_Password; } 48 CFX_ByteString GetPassword() { return m_Password; }
49 CPDF_Dictionary* GetTrailer() const { return m_pTrailer; } 49 CPDF_Dictionary* GetTrailer() const { return m_pTrailer; }
50 FX_FILESIZE GetLastXRefOffset() const { return m_LastXRefOffset; } 50 FX_FILESIZE GetLastXRefOffset() const { return m_LastXRefOffset; }
51 CPDF_Document* GetDocument() const { return m_pDocument; }
52 51
53 uint32_t GetPermissions() const; 52 uint32_t GetPermissions() const;
54 uint32_t GetRootObjNum(); 53 uint32_t GetRootObjNum();
55 uint32_t GetInfoObjNum(); 54 uint32_t GetInfoObjNum();
56 CPDF_Array* GetIDArray(); 55 CPDF_Array* GetIDArray();
57 56
58 CPDF_Dictionary* GetEncryptDict() const { return m_pEncryptDict; } 57 CPDF_Dictionary* GetEncryptDict() const { return m_pEncryptDict; }
59 58
60 CPDF_Object* ParseIndirectObject(CPDF_IndirectObjectHolder* pObjList, 59 CPDF_Object* ParseIndirectObject(CPDF_IndirectObjectHolder* pObjList,
61 uint32_t objnum); 60 uint32_t objnum);
62 61
63 uint32_t GetLastObjNum() const; 62 uint32_t GetLastObjNum() const;
64 bool IsValidObjectNumber(uint32_t objnum) const; 63 bool IsValidObjectNumber(uint32_t objnum) const;
65 FX_FILESIZE GetObjectPositionOrZero(uint32_t objnum) const; 64 FX_FILESIZE GetObjectPositionOrZero(uint32_t objnum) const;
66 uint8_t GetObjectType(uint32_t objnum) const; 65 uint8_t GetObjectType(uint32_t objnum) const;
67 uint16_t GetObjectGenNum(uint32_t objnum) const; 66 uint16_t GetObjectGenNum(uint32_t objnum) const;
68 bool IsVersionUpdated() const { return m_bVersionUpdated; } 67 bool IsVersionUpdated() const { return m_bVersionUpdated; }
69 bool IsObjectFreeOrNull(uint32_t objnum) const; 68 bool IsObjectFreeOrNull(uint32_t objnum) const;
70 FX_BOOL IsFormStream(uint32_t objnum, FX_BOOL& bForm);
71 CPDF_CryptoHandler* GetCryptoHandler(); 69 CPDF_CryptoHandler* GetCryptoHandler();
72 IFX_FileRead* GetFileAccess() const; 70 IFX_FileRead* GetFileAccess() const;
73 71
74 FX_FILESIZE GetObjectOffset(uint32_t objnum) const; 72 FX_FILESIZE GetObjectOffset(uint32_t objnum) const;
75 FX_FILESIZE GetObjectSize(uint32_t objnum) const; 73 FX_FILESIZE GetObjectSize(uint32_t objnum) const;
76 74
77 void GetIndirectBinary(uint32_t objnum, uint8_t*& pBuffer, uint32_t& size); 75 void GetIndirectBinary(uint32_t objnum, uint8_t*& pBuffer, uint32_t& size);
78 int GetFileVersion() const { return m_FileVersion; } 76 int GetFileVersion() const { return m_FileVersion; }
79 FX_BOOL IsXRefStream() const { return m_bXRefStream; } 77 FX_BOOL IsXRefStream() const { return m_bXRefStream; }
80 78
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 168
171 // Mapping of streams to their object caches. This is valid as long as the 169 // Mapping of streams to their object caches. This is valid as long as the
172 // streams in |m_ObjectStreamMap| are valid. 170 // streams in |m_ObjectStreamMap| are valid.
173 std::map<CPDF_StreamAcc*, StreamObjectCache> m_ObjCache; 171 std::map<CPDF_StreamAcc*, StreamObjectCache> m_ObjCache;
174 172
175 // All indirect object numbers that are being parsed. 173 // All indirect object numbers that are being parsed.
176 std::set<uint32_t> m_ParsingObjNums; 174 std::set<uint32_t> m_ParsingObjNums;
177 }; 175 };
178 176
179 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_PARSER_H_ 177 #endif // CORE_FPDFAPI_FPDF_PARSER_INCLUDE_CPDF_PARSER_H_
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_parser/cpdf_parser.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698