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