EntryList.h (1045B)
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* vim: set ts=2 sts=2 et sw=2 tw=80: */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #ifndef mozilla_dom_EntryList_h 8 #define mozilla_dom_EntryList_h 9 10 #include "mozilla/LinkedList.h" 11 #include "mozilla/RefCounted.h" 12 #include "mozilla/WeakPtr.h" 13 #include "nsID.h" 14 15 class nsSHistory; 16 17 namespace mozilla::dom { 18 19 class SessionHistoryEntry; 20 21 class EntryList final : public LinkedList<SessionHistoryEntry>, 22 public RefCounted<EntryList>, 23 public SupportsWeakPtr { 24 public: 25 MOZ_DECLARE_REFCOUNTED_TYPENAME(EntryList) 26 27 explicit EntryList(nsSHistory* aSessionHistory, const nsID& aHistoryID); 28 ~EntryList(); 29 30 private: 31 nsCOMPtr<nsIWeakReference> mSessionHistory; 32 nsID mHistoryID; 33 }; 34 35 } // namespace mozilla::dom 36 37 #endif // !defined(mozilla_dom_EntryList_h)