summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-07-21 12:11:53 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-21 12:11:53 -0700
commit1235f6ff37394e7df2eecce539762d45e8860a5c (patch)
tree694a8d1bb3bb92a25472929e8debb1a19d682f6c
parent987796a6f69c7970bcc8fa50202e88dc158cc39b (diff)
downloadpdfium-1235f6ff37394e7df2eecce539762d45e8860a5c.tar.xz
Remove CXFA_DocumentParser friendship with CXFA_SimpleParser
This CL moves the |SetFactory| method to be public and removes the friendship with CXFA_DocumentParser from CXFA_SimpleParser. Review-Url: https://codereview.chromium.org/2162263003
-rw-r--r--xfa/fxfa/parser/cxfa_simple_parser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/cxfa_simple_parser.h b/xfa/fxfa/parser/cxfa_simple_parser.h
index e8b39b09bc..8bef0c3c2b 100644
--- a/xfa/fxfa/parser/cxfa_simple_parser.h
+++ b/xfa/fxfa/parser/cxfa_simple_parser.h
@@ -34,7 +34,9 @@ class CXFA_SimpleParser {
CFDE_XMLDoc* GetXMLDoc() const;
void CloseParser();
- protected:
+ void SetFactory(CXFA_Document* pFactory);
+
+ private:
CXFA_Node* ParseAsXDPPacket(CFDE_XMLNode* pXMLDocumentNode,
XFA_XDPPACKET ePacketID);
CXFA_Node* ParseAsXDPPacket_XDP(CFDE_XMLNode* pXMLDocumentNode,
@@ -72,7 +74,6 @@ class CXFA_SimpleParser {
void ParseInstruction(CXFA_Node* pXFANode,
CFDE_XMLInstruction* pXMLInstruction,
XFA_XDPPACKET ePacketID);
- void SetFactory(CXFA_Document* pFactory);
CXFA_XMLParser* m_pXMLParser;
std::unique_ptr<CFDE_XMLDoc> m_pXMLDoc;
@@ -82,7 +83,6 @@ class CXFA_SimpleParser {
CXFA_Node* m_pRootNode;
XFA_XDPPACKET m_ePacketID;
FX_BOOL m_bDocumentParser;
- friend class CXFA_DocumentParser;
};
#endif // XFA_FXFA_PARSER_CXFA_SIMPLE_PARSER_H_