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

Side by Side Diff: xfa/fxfa/parser/cxfa_simple_parser.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 | « xfa/fxfa/parser/cxfa_document_parser.cpp ('k') | xfa/fxfa/parser/cxfa_simple_parser.cpp » ('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_PARSER_CXFA_SIMPLE_PARSER_H_ 7 #ifndef XFA_FXFA_PARSER_CXFA_SIMPLE_PARSER_H_
8 #define XFA_FXFA_PARSER_CXFA_SIMPLE_PARSER_H_ 8 #define XFA_FXFA_PARSER_CXFA_SIMPLE_PARSER_H_
9 9
10 #include <memory>
11
10 #include "xfa/fde/xml/fde_xml_imp.h" 12 #include "xfa/fde/xml/fde_xml_imp.h"
11 #include "xfa/fxfa/include/fxfa_basic.h" 13 #include "xfa/fxfa/include/fxfa_basic.h"
12 14
13 class CXFA_Document; 15 class CXFA_Document;
14 class CXFA_Node; 16 class CXFA_Node;
15 class CXFA_XMLParser; 17 class CXFA_XMLParser;
16 class IFX_FileRead; 18 class IFX_FileRead;
17 class IFX_Pause; 19 class IFX_Pause;
18 class IFX_Stream; 20 class IFX_Stream;
19 21
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 XFA_XDPPACKET ePacketID); 68 XFA_XDPPACKET ePacketID);
67 void ParseDataGroup(CXFA_Node* pXFANode, 69 void ParseDataGroup(CXFA_Node* pXFANode,
68 CFDE_XMLNode* pXMLNode, 70 CFDE_XMLNode* pXMLNode,
69 XFA_XDPPACKET ePacketID); 71 XFA_XDPPACKET ePacketID);
70 void ParseInstruction(CXFA_Node* pXFANode, 72 void ParseInstruction(CXFA_Node* pXFANode,
71 CFDE_XMLInstruction* pXMLInstruction, 73 CFDE_XMLInstruction* pXMLInstruction,
72 XFA_XDPPACKET ePacketID); 74 XFA_XDPPACKET ePacketID);
73 void SetFactory(CXFA_Document* pFactory); 75 void SetFactory(CXFA_Document* pFactory);
74 76
75 CXFA_XMLParser* m_pXMLParser; 77 CXFA_XMLParser* m_pXMLParser;
76 CFDE_XMLDoc* m_pXMLDoc; 78 std::unique_ptr<CFDE_XMLDoc> m_pXMLDoc;
77 IFX_Stream* m_pStream; 79 std::unique_ptr<IFX_Stream, ReleaseDeleter<IFX_Stream>> m_pStream;
78 IFX_FileRead* m_pFileRead; 80 IFX_FileRead* m_pFileRead;
79 CXFA_Document* m_pFactory; 81 CXFA_Document* m_pFactory;
80 CXFA_Node* m_pRootNode; 82 CXFA_Node* m_pRootNode;
81 XFA_XDPPACKET m_ePacketID; 83 XFA_XDPPACKET m_ePacketID;
82 FX_BOOL m_bDocumentParser; 84 FX_BOOL m_bDocumentParser;
83 friend class CXFA_DocumentParser; 85 friend class CXFA_DocumentParser;
84 }; 86 };
85 87
86 #endif // XFA_FXFA_PARSER_CXFA_SIMPLE_PARSER_H_ 88 #endif // XFA_FXFA_PARSER_CXFA_SIMPLE_PARSER_H_
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/cxfa_document_parser.cpp ('k') | xfa/fxfa/parser/cxfa_simple_parser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698