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

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

Issue 1782673002: Split off IPDF_CryptoHandler into its own .cpp/.h files (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Move virtual dtor to .cpp 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/fpdf_parser.h ('k') | core/include/fpdfapi/ipdf_crypto_handler.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"
(...skipping 26 matching lines...) Expand all
37 FX_BOOL m_bCompress; 37 FX_BOOL m_bCompress;
38 38
39 FX_BOOL m_bSecurityChanged; 39 FX_BOOL m_bSecurityChanged;
40 40
41 CPDF_Dictionary* m_pEncryptDict; 41 CPDF_Dictionary* m_pEncryptDict;
42 FX_DWORD m_dwEnryptObjNum; 42 FX_DWORD m_dwEnryptObjNum;
43 FX_BOOL m_bEncryptCloned; 43 FX_BOOL m_bEncryptCloned;
44 44
45 FX_BOOL m_bStandardSecurity; 45 FX_BOOL m_bStandardSecurity;
46 46
47 CPDF_CryptoHandler* m_pCryptoHandler; 47 IPDF_CryptoHandler* m_pCryptoHandler;
48 FX_BOOL m_bNewCrypto; 48 FX_BOOL m_bNewCrypto;
49 49
50 FX_BOOL m_bEncryptMetadata; 50 FX_BOOL m_bEncryptMetadata;
51 51
52 CPDF_Object* m_pMetadata; 52 CPDF_Object* m_pMetadata;
53 53
54 CPDF_XRefStream* m_pXRefStream; 54 CPDF_XRefStream* m_pXRefStream;
55 55
56 int32_t m_ObjectStreamSize; 56 int32_t m_ObjectStreamSize;
57 57
(...skipping 21 matching lines...) Expand all
79 FX_BOOL bEncrypt = TRUE); 79 FX_BOOL bEncrypt = TRUE);
80 int32_t WriteIndirectObjectToStream(const CPDF_Object* pObj); 80 int32_t WriteIndirectObjectToStream(const CPDF_Object* pObj);
81 int32_t WriteIndirectObj(FX_DWORD objnum, const CPDF_Object* pObj); 81 int32_t WriteIndirectObj(FX_DWORD objnum, const CPDF_Object* pObj);
82 int32_t WriteIndirectObjectToStream(FX_DWORD objnum, 82 int32_t WriteIndirectObjectToStream(FX_DWORD objnum,
83 const uint8_t* pBuffer, 83 const uint8_t* pBuffer,
84 FX_DWORD dwSize); 84 FX_DWORD dwSize);
85 int32_t AppendObjectNumberToXRef(FX_DWORD objnum); 85 int32_t AppendObjectNumberToXRef(FX_DWORD objnum);
86 void InitID(FX_BOOL bDefault = TRUE); 86 void InitID(FX_BOOL bDefault = TRUE);
87 int32_t WriteStream(const CPDF_Object* pStream, 87 int32_t WriteStream(const CPDF_Object* pStream,
88 FX_DWORD objnum, 88 FX_DWORD objnum,
89 CPDF_CryptoHandler* pCrypto); 89 IPDF_CryptoHandler* pCrypto);
90 90
91 int32_t m_iStage; 91 int32_t m_iStage;
92 FX_DWORD m_dwFlags; 92 FX_DWORD m_dwFlags;
93 FX_POSITION m_Pos; 93 FX_POSITION m_Pos;
94 FX_FILESIZE m_XrefStart; 94 FX_FILESIZE m_XrefStart;
95 CFX_FileSizeListArray m_ObjectOffset; 95 CFX_FileSizeListArray m_ObjectOffset;
96 CFX_DWordArray m_NewObjNumArray; 96 CFX_DWordArray m_NewObjNumArray;
97 CPDF_Array* m_pIDArray; 97 CPDF_Array* m_pIDArray;
98 int32_t m_FileVersion; 98 int32_t m_FileVersion;
99 99
100 friend class CPDF_ObjectStream; 100 friend class CPDF_ObjectStream;
101 friend class CPDF_XRefStream; 101 friend class CPDF_XRefStream;
102 }; 102 };
103 103
104 #endif // CORE_INCLUDE_FPDFAPI_FPDF_SERIAL_H_ 104 #endif // CORE_INCLUDE_FPDFAPI_FPDF_SERIAL_H_
OLDNEW
« no previous file with comments | « core/include/fpdfapi/fpdf_parser.h ('k') | core/include/fpdfapi/ipdf_crypto_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698