help_app_kids_magazine_untrusted_ui.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef ASH_WEBUI_HELP_APP_UI_HELP_APP_KIDS_MAGAZINE_UNTRUSTED_UI_H_
  5. #define ASH_WEBUI_HELP_APP_UI_HELP_APP_KIDS_MAGAZINE_UNTRUSTED_UI_H_
  6. #include "content/public/browser/webui_config.h"
  7. #include "ui/webui/untrusted_web_ui_controller.h"
  8. namespace ash {
  9. class HelpAppKidsMagazineUntrustedUIConfig : public content::WebUIConfig {
  10. public:
  11. HelpAppKidsMagazineUntrustedUIConfig();
  12. ~HelpAppKidsMagazineUntrustedUIConfig() override;
  13. std::unique_ptr<content::WebUIController> CreateWebUIController(
  14. content::WebUI* web_ui) override;
  15. };
  16. // The Web UI for chrome-untrusted://help-app-kids-magazine.
  17. class HelpAppKidsMagazineUntrustedUI : public ui::UntrustedWebUIController {
  18. public:
  19. explicit HelpAppKidsMagazineUntrustedUI(content::WebUI* web_ui);
  20. HelpAppKidsMagazineUntrustedUI(const HelpAppKidsMagazineUntrustedUI&) =
  21. delete;
  22. HelpAppKidsMagazineUntrustedUI& operator=(
  23. const HelpAppKidsMagazineUntrustedUI&) = delete;
  24. ~HelpAppKidsMagazineUntrustedUI() override;
  25. };
  26. } // namespace ash
  27. #endif // ASH_WEBUI_HELP_APP_UI_HELP_APP_KIDS_MAGAZINE_UNTRUSTED_UI_H_