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

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

Issue 1353093003: Support linearized loading (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 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 | « BUILD.gn ('k') | core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.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 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 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 "../fxcrt/fx_system.h" 10 #include "../fxcrt/fx_system.h"
11 #include "fpdf_objects.h" 11 #include "fpdf_objects.h"
12 12
13 class CFDF_Document;
14 class CFDF_Parser;
15 class CFX_AffineMatrix;
16 class CFX_DIBSource;
17 class CFX_FloatRect;
18 class CFX_Font;
19 class CFX_PrivateData;
20 class CPDF_ColorSpace;
21 class CPDF_CryptoHandler;
22 class CPDF_DocPageData;
23 class CPDF_DocRenderData;
13 class CPDF_Document; 24 class CPDF_Document;
25 class CPDF_Font;
26 class CPDF_FontEncoding;
27 class CPDF_HintTables;
28 class CPDF_IccProfile;
29 class CPDF_Image;
30 class CPDF_ModuleMgr;
31 class CPDF_Object;
14 class CPDF_Parser; 32 class CPDF_Parser;
33 class CPDF_Pattern;
34 class CPDF_Point;
15 class CPDF_SecurityHandler; 35 class CPDF_SecurityHandler;
16 class CPDF_StandardSecurityHandler; 36 class CPDF_StandardSecurityHandler;
17 class CPDF_CryptoHandler;
18 class CPDF_Object;
19 class IFX_FileRead; 37 class IFX_FileRead;
20 class CFDF_Document; 38
21 class CFDF_Parser;
22 class CFX_Font;
23 class CFX_AffineMatrix;
24 class CFX_FloatRect;
25 class CPDF_Point;
26 class CPDF_DocPageData;
27 class CPDF_DocRenderData;
28 class CPDF_ModuleMgr;
29 class CFX_DIBSource;
30 class CPDF_Font;
31 class CPDF_Image;
32 class CPDF_ColorSpace;
33 class CPDF_Pattern;
34 class CPDF_FontEncoding;
35 class CPDF_IccProfile;
36 class CFX_PrivateData;
37 #define FPDFPERM_PRINT 0x0004 39 #define FPDFPERM_PRINT 0x0004
38 #define FPDFPERM_MODIFY 0x0008 40 #define FPDFPERM_MODIFY 0x0008
39 #define FPDFPERM_EXTRACT 0x0010 41 #define FPDFPERM_EXTRACT 0x0010
40 #define FPDFPERM_ANNOT_FORM 0x0020 42 #define FPDFPERM_ANNOT_FORM 0x0020
41 #define FPDFPERM_FILL_FORM 0x0100 43 #define FPDFPERM_FILL_FORM 0x0100
42 #define FPDFPERM_EXTRACT_ACCESS 0x0200 44 #define FPDFPERM_EXTRACT_ACCESS 0x0200
43 #define FPDFPERM_ASSEMBLE 0x0400 45 #define FPDFPERM_ASSEMBLE 0x0400
44 #define FPDFPERM_PRINT_HIGH 0x0800 46 #define FPDFPERM_PRINT_HIGH 0x0800
45 #define FPDF_PAGE_MAX_NUM 0xFFFFF 47 #define FPDF_PAGE_MAX_NUM 0xFFFFF
46 48
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 class IFX_FileAvail { 837 class IFX_FileAvail {
836 public: 838 public:
837 virtual ~IFX_FileAvail() {} 839 virtual ~IFX_FileAvail() {}
838 virtual FX_BOOL IsDataAvail(FX_FILESIZE offset, FX_DWORD size) = 0; 840 virtual FX_BOOL IsDataAvail(FX_FILESIZE offset, FX_DWORD size) = 0;
839 }; 841 };
840 class IFX_DownloadHints { 842 class IFX_DownloadHints {
841 public: 843 public:
842 virtual ~IFX_DownloadHints() {} 844 virtual ~IFX_DownloadHints() {}
843 virtual void AddSegment(FX_FILESIZE offset, FX_DWORD size) = 0; 845 virtual void AddSegment(FX_FILESIZE offset, FX_DWORD size) = 0;
844 }; 846 };
845 #define PDF_IS_LINEARIZED 1 847 #define PDF_FILE_UNKNOW -1
Tom Sepez 2015/09/24 18:24:40 nit: Still misspelled. UNKNOWN how about PDF_LIN
jun_fang 2015/09/28 08:17:23 Acknowledged.
846 #define PDF_NOT_LINEARIZED 0 848 #define PDF_FILE_NOTLINEARIZED 0
847 #define PDF_UNKNOW_LINEARIZED -1 849 #define PDF_FILE_LINEARIZED 1
848 #define PDFFORM_NOTAVAIL 0 850 #define PDFFORM_NOTAVAIL 0
849 #define PDFFORM_AVAIL 1 851 #define PDFFORM_AVAIL 1
850 #define PDFFORM_NOTEXIST 2 852 #define PDFFORM_NOTEXIST 2
851 class IPDF_DataAvail { 853 class IPDF_DataAvail {
852 public: 854 public:
853 static IPDF_DataAvail* Create(IFX_FileAvail* pFileAvail, 855 static IPDF_DataAvail* Create(IFX_FileAvail* pFileAvail,
854 IFX_FileRead* pFileRead); 856 IFX_FileRead* pFileRead);
855 virtual ~IPDF_DataAvail() {} 857 virtual ~IPDF_DataAvail() {}
856 858
857 IFX_FileAvail* GetFileAvail() const { return m_pFileAvail; } 859 IFX_FileAvail* GetFileAvail() const { return m_pFileAvail; }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 CPDF_PageNode() : m_type(PDF_PAGENODE_UNKOWN) {} 899 CPDF_PageNode() : m_type(PDF_PAGENODE_UNKOWN) {}
898 ~CPDF_PageNode(); 900 ~CPDF_PageNode();
899 PDF_PAGENODE_TYPE m_type; 901 PDF_PAGENODE_TYPE m_type;
900 FX_DWORD m_dwPageNo; 902 FX_DWORD m_dwPageNo;
901 CFX_PtrArray m_childNode; 903 CFX_PtrArray m_childNode;
902 }; 904 };
903 enum PDF_DATAAVAIL_STATUS { 905 enum PDF_DATAAVAIL_STATUS {
904 PDF_DATAAVAIL_HEADER = 0, 906 PDF_DATAAVAIL_HEADER = 0,
905 PDF_DATAAVAIL_FIRSTPAGE, 907 PDF_DATAAVAIL_FIRSTPAGE,
906 PDF_DATAAVAIL_FIRSTPAGE_PREPARE, 908 PDF_DATAAVAIL_FIRSTPAGE_PREPARE,
909 PDF_DATAAVAIL_HINTTABLE,
907 PDF_DATAAVAIL_END, 910 PDF_DATAAVAIL_END,
908 PDF_DATAAVAIL_CROSSREF, 911 PDF_DATAAVAIL_CROSSREF,
909 PDF_DATAAVAIL_CROSSREF_ITEM, 912 PDF_DATAAVAIL_CROSSREF_ITEM,
910 PDF_DATAAVAIL_CROSSREF_STREAM, 913 PDF_DATAAVAIL_CROSSREF_STREAM,
911 PDF_DATAAVAIL_TRAILER, 914 PDF_DATAAVAIL_TRAILER,
912 PDF_DATAAVAIL_LOADALLCRSOSSREF, 915 PDF_DATAAVAIL_LOADALLCRSOSSREF,
913 PDF_DATAAVAIL_ROOT, 916 PDF_DATAAVAIL_ROOT,
914 PDF_DATAAVAIL_INFO, 917 PDF_DATAAVAIL_INFO,
915 PDF_DATAAVAIL_ACROFORM, 918 PDF_DATAAVAIL_ACROFORM,
916 PDF_DATAAVAIL_ACROFORM_SUBOBJECT, 919 PDF_DATAAVAIL_ACROFORM_SUBOBJECT,
(...skipping 11 matching lines...) Expand all
928 FX_DWORD src_size, 931 FX_DWORD src_size,
929 const CPDF_Dictionary* pDict, 932 const CPDF_Dictionary* pDict,
930 uint8_t*& dest_buf, 933 uint8_t*& dest_buf,
931 FX_DWORD& dest_size, 934 FX_DWORD& dest_size,
932 CFX_ByteString& ImageEncoding, 935 CFX_ByteString& ImageEncoding,
933 CPDF_Dictionary*& pImageParms, 936 CPDF_Dictionary*& pImageParms,
934 FX_DWORD estimated_size, 937 FX_DWORD estimated_size,
935 FX_BOOL bImageAcc); 938 FX_BOOL bImageAcc);
936 939
937 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 940 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698