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

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

Issue 1172793002: Merge to XFA: Use stdint.h types throughout PDFium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 6 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/include/fpdfapi/fpdf_resource.h ('k') | core/include/fpdfdoc/fpdf_ap.h » ('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_SERIAL_H_ 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_SERIAL_H_
8 #define CORE_INCLUDE_FPDFAPI_FPDF_SERIAL_H_ 8 #define CORE_INCLUDE_FPDFAPI_FPDF_SERIAL_H_
9 9
10 #include "fpdf_page.h" 10 #include "fpdf_page.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 ~CPDF_Creator(); 120 ~CPDF_Creator();
121 121
122 void RemoveSecurity(); 122 void RemoveSecurity();
123 123
124 FX_BOOL Create(FX_LPCWSTR filename, FX_DWORD fla gs = 0); 124 FX_BOOL Create(FX_LPCWSTR filename, FX_DWORD fla gs = 0);
125 125
126 FX_BOOL Create(FX_LPCSTR filename, FX_DWORD flag s = 0); 126 FX_BOOL Create(FX_LPCSTR filename, FX_DWORD flag s = 0);
127 127
128 FX_BOOL Create(IFX_StreamWrite* pFile, FX_DWORD flags = 0); 128 FX_BOOL Create(IFX_StreamWrite* pFile, FX_DWORD flags = 0);
129 129
130 FX_INT32» » » Continue(IFX_Pause *pPause = NULL); 130 int32_t» » » Continue(IFX_Pause *pPause = NULL);
131 131
132 FX_BOOL» » » » SetFileVersion(FX_INT32 fileVersion = 17 ); 132 FX_BOOL» » » » SetFileVersion(int32_t fileVersion = 17) ;
133 protected: 133 protected:
134 134
135 CPDF_Document* m_pDocument; 135 CPDF_Document* m_pDocument;
136 136
137 CPDF_Parser* m_pParser; 137 CPDF_Parser* m_pParser;
138 138
139 FX_BOOL m_bCompress; 139 FX_BOOL m_bCompress;
140 140
141 FX_BOOL m_bSecurityChanged; 141 FX_BOOL m_bSecurityChanged;
142 142
143 CPDF_Dictionary* m_pEncryptDict; 143 CPDF_Dictionary* m_pEncryptDict;
144 FX_DWORD m_dwEnryptObjNum; 144 FX_DWORD m_dwEnryptObjNum;
145 FX_BOOL m_bEncryptCloned; 145 FX_BOOL m_bEncryptCloned;
146 146
147 FX_BOOL m_bStandardSecurity; 147 FX_BOOL m_bStandardSecurity;
148 148
149 CPDF_CryptoHandler* m_pCryptoHandler; 149 CPDF_CryptoHandler* m_pCryptoHandler;
150 FX_BOOL m_bNewCrypto; 150 FX_BOOL m_bNewCrypto;
151 151
152 FX_BOOL m_bEncryptMetadata; 152 FX_BOOL m_bEncryptMetadata;
153 153
154 CPDF_Object* m_pMetadata; 154 CPDF_Object* m_pMetadata;
155 155
156 CPDF_XRefStream* m_pXRefStream; 156 CPDF_XRefStream* m_pXRefStream;
157 157
158 FX_INT32» » » m_ObjectStreamSize; 158 int32_t» » » m_ObjectStreamSize;
159 159
160 FX_DWORD m_dwLastObjNum; 160 FX_DWORD m_dwLastObjNum;
161 FX_BOOL Create(FX_DWORD flags); 161 FX_BOOL Create(FX_DWORD flags);
162 void ResetStandardSecurity(); 162 void ResetStandardSecurity();
163 void Clear(); 163 void Clear();
164 FX_INT32» » » WriteDoc_Stage1(IFX_Pause *pPause); 164 int32_t» » » WriteDoc_Stage1(IFX_Pause *pPause);
165 FX_INT32» » » WriteDoc_Stage2(IFX_Pause *pPause); 165 int32_t» » » WriteDoc_Stage2(IFX_Pause *pPause);
166 FX_INT32» » » WriteDoc_Stage3(IFX_Pause *pPause); 166 int32_t» » » WriteDoc_Stage3(IFX_Pause *pPause);
167 FX_INT32» » » WriteDoc_Stage4(IFX_Pause *pPause); 167 int32_t» » » WriteDoc_Stage4(IFX_Pause *pPause);
168 168
169 CFX_FileBufferArchive m_File; 169 CFX_FileBufferArchive m_File;
170 170
171 FX_FILESIZE m_Offset; 171 FX_FILESIZE m_Offset;
172 void InitOldObjNumOffsets(); 172 void InitOldObjNumOffsets();
173 void InitNewObjNumOffsets(); 173 void InitNewObjNumOffsets();
174 void AppendNewObjNum(FX_DWORD objbum); 174 void AppendNewObjNum(FX_DWORD objbum);
175 FX_INT32» » » WriteOldIndirectObject(FX_DWORD objnum); 175 int32_t» » » WriteOldIndirectObject(FX_DWORD objnum);
176 FX_INT32» » » WriteOldObjs(IFX_Pause *pPause); 176 int32_t» » » WriteOldObjs(IFX_Pause *pPause);
177 FX_INT32» » » WriteNewObjs(FX_BOOL bIncremental, IFX_Pause *pP ause); 177 int32_t» » » WriteNewObjs(FX_BOOL bIncremental, IFX_Pause *pP ause);
178 FX_INT32» » » WriteIndirectObj(const CPDF_Object* pObj); 178 int32_t» » » WriteIndirectObj(const CPDF_Object* pObj);
179 FX_INT32» » » WriteDirectObj(FX_DWORD objnum, const CPDF_Objec t* pObj, FX_BOOL bEncrypt = TRUE); 179 int32_t» » » WriteDirectObj(FX_DWORD objnum, const CPDF_Objec t* pObj, FX_BOOL bEncrypt = TRUE);
180 FX_INT32» » » WriteIndirectObjectToStream(const CPDF_Object* p Obj); 180 int32_t» » » WriteIndirectObjectToStream(const CPDF_Object* p Obj);
181 FX_INT32» » » WriteIndirectObj(FX_DWORD objnum, const CPDF_Obj ect* pObj); 181 int32_t» » » WriteIndirectObj(FX_DWORD objnum, const CPDF_Obj ect* pObj);
182 FX_INT32» » » WriteIndirectObjectToStream(FX_DWORD objnum, FX_ LPCBYTE pBuffer, FX_DWORD dwSize); 182 int32_t» » » WriteIndirectObjectToStream(FX_DWORD objnum, FX_ LPCBYTE pBuffer, FX_DWORD dwSize);
183 FX_INT32» » » AppendObjectNumberToXRef(FX_DWORD objnum); 183 int32_t» » » AppendObjectNumberToXRef(FX_DWORD objnum);
184 void InitID(FX_BOOL bDefault = TRUE); 184 void InitID(FX_BOOL bDefault = TRUE);
185 FX_INT32» » » WriteStream(const CPDF_Object* pStream, FX_DWORD objnum, CPDF_CryptoHandler* pCrypto); 185 int32_t» » » WriteStream(const CPDF_Object* pStream, FX_DWORD objnum, CPDF_CryptoHandler* pCrypto);
186 186
187 FX_INT32» » » m_iStage; 187 int32_t» » » m_iStage;
188 FX_DWORD m_dwFlags; 188 FX_DWORD m_dwFlags;
189 FX_POSITION m_Pos; 189 FX_POSITION m_Pos;
190 FX_FILESIZE m_XrefStart; 190 FX_FILESIZE m_XrefStart;
191 191
192 CFX_FileSizeListArray m_ObjectOffset; 192 CFX_FileSizeListArray m_ObjectOffset;
193 193
194 CFX_DWordListArray m_ObjectSize; 194 CFX_DWordListArray m_ObjectSize;
195 CFX_DWordArray m_NewObjNumArray; 195 CFX_DWordArray m_NewObjNumArray;
196 196
197 CPDF_Array* m_pIDArray; 197 CPDF_Array* m_pIDArray;
198 198
199 FX_INT32» » » m_FileVersion; 199 int32_t» » » m_FileVersion;
200 friend class CPDF_ObjectStream; 200 friend class CPDF_ObjectStream;
201 friend class CPDF_XRefStream; 201 friend class CPDF_XRefStream;
202 }; 202 };
203 203
204 #endif // CORE_INCLUDE_FPDFAPI_FPDF_SERIAL_H_ 204 #endif // CORE_INCLUDE_FPDFAPI_FPDF_SERIAL_H_
OLDNEW
« no previous file with comments | « core/include/fpdfapi/fpdf_resource.h ('k') | core/include/fpdfdoc/fpdf_ap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698