// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_WEBUI_ASH_ACCOUNT_MANAGER_ACCOUNT_MIGRATION_WELCOME_UI_H_
#define CHROME_BROWSER_UI_WEBUI_ASH_ACCOUNT_MANAGER_ACCOUNT_MIGRATION_WELCOME_UI_H_
#include "base/memory/weak_ptr.h"
#include "chrome/common/webui_url_constants.h"
#include "content/public/browser/web_ui_message_handler.h"
#include "content/public/browser/webui_config.h"
#include "content/public/common/url_constants.h"
#include "ui/web_dialogs/web_dialog_ui.h"
namespace ash {
class AccountMigrationWelcomeUI;
// WebUIConfig for chrome:://account-migration-welcome
class AccountMigrationWelcomeUIConfig
: public content::DefaultWebUIConfig<AccountMigrationWelcomeUI> {
public:
AccountMigrationWelcomeUIConfig()
: DefaultWebUIConfig(content::kChromeUIScheme,
chrome::kChromeUIAccountMigrationWelcomeHost) {}
};
// For chrome:://account-migration-welcome
class AccountMigrationWelcomeUI : public ui::WebDialogUI {
public:
explicit AccountMigrationWelcomeUI(content::WebUI* web_ui);
AccountMigrationWelcomeUI(const AccountMigrationWelcomeUI&) = delete;
AccountMigrationWelcomeUI& operator=(const AccountMigrationWelcomeUI&) =
delete;
~AccountMigrationWelcomeUI() override;
private:
base::WeakPtrFactory<AccountMigrationWelcomeUI> weak_factory_{this};
};
} // namespace ash
#endif // CHROME_BROWSER_UI_WEBUI_ASH_ACCOUNT_MANAGER_ACCOUNT_MIGRATION_WELCOME_UI_H_