#include "chrome/browser/ui/views/profiles/profile_management_flow_controller.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_forward.h"
#include "base/functional/callback_helpers.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_window.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/views/profiles/profile_management_step_controller.h"
#include "chrome/browser/ui/views/profiles/profile_management_types.h"
#include "chrome/browser/ui/views/profiles/profile_picker_web_contents_host.h"
ProfileManagementFlowController::ProfileManagementFlowController(
ProfilePickerWebContentsHost* host,
ClearHostClosure clear_host_callback)
: … { … }
ProfileManagementFlowController::~ProfileManagementFlowController() = default;
void ProfileManagementFlowController::SwitchToStep(
Step step,
bool reset_state,
StepSwitchFinishedCallback step_switch_finished_callback,
base::OnceClosure pop_step_callback) { … }
void ProfileManagementFlowController::OnNavigateBackRequested() { … }
#if BUILDFLAG(ENABLE_DICE_SUPPORT)
void ProfileManagementFlowController::OnReloadRequested() { … }
#endif
std::u16string
ProfileManagementFlowController::GetFallbackAccessibleWindowTitle() const { … }
void ProfileManagementFlowController::RegisterStep(
Step step,
std::unique_ptr<ProfileManagementStepController> step_controller) { … }
void ProfileManagementFlowController::UnregisterStep(Step step) { … }
bool ProfileManagementFlowController::IsStepInitialized(Step step) const { … }
void ProfileManagementFlowController::ExitFlow() { … }
bool ProfileManagementFlowController::PreFinishWithBrowser() { … }
void ProfileManagementFlowController::FinishFlowAndRunInBrowser(
Profile* profile,
PostHostClearedCallback post_host_cleared_callback) { … }
base::OnceClosure
ProfileManagementFlowController::CreateSwitchToStepPopCallback(Step step) { … }
void ProfileManagementFlowController::CreateSignedOutFlowWebContents(
Profile* profile) { … }
content::WebContents*
ProfileManagementFlowController::GetSignedOutFlowWebContents() const { … }