#ifndef CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_FACTORY_H_
#define CHROME_BROWSER_PREDICTORS_AUTOCOMPLETE_ACTION_PREDICTOR_FACTORY_H_
#include "base/basictypes.h"
#include "base/memory/singleton.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
class Profile;
namespace predictors {
class AutocompleteActionPredictor;
class AutocompleteActionPredictorFactory
: public BrowserContextKeyedServiceFactory {
public:
static AutocompleteActionPredictor* GetForProfile(Profile* profile);
static AutocompleteActionPredictorFactory* GetInstance();
private:
friend struct DefaultSingletonTraits<AutocompleteActionPredictorFactory>;
AutocompleteActionPredictorFactory();
virtual ~AutocompleteActionPredictorFactory();
virtual content::BrowserContext* GetBrowserContextToUse(
content::BrowserContext* context) const OVERRIDE;
virtual KeyedService* BuildServiceInstanceFor(
content::BrowserContext* profile) const OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(AutocompleteActionPredictorFactory);
};
}
#endif