#ifndef CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_STATE_H_
#define CHROME_BROWSER_UI_FIND_BAR_FIND_BAR_STATE_H_
#include <string>
#include "base/memory/raw_ptr.h"
#include "components/find_in_page/find_tab_helper.h"
#include "components/keyed_service/core/keyed_service.h"
class Profile;
namespace content {
class BrowserContext;
}
class FindBarState : public KeyedService,
public find_in_page::FindTabHelper::Delegate {
public:
explicit FindBarState(content::BrowserContext* browser_context);
FindBarState(const FindBarState&) = delete;
FindBarState& operator=(const FindBarState&) = delete;
~FindBarState() override;
static void ConfigureWebContents(content::WebContents* web_contents);
void SetLastSearchText(const std::u16string& text) override;
std::u16string GetSearchPrepopulateText() override;
private:
raw_ptr<Profile> profile_;
std::u16string last_prepopulate_text_;
};
#endif