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 file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef iehistoryenumerator___h___ michael@0: #define iehistoryenumerator___h___ michael@0: michael@0: #include michael@0: michael@0: #include "mozilla/Attributes.h" michael@0: #include "nsISimpleEnumerator.h" michael@0: #include "nsIWritablePropertyBag2.h" michael@0: #include "nsAutoPtr.h" michael@0: michael@0: class nsIEHistoryEnumerator MOZ_FINAL : public nsISimpleEnumerator michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSISIMPLEENUMERATOR michael@0: michael@0: nsIEHistoryEnumerator(); michael@0: michael@0: private: michael@0: ~nsIEHistoryEnumerator(); michael@0: michael@0: /** michael@0: * Initializes the history reader, if needed. michael@0: */ michael@0: void EnsureInitialized(); michael@0: michael@0: nsRefPtr mIEHistory; michael@0: nsRefPtr mURLEnumerator; michael@0: michael@0: nsCOMPtr mCachedNextEntry; michael@0: }; michael@0: michael@0: #endif