#include "base/basictypes.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
#ifndef CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_FACTORY_H_
#define CHROME_BROWSER_CHROMEOS_FILE_MANAGER_VOLUME_MANAGER_FACTORY_H_
template<typename T> struct DefaultSingletonTraits;
namespace content {
class BrowserContext;
}
namespace file_manager {
class VolumeManager;
class VolumeManagerFactory : public BrowserContextKeyedServiceFactory {
public:
static VolumeManager* Get(content::BrowserContext* context);
static VolumeManagerFactory* GetInstance();
protected:
virtual content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const OVERRIDE;
virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
virtual KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
private:
friend struct DefaultSingletonTraits<VolumeManagerFactory>;
VolumeManagerFactory();
virtual ~VolumeManagerFactory();
DISALLOW_COPY_AND_ASSIGN(VolumeManagerFactory);
};
}
#endif