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

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

Issue 1783023002: Re-enable MSVC warning 4800 for compiling with chromium_code (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: remove cast change on security_handler file 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 | « core/include/fpdfapi/cpdf_parser.h ('k') | core/include/fxcrt/fx_ext.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 "core/include/fpdfapi/fpdf_page.h" 10 #include "core/include/fpdfapi/fpdf_page.h"
11 #include "core/include/fpdfapi/fpdf_pageobj.h" 11 #include "core/include/fpdfapi/fpdf_pageobj.h"
12 12
13 class CPDF_XRefStream; 13 class CPDF_XRefStream;
14 class IPDF_CryptoHandler; 14 class IPDF_CryptoHandler;
15 15
16 CFX_ByteTextBuf& operator<<(CFX_ByteTextBuf& buf, const CPDF_Object* pObj); 16 CFX_ByteTextBuf& operator<<(CFX_ByteTextBuf& buf, const CPDF_Object* pObj);
17 17
18 #define FPDFCREATE_INCREMENTAL 1 18 #define FPDFCREATE_INCREMENTAL 1
19 #define FPDFCREATE_NO_ORIGINAL 2 19 #define FPDFCREATE_NO_ORIGINAL 2
20 #define FPDFCREATE_PROGRESSIVE 4 20 #define FPDFCREATE_PROGRESSIVE 4
21 #define FPDFCREATE_OBJECTSTREAM 8 21 #define FPDFCREATE_OBJECTSTREAM 8
22 22
23 class CPDF_Creator { 23 class CPDF_Creator {
24 public: 24 public:
25 CPDF_Creator(CPDF_Document* pDoc); 25 CPDF_Creator(CPDF_Document* pDoc);
26 ~CPDF_Creator(); 26 ~CPDF_Creator();
27 27
28 void RemoveSecurity(); 28 void RemoveSecurity();
29 FX_BOOL Create(IFX_StreamWrite* pFile, FX_DWORD flags = 0); 29 bool Create(IFX_StreamWrite* pFile, FX_DWORD flags = 0);
30 int32_t Continue(IFX_Pause* pPause = NULL); 30 int32_t Continue(IFX_Pause* pPause = NULL);
31 FX_BOOL SetFileVersion(int32_t fileVersion = 17); 31 FX_BOOL SetFileVersion(int32_t fileVersion = 17);
32 32
33 protected: 33 protected:
34 CPDF_Document* m_pDocument; 34 CPDF_Document* m_pDocument;
35 35
36 CPDF_Parser* m_pParser; 36 CPDF_Parser* m_pParser;
37 37
38 FX_BOOL m_bCompress; 38 FX_BOOL m_bCompress;
39 39
(...skipping 10 matching lines...) Expand all
50 50
51 FX_BOOL m_bEncryptMetadata; 51 FX_BOOL m_bEncryptMetadata;
52 52
53 CPDF_Object* m_pMetadata; 53 CPDF_Object* m_pMetadata;
54 54
55 CPDF_XRefStream* m_pXRefStream; 55 CPDF_XRefStream* m_pXRefStream;
56 56
57 int32_t m_ObjectStreamSize; 57 int32_t m_ObjectStreamSize;
58 58
59 FX_DWORD m_dwLastObjNum; 59 FX_DWORD m_dwLastObjNum;
60 FX_BOOL Create(FX_DWORD flags); 60 bool Create(FX_DWORD flags);
61 void ResetStandardSecurity(); 61 void ResetStandardSecurity();
62 void Clear(); 62 void Clear();
63 int32_t WriteDoc_Stage1(IFX_Pause* pPause); 63 int32_t WriteDoc_Stage1(IFX_Pause* pPause);
64 int32_t WriteDoc_Stage2(IFX_Pause* pPause); 64 int32_t WriteDoc_Stage2(IFX_Pause* pPause);
65 int32_t WriteDoc_Stage3(IFX_Pause* pPause); 65 int32_t WriteDoc_Stage3(IFX_Pause* pPause);
66 int32_t WriteDoc_Stage4(IFX_Pause* pPause); 66 int32_t WriteDoc_Stage4(IFX_Pause* pPause);
67 67
68 CFX_FileBufferArchive m_File; 68 CFX_FileBufferArchive m_File;
69 69
70 FX_FILESIZE m_Offset; 70 FX_FILESIZE m_Offset;
(...skipping 25 matching lines...) Expand all
96 CFX_FileSizeListArray m_ObjectOffset; 96 CFX_FileSizeListArray m_ObjectOffset;
97 CFX_DWordArray m_NewObjNumArray; 97 CFX_DWordArray m_NewObjNumArray;
98 CPDF_Array* m_pIDArray; 98 CPDF_Array* m_pIDArray;
99 int32_t m_FileVersion; 99 int32_t m_FileVersion;
100 100
101 friend class CPDF_ObjectStream; 101 friend class CPDF_ObjectStream;
102 friend class CPDF_XRefStream; 102 friend class CPDF_XRefStream;
103 }; 103 };
104 104
105 #endif // CORE_INCLUDE_FPDFAPI_FPDF_SERIAL_H_ 105 #endif // CORE_INCLUDE_FPDFAPI_FPDF_SERIAL_H_
OLDNEW
« no previous file with comments | « core/include/fpdfapi/cpdf_parser.h ('k') | core/include/fxcrt/fx_ext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698