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

Side by Side Diff: xfa/fde/xml/fde_xml_imp.h

Issue 2131653002: Cleanup ownership of parser members (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@parser_split
Patch Set: Rebase to master Created 4 years, 5 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 | « no previous file | xfa/fxfa/parser/cxfa_document_parser.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_FDE_XML_FDE_XML_IMP_H_ 7 #ifndef XFA_FDE_XML_FDE_XML_IMP_H_
8 #define XFA_FDE_XML_FDE_XML_IMP_H_ 8 #define XFA_FDE_XML_FDE_XML_IMP_H_
9 9
10 #include "core/fxcrt/include/fx_system.h" 10 #include "core/fxcrt/include/fx_system.h"
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 void SetCharData(const CFX_WideString& wsCData) { m_wsCharData = wsCData; } 186 void SetCharData(const CFX_WideString& wsCData) { m_wsCharData = wsCData; }
187 187
188 CFX_WideString m_wsCharData; 188 CFX_WideString m_wsCharData;
189 }; 189 };
190 190
191 class CFDE_XMLDoc : public CFX_Target { 191 class CFDE_XMLDoc : public CFX_Target {
192 public: 192 public:
193 CFDE_XMLDoc(); 193 CFDE_XMLDoc();
194 ~CFDE_XMLDoc() override; 194 ~CFDE_XMLDoc() override;
195 195
196 void Release() { delete this; }
197 FX_BOOL LoadXML(CFDE_XMLParser* pXMLParser); 196 FX_BOOL LoadXML(CFDE_XMLParser* pXMLParser);
198 int32_t DoLoad(IFX_Pause* pPause = nullptr); 197 int32_t DoLoad(IFX_Pause* pPause = nullptr);
199 void CloseXML(); 198 void CloseXML();
200 CFDE_XMLNode* GetRoot() const { return m_pRoot; } 199 CFDE_XMLNode* GetRoot() const { return m_pRoot; }
201 void SaveXML(IFX_Stream* pXMLStream = nullptr, FX_BOOL bSaveBOM = TRUE); 200 void SaveXML(IFX_Stream* pXMLStream = nullptr, FX_BOOL bSaveBOM = TRUE);
202 void SaveXMLNode(IFX_Stream* pXMLStream, CFDE_XMLNode* pNode); 201 void SaveXMLNode(IFX_Stream* pXMLStream, CFDE_XMLNode* pNode);
203 202
204 protected: 203 protected:
205 void Reset(FX_BOOL bInitRoot); 204 void Reset(FX_BOOL bInitRoot);
206 void ReleaseParser(); 205 void ReleaseParser();
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 int32_t m_iTextDataLength; 342 int32_t m_iTextDataLength;
344 FDE_XmlSyntaxResult m_syntaxParserResult; 343 FDE_XmlSyntaxResult m_syntaxParserResult;
345 FDE_XmlSyntaxState m_syntaxParserState; 344 FDE_XmlSyntaxState m_syntaxParserState;
346 FX_WCHAR m_wQuotationMark; 345 FX_WCHAR m_wQuotationMark;
347 int32_t m_iEntityStart; 346 int32_t m_iEntityStart;
348 CFX_DWordStack m_SkipStack; 347 CFX_DWordStack m_SkipStack;
349 FX_WCHAR m_SkipChar; 348 FX_WCHAR m_SkipChar;
350 }; 349 };
351 350
352 #endif // XFA_FDE_XML_FDE_XML_IMP_H_ 351 #endif // XFA_FDE_XML_FDE_XML_IMP_H_
OLDNEW
« no previous file with comments | « no previous file | xfa/fxfa/parser/cxfa_document_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698