michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 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 nsPluginDirServiceProvider_h_ michael@0: #define nsPluginDirServiceProvider_h_ michael@0: michael@0: #include "nsIDirectoryService.h" michael@0: michael@0: #if defined (XP_WIN) michael@0: #include "nsCOMArray.h" michael@0: #endif michael@0: michael@0: class nsISimpleEnumerator; michael@0: michael@0: // Note: Our directory service provider scan keys are prefs which are check michael@0: // for minimum versions compatibility michael@0: #define NS_WIN_ACROBAT_SCAN_KEY "plugin.scan.Acrobat" michael@0: #define NS_WIN_QUICKTIME_SCAN_KEY "plugin.scan.Quicktime" michael@0: #define NS_WIN_WMP_SCAN_KEY "plugin.scan.WindowsMediaPlayer" michael@0: michael@0: //***************************************************************************** michael@0: // class nsPluginDirServiceProvider michael@0: //***************************************************************************** michael@0: michael@0: class nsPluginDirServiceProvider : public nsIDirectoryServiceProvider michael@0: { michael@0: public: michael@0: nsPluginDirServiceProvider(); michael@0: michael@0: NS_DECL_THREADSAFE_ISUPPORTS michael@0: NS_DECL_NSIDIRECTORYSERVICEPROVIDER michael@0: michael@0: #ifdef XP_WIN michael@0: static nsresult GetPLIDDirectories(nsISimpleEnumerator **aEnumerator); michael@0: private: michael@0: static nsresult GetPLIDDirectoriesWithRootKey(uint32_t aKey, michael@0: nsCOMArray &aDirs); michael@0: #endif michael@0: michael@0: protected: michael@0: virtual ~nsPluginDirServiceProvider(); michael@0: }; michael@0: michael@0: #endif // nsPluginDirServiceProvider_h_