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_FXFA_INCLUDE_XFA_CHECKSUM_H_ | 7 #ifndef XFA_FXFA_XFA_CHECKSUM_H_ |
8 #define XFA_FXFA_INCLUDE_XFA_CHECKSUM_H_ | 8 #define XFA_FXFA_XFA_CHECKSUM_H_ |
9 | 9 |
10 #include "xfa/fde/xml/cfx_saxreader.h" | 10 #include "xfa/fde/xml/cfx_saxreader.h" |
11 #include "xfa/fxfa/include/fxfa.h" | 11 #include "xfa/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(CFX_SAXItem::Type::Unknown) {} | 18 CXFA_SAXContext() : m_eNode(CFX_SAXItem::Type::Unknown) {} |
19 | 19 |
20 CFX_ByteTextBuf m_TextBuf; | 20 CFX_ByteTextBuf m_TextBuf; |
21 CFX_ByteString m_bsTagName; | 21 CFX_ByteString m_bsTagName; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 size_t size = 0); | 67 size_t size = 0); |
68 void FinishChecksum(); | 68 void FinishChecksum(); |
69 CFX_ByteString GetChecksum() const; | 69 CFX_ByteString GetChecksum() const; |
70 | 70 |
71 protected: | 71 protected: |
72 CFX_SAXReader* m_pSAXReader; | 72 CFX_SAXReader* m_pSAXReader; |
73 uint8_t* m_pByteContext; | 73 uint8_t* m_pByteContext; |
74 CFX_ByteString m_bsChecksum; | 74 CFX_ByteString m_bsChecksum; |
75 }; | 75 }; |
76 | 76 |
77 #endif // XFA_FXFA_INCLUDE_XFA_CHECKSUM_H_ | 77 #endif // XFA_FXFA_XFA_CHECKSUM_H_ |
OLD | NEW |