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 DirectoryProvider_h__ michael@0: #define DirectoryProvider_h__ michael@0: michael@0: #include "nsIDirectoryService.h" michael@0: #include "nsComponentManagerUtils.h" michael@0: #include "nsISimpleEnumerator.h" michael@0: #include "nsIFile.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: #define NS_BROWSERDIRECTORYPROVIDER_CONTRACTID \ michael@0: "@mozilla.org/browser/directory-provider;1" michael@0: michael@0: namespace mozilla { michael@0: namespace browser { michael@0: michael@0: class DirectoryProvider MOZ_FINAL : public nsIDirectoryServiceProvider2 michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIDIRECTORYSERVICEPROVIDER michael@0: NS_DECL_NSIDIRECTORYSERVICEPROVIDER2 michael@0: michael@0: private: michael@0: class AppendingEnumerator MOZ_FINAL : public nsISimpleEnumerator michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSISIMPLEENUMERATOR michael@0: michael@0: AppendingEnumerator(nsISimpleEnumerator* aBase, michael@0: char const *const *aAppendList); michael@0: michael@0: private: michael@0: nsCOMPtr mBase; michael@0: char const *const *const mAppendList; michael@0: nsCOMPtr mNext; michael@0: }; michael@0: }; michael@0: michael@0: } // namespace browser michael@0: } // namespace mozilla michael@0: michael@0: #endif // DirectoryProvider_h__