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

Side by Side Diff: xfa/include/fxfa/xfa_checksum.h

Issue 1846993002: Remove IXFA_* interfaces. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 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 | « xfa/include/fxfa/fxfa.h ('k') | xfa/include/fxfa/xfa_ffapp.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 XFA_FXFA_APP_XFA_CHECKSUM_H_ 7 #ifndef XFA_INCLUDE_FXFA_XFA_CHECKSUM_H_
8 #define XFA_FXFA_APP_XFA_CHECKSUM_H_ 8 #define XFA_INCLUDE_FXFA_XFA_CHECKSUM_H_
9 9
10 #include "xfa/fgas/xml/fgas_sax.h" 10 #include "xfa/fgas/xml/fgas_sax.h"
11 #include "xfa/include/fxfa/fxfa.h" 11 #include "xfa/include/fxfa/fxfa.h"
12 12
13 class CXFA_SAXReaderHandler; 13 class CXFA_SAXReaderHandler;
14 class CXFA_ChecksumContext; 14 class CXFA_ChecksumContext;
15 15
16 class CXFA_SAXContext { 16 class CXFA_SAXContext {
17 public: 17 public:
18 CXFA_SAXContext() : m_eNode(FX_SAXNODE_Unknown) {} 18 CXFA_SAXContext() : m_eNode(FX_SAXNODE_Unknown) {}
(...skipping 25 matching lines...) Expand all
44 FX_SAXNODE eType, 44 FX_SAXNODE eType,
45 const CFX_ByteStringC& bsData, 45 const CFX_ByteStringC& bsData,
46 uint32_t dwStartPos); 46 uint32_t dwStartPos);
47 47
48 protected: 48 protected:
49 void UpdateChecksum(FX_BOOL bCheckSpace); 49 void UpdateChecksum(FX_BOOL bCheckSpace);
50 CXFA_ChecksumContext* m_pContext; 50 CXFA_ChecksumContext* m_pContext;
51 CXFA_SAXContext m_SAXContext; 51 CXFA_SAXContext m_SAXContext;
52 }; 52 };
53 53
54 class CXFA_ChecksumContext : public IXFA_ChecksumContext { 54 class CXFA_ChecksumContext {
55 public: 55 public:
56 CXFA_ChecksumContext(); 56 CXFA_ChecksumContext();
57 virtual ~CXFA_ChecksumContext(); 57 ~CXFA_ChecksumContext();
58 virtual void Release() { delete this; } 58
59 virtual FX_BOOL StartChecksum(); 59 void Release() { delete this; }
60 virtual FX_BOOL UpdateChecksum(IFX_FileRead* pSrcFile, 60 FX_BOOL StartChecksum();
61 FX_FILESIZE offset = 0, 61 FX_BOOL UpdateChecksum(IFX_FileRead* pSrcFile,
62 size_t size = 0); 62 FX_FILESIZE offset = 0,
63 virtual void FinishChecksum(); 63 size_t size = 0);
64 virtual void GetChecksum(CFX_ByteString& bsChecksum); 64 void FinishChecksum();
65 void GetChecksum(CFX_ByteString& bsChecksum);
65 void Update(const CFX_ByteStringC& bsText); 66 void Update(const CFX_ByteStringC& bsText);
66 67
67 protected: 68 protected:
68 IFX_SAXReader* m_pSAXReader; 69 IFX_SAXReader* m_pSAXReader;
69 uint8_t* m_pByteContext; 70 uint8_t* m_pByteContext;
70 CFX_ByteString m_bsChecksum; 71 CFX_ByteString m_bsChecksum;
71 }; 72 };
72 73
73 #endif // XFA_FXFA_APP_XFA_CHECKSUM_H_ 74 #endif // XFA_INCLUDE_FXFA_XFA_CHECKSUM_H_
OLDNEW
« no previous file with comments | « xfa/include/fxfa/fxfa.h ('k') | xfa/include/fxfa/xfa_ffapp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698