#ifndef CHROME_BROWSER_UI_SIDE_SEARCH_SIDE_SEARCH_UTILS_H_
#define CHROME_BROWSER_UI_SIDE_SEARCH_SIDE_SEARCH_UTILS_H_
#include <map>
#include <optional>
#include <utility>
#include "chrome/browser/ui/side_search/side_search_tab_contents_helper.h"
#include "url/gurl.h"
class Browser;
class Profile;
namespace content {
class WebContents;
}
namespace side_search {
std::optional<std::pair<std::string, std::string>>
MaybeGetSideSearchTabRestoreData(content::WebContents* web_contents);
void MaybeSaveSideSearchTabSessionData(content::WebContents* web_contents);
void SetSideSearchTabStateFromRestoreData(
content::WebContents* web_contents,
const std::map<std::string, std::string>& extra_data);
bool IsSidePanelWebContents(content::WebContents* web_contents);
bool IsEnabledForBrowser(const Browser* browser);
bool IsSearchWebInSidePanelSupported(const Browser* browser);
}
bool IsSideSearchEnabled(const Profile* profile);
#endif