| OLD | NEW | 
|---|
| 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_SRC_FXFA_APP_XFA_CHECKSUM_H_ | 7 #ifndef XFA_FXFA_APP_XFA_CHECKSUM_H_ | 
| 8 #define XFA_SRC_FXFA_APP_XFA_CHECKSUM_H_ | 8 #define XFA_FXFA_APP_XFA_CHECKSUM_H_ | 
| 9 | 9 | 
|  | 10 #include "xfa/fgas/xml/fgas_sax.h" | 
| 10 #include "xfa/include/fxfa/fxfa.h" | 11 #include "xfa/include/fxfa/fxfa.h" | 
| 11 #include "xfa/src/fgas/xml/fgas_sax.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) {} | 
| 19   CFX_ByteTextBuf m_TextBuf; | 19   CFX_ByteTextBuf m_TextBuf; | 
| 20   CFX_ByteString m_bsTagName; | 20   CFX_ByteString m_bsTagName; | 
| 21   FX_SAXNODE m_eNode; | 21   FX_SAXNODE m_eNode; | 
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 63   virtual void FinishChecksum(); | 63   virtual void FinishChecksum(); | 
| 64   virtual void GetChecksum(CFX_ByteString& bsChecksum); | 64   virtual void GetChecksum(CFX_ByteString& bsChecksum); | 
| 65   void Update(const CFX_ByteStringC& bsText); | 65   void Update(const CFX_ByteStringC& bsText); | 
| 66 | 66 | 
| 67  protected: | 67  protected: | 
| 68   IFX_SAXReader* m_pSAXReader; | 68   IFX_SAXReader* m_pSAXReader; | 
| 69   uint8_t* m_pByteContext; | 69   uint8_t* m_pByteContext; | 
| 70   CFX_ByteString m_bsChecksum; | 70   CFX_ByteString m_bsChecksum; | 
| 71 }; | 71 }; | 
| 72 | 72 | 
| 73 #endif  // XFA_SRC_FXFA_APP_XFA_CHECKSUM_H_ | 73 #endif  // XFA_FXFA_APP_XFA_CHECKSUM_H_ | 
| OLD | NEW | 
|---|