1 // Copyright 2017 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef XFA_FXFA_PARSER_CXFA_THISPROXY_H_
8 #define XFA_FXFA_PARSER_CXFA_THISPROXY_H_
9 
10 #include "core/fxcrt/unowned_ptr.h"
11 #include "xfa/fxfa/parser/cxfa_object.h"
12 
13 class CXFA_Node;
14 
15 class CXFA_ThisProxy final : public CXFA_Object {
16  public:
17   CXFA_ThisProxy(CXFA_Node* pThisNode, CXFA_Node* pScriptNode);
18   ~CXFA_ThisProxy() override;
19 
GetThisNode()20   CXFA_Node* GetThisNode() const { return m_pThisNode.Get(); }
GetScriptNode()21   CXFA_Node* GetScriptNode() const { return m_pScriptNode.Get(); }
22 
23  private:
24   UnownedPtr<CXFA_Node> m_pThisNode;
25   UnownedPtr<CXFA_Node> m_pScriptNode;
26 };
27 
28 #endif  // XFA_FXFA_PARSER_CXFA_THISPROXY_H_
29