2018-11-30 19:52:05 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2001-11-17 15:22:46 +00:00
|
|
|
|
2009-03-17 21:20:02 +00:00
|
|
|
#ifndef nsPluginDirServiceProvider_h_
|
|
|
|
#define nsPluginDirServiceProvider_h_
|
2001-11-17 15:22:46 +00:00
|
|
|
|
|
|
|
#include "nsIDirectoryService.h"
|
|
|
|
|
2007-04-03 15:56:31 +00:00
|
|
|
#if defined(XP_WIN)
|
|
|
|
# include "nsCOMArray.h"
|
|
|
|
#endif
|
|
|
|
|
2003-05-27 21:14:55 +00:00
|
|
|
class nsISimpleEnumerator;
|
|
|
|
|
2001-11-17 15:22:46 +00:00
|
|
|
//*****************************************************************************
|
|
|
|
// class nsPluginDirServiceProvider
|
2017-07-06 12:00:35 +00:00
|
|
|
//*****************************************************************************
|
2001-11-17 15:22:46 +00:00
|
|
|
|
|
|
|
class nsPluginDirServiceProvider : public nsIDirectoryServiceProvider {
|
|
|
|
public:
|
2003-05-27 21:14:55 +00:00
|
|
|
nsPluginDirServiceProvider();
|
2017-07-06 12:00:35 +00:00
|
|
|
|
2013-07-19 02:21:20 +00:00
|
|
|
NS_DECL_THREADSAFE_ISUPPORTS
|
2001-11-17 15:22:46 +00:00
|
|
|
NS_DECL_NSIDIRECTORYSERVICEPROVIDER
|
|
|
|
|
2003-05-27 21:14:55 +00:00
|
|
|
#ifdef XP_WIN
|
|
|
|
static nsresult GetPLIDDirectories(nsISimpleEnumerator **aEnumerator);
|
2018-11-30 10:46:48 +00:00
|
|
|
|
2007-04-03 15:56:31 +00:00
|
|
|
private:
|
2012-08-22 15:56:38 +00:00
|
|
|
static nsresult GetPLIDDirectoriesWithRootKey(uint32_t aKey,
|
2012-06-06 02:08:30 +00:00
|
|
|
nsCOMArray<nsIFile> &aDirs);
|
2003-05-27 21:14:55 +00:00
|
|
|
#endif
|
|
|
|
|
2001-11-17 15:22:46 +00:00
|
|
|
protected:
|
2003-05-27 21:14:55 +00:00
|
|
|
virtual ~nsPluginDirServiceProvider();
|
2001-11-17 15:22:46 +00:00
|
|
|
};
|
|
|
|
|
2009-03-17 21:20:02 +00:00
|
|
|
#endif // nsPluginDirServiceProvider_h_
|