#ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_API_FACTORY_H_
#define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_API_FACTORY_H_
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
class Profile;
namespace file_manager {
class FileBrowserPrivateAPI;
class FileBrowserPrivateAPIFactory : public BrowserContextKeyedServiceFactory {
public:
static FileBrowserPrivateAPI* GetForProfile(Profile* profile);
static FileBrowserPrivateAPIFactory* GetInstance();
protected:
virtual content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const OVERRIDE;
virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
private:
friend struct DefaultSingletonTraits<FileBrowserPrivateAPIFactory>;
FileBrowserPrivateAPIFactory();
virtual ~FileBrowserPrivateAPIFactory();
virtual KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const OVERRIDE;
};
}
#endif