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_FGAS_LAYOUT_CFX_LINKUSERDATA_H_ 8 #define XFA_FGAS_LAYOUT_CFX_LINKUSERDATA_H_ 9 10 #include "core/fxcrt/fx_string.h" 11 #include "core/fxcrt/fx_system.h" 12 #include "core/fxcrt/retain_ptr.h" 13 14 class CFX_LinkUserData final : public Retainable { 15 public: 16 template <typename T, typename... Args> 17 friend RetainPtr<T> pdfium::MakeRetain(Args&&... args); 18 GetLinkURL()19 const wchar_t* GetLinkURL() const { return m_wsURLContent.c_str(); } 20 21 private: 22 explicit CFX_LinkUserData(const WideString& wsText); 23 ~CFX_LinkUserData() override; 24 25 WideString m_wsURLContent; 26 }; 27 28 #endif // XFA_FGAS_LAYOUT_CFX_LINKUSERDATA_H_ 29