chromium/chrome/browser/ui/webui/ash/account_manager/account_manager_error_ui.h

// 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_MANAGER_ERROR_UI_H_
#define CHROME_BROWSER_UI_WEBUI_ASH_ACCOUNT_MANAGER_ACCOUNT_MANAGER_ERROR_UI_H_

#include "base/memory/weak_ptr.h"
#include "chrome/common/webui_url_constants.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 AccountManagerErrorUI;

// WebUIConfig for chrome://account-manager-error
class AccountManagerErrorUIConfig
    : public content::DefaultWebUIConfig<AccountManagerErrorUI> {
 public:
  AccountManagerErrorUIConfig()
      : DefaultWebUIConfig(content::kChromeUIScheme,
                           chrome::kChromeUIAccountManagerErrorHost) {}
};

// For chrome:://account-manager-error
class AccountManagerErrorUI : public ui::WebDialogUI {
 public:
  explicit AccountManagerErrorUI(content::WebUI* web_ui);
  AccountManagerErrorUI(const AccountManagerErrorUI&) = delete;
  AccountManagerErrorUI& operator=(const AccountManagerErrorUI&) = delete;
  ~AccountManagerErrorUI() override;

 private:
  base::WeakPtrFactory<AccountManagerErrorUI> weak_factory_;
};

}  // namespace ash

#endif  // CHROME_BROWSER_UI_WEBUI_ASH_ACCOUNT_MANAGER_ACCOUNT_MANAGER_ERROR_UI_H_