Home | History | Annotate | Download | only in fxfa
      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_CXFA_LINKUSERDATA_H_
      8 #define XFA_FXFA_CXFA_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 CXFA_LinkUserData : public Retainable {
     15  public:
     16   template <typename T, typename... Args>
     17   friend RetainPtr<T> pdfium::MakeRetain(Args&&... args);
     18 
     19   const wchar_t* GetLinkURL() const { return m_wsURLContent.c_str(); }
     20 
     21  private:
     22   explicit CXFA_LinkUserData(wchar_t* pszText);
     23   ~CXFA_LinkUserData() override;
     24 
     25   WideString m_wsURLContent;
     26 };
     27 
     28 #endif  // XFA_FXFA_CXFA_LINKUSERDATA_H_
     29