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

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

Issue 1776713004: Move CPDF_NumberTree to fpdfdoc. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: One more const. 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
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.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_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_
8 #define CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 8 #define CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 FX_DWORD FlateDecode(const uint8_t* src_buf, 194 FX_DWORD FlateDecode(const uint8_t* src_buf,
195 FX_DWORD src_size, 195 FX_DWORD src_size,
196 uint8_t*& dest_buf, 196 uint8_t*& dest_buf,
197 FX_DWORD& dest_size); 197 FX_DWORD& dest_size);
198 FX_DWORD RunLengthDecode(const uint8_t* src_buf, 198 FX_DWORD RunLengthDecode(const uint8_t* src_buf,
199 FX_DWORD src_size, 199 FX_DWORD src_size,
200 uint8_t*& dest_buf, 200 uint8_t*& dest_buf,
201 FX_DWORD& dest_size); 201 FX_DWORD& dest_size);
202 bool IsSignatureDict(const CPDF_Dictionary* pDict); 202 bool IsSignatureDict(const CPDF_Dictionary* pDict);
203 203
204 class CPDF_NumberTree {
205 public:
206 CPDF_NumberTree(CPDF_Dictionary* pRoot) { m_pRoot = pRoot; }
207
208 CPDF_Object* LookupValue(int num);
209
210 protected:
211 CPDF_Dictionary* m_pRoot;
212 };
213
214 class IFX_FileAvail { 204 class IFX_FileAvail {
215 public: 205 public:
216 virtual ~IFX_FileAvail() {} 206 virtual ~IFX_FileAvail() {}
217 virtual FX_BOOL IsDataAvail(FX_FILESIZE offset, FX_DWORD size) = 0; 207 virtual FX_BOOL IsDataAvail(FX_FILESIZE offset, FX_DWORD size) = 0;
218 }; 208 };
219 class IFX_DownloadHints { 209 class IFX_DownloadHints {
220 public: 210 public:
221 virtual ~IFX_DownloadHints() {} 211 virtual ~IFX_DownloadHints() {}
222 virtual void AddSegment(FX_FILESIZE offset, FX_DWORD size) = 0; 212 virtual void AddSegment(FX_FILESIZE offset, FX_DWORD size) = 0;
223 }; 213 };
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 FX_DWORD src_size, 329 FX_DWORD src_size,
340 const CPDF_Dictionary* pDict, 330 const CPDF_Dictionary* pDict,
341 uint8_t*& dest_buf, 331 uint8_t*& dest_buf,
342 FX_DWORD& dest_size, 332 FX_DWORD& dest_size,
343 CFX_ByteString& ImageEncoding, 333 CFX_ByteString& ImageEncoding,
344 CPDF_Dictionary*& pImageParms, 334 CPDF_Dictionary*& pImageParms,
345 FX_DWORD estimated_size, 335 FX_DWORD estimated_size,
346 FX_BOOL bImageAcc); 336 FX_BOOL bImageAcc);
347 337
348 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 338 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698