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

Side by Side Diff: core/src/fpdfapi/fpdf_parser/cpdf_syntax_parser.h

Issue 1778173002: Split apart the remainder of fpdf_render_render.cpp into per-class files. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits Created 4 years, 9 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_SRC_FPDFAPI_FPDF_PARSER_CPDF_SYNTAX_PARSER_H_ 7 #ifndef CORE_SRC_FPDFAPI_FPDF_PARSER_CPDF_SYNTAX_PARSER_H_
8 #define CORE_SRC_FPDFAPI_FPDF_PARSER_CPDF_SYNTAX_PARSER_H_ 8 #define CORE_SRC_FPDFAPI_FPDF_PARSER_CPDF_SYNTAX_PARSER_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 void SetEncrypt(std::unique_ptr<IPDF_CryptoHandler> pCryptoHandler); 52 void SetEncrypt(std::unique_ptr<IPDF_CryptoHandler> pCryptoHandler);
53 53
54 FX_BOOL ReadBlock(uint8_t* pBuf, FX_DWORD size); 54 FX_BOOL ReadBlock(uint8_t* pBuf, FX_DWORD size);
55 FX_BOOL GetCharAt(FX_FILESIZE pos, uint8_t& ch); 55 FX_BOOL GetCharAt(FX_FILESIZE pos, uint8_t& ch);
56 CFX_ByteString GetNextWord(bool* bIsNumber); 56 CFX_ByteString GetNextWord(bool* bIsNumber);
57 57
58 private: 58 private:
59 friend class CPDF_Parser; 59 friend class CPDF_Parser;
60 friend class CPDF_DataAvail; 60 friend class CPDF_DataAvail;
61 friend class fpdf_parser_parser_ReadHexString_Test; 61 friend class cpdf_syntax_parser_ReadHexString_Test;
62 62
63 static const int kParserMaxRecursionDepth = 64; 63 static const int kParserMaxRecursionDepth = 64;
64 static int s_CurrentRecursionDepth; 64 static int s_CurrentRecursionDepth;
65 65
66 uint32_t GetDirectNum(); 66 uint32_t GetDirectNum();
67 67
68 FX_BOOL GetNextChar(uint8_t& ch); 68 FX_BOOL GetNextChar(uint8_t& ch);
69 FX_BOOL GetCharAtBackward(FX_FILESIZE pos, uint8_t& ch); 69 FX_BOOL GetCharAtBackward(FX_FILESIZE pos, uint8_t& ch);
70 void GetNextWordInternal(bool* bIsNumber); 70 void GetNextWordInternal(bool* bIsNumber);
71 bool IsWholeWord(FX_FILESIZE startpos, 71 bool IsWholeWord(FX_FILESIZE startpos,
(...skipping 15 matching lines...) Expand all
87 FX_FILESIZE m_FileLen; 87 FX_FILESIZE m_FileLen;
88 uint8_t* m_pFileBuf; 88 uint8_t* m_pFileBuf;
89 FX_DWORD m_BufSize; 89 FX_DWORD m_BufSize;
90 FX_FILESIZE m_BufOffset; 90 FX_FILESIZE m_BufOffset;
91 std::unique_ptr<IPDF_CryptoHandler> m_pCryptoHandler; 91 std::unique_ptr<IPDF_CryptoHandler> m_pCryptoHandler;
92 uint8_t m_WordBuffer[257]; 92 uint8_t m_WordBuffer[257];
93 FX_DWORD m_WordSize; 93 FX_DWORD m_WordSize;
94 }; 94 };
95 95
96 #endif // CORE_SRC_FPDFAPI_FPDF_PARSER_CPDF_SYNTAX_PARSER_H_ 96 #endif // CORE_SRC_FPDFAPI_FPDF_PARSER_CPDF_SYNTAX_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698