• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_APP_CXFA_LINKUSERDATA_H_
8 #define XFA_FXFA_APP_CXFA_LINKUSERDATA_H_
9 
10 #include "core/fxcrt/cfx_retain_ptr.h"
11 #include "core/fxcrt/fx_basic.h"
12 #include "core/fxcrt/fx_string.h"
13 #include "core/fxcrt/fx_system.h"
14 
15 class CXFA_LinkUserData : public CFX_Retainable {
16  public:
17   template <typename T, typename... Args>
18   friend CFX_RetainPtr<T> pdfium::MakeRetain(Args&&... args);
19 
GetLinkURL()20   const FX_WCHAR* GetLinkURL() const { return m_wsURLContent.c_str(); }
21 
22  protected:
23   explicit CXFA_LinkUserData(FX_WCHAR* pszText);
24   ~CXFA_LinkUserData() override;
25 
26   CFX_WideString m_wsURLContent;
27 };
28 
29 #endif  // XFA_FXFA_APP_CXFA_LINKUSERDATA_H_
30