michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_places_PlaceInfo_h__ michael@0: #define mozilla_places_PlaceInfo_h__ michael@0: michael@0: #include "mozIAsyncHistory.h" michael@0: #include "nsString.h" michael@0: #include "nsTArray.h" michael@0: #include "nsAutoPtr.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: class nsIURI; michael@0: class mozIVisitInfo; michael@0: michael@0: namespace mozilla { michael@0: namespace places { michael@0: michael@0: michael@0: class PlaceInfo MOZ_FINAL : public mozIPlaceInfo michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_MOZIPLACEINFO michael@0: michael@0: typedef nsTArray< nsCOMPtr > VisitsArray; michael@0: michael@0: PlaceInfo(int64_t aId, const nsCString& aGUID, already_AddRefed aURI, michael@0: const nsString& aTitle, int64_t aFrecency); michael@0: PlaceInfo(int64_t aId, const nsCString& aGUID, already_AddRefed aURI, michael@0: const nsString& aTitle, int64_t aFrecency, michael@0: const VisitsArray& aVisits); michael@0: michael@0: private: michael@0: const int64_t mId; michael@0: const nsCString mGUID; michael@0: nsCOMPtr mURI; michael@0: const nsString mTitle; michael@0: const int64_t mFrecency; michael@0: const VisitsArray mVisits; michael@0: bool mVisitsAvailable; michael@0: }; michael@0: michael@0: } // namespace places michael@0: } // namespace mozilla michael@0: michael@0: #endif // mozilla_places_PlaceInfo_h__