#ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_FACTORY_H_
#define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_FACTORY_H_
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
class Profile;
namespace sync_file_system {
class RemoteFileSyncService;
class SyncFileSystemService;
class SyncFileSystemServiceFactory : public BrowserContextKeyedServiceFactory {
public:
static SyncFileSystemService* GetForProfile(Profile* profile);
static SyncFileSystemService* FindForProfile(Profile* profile);
static SyncFileSystemServiceFactory* GetInstance();
void set_mock_remote_file_service(
scoped_ptr<RemoteFileSyncService> mock_remote_service);
private:
friend struct DefaultSingletonTraits<SyncFileSystemServiceFactory>;
SyncFileSystemServiceFactory();
virtual ~SyncFileSystemServiceFactory();
virtual KeyedService* BuildServiceInstanceFor(
content::BrowserContext* context) const OVERRIDE;
mutable scoped_ptr<RemoteFileSyncService> mock_remote_file_service_;
};
}
#endif