help_app_untrusted_ui.h 974 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2020 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_UNTRUSTED_UI_H_
  5. #define ASH_WEBUI_HELP_APP_UI_HELP_APP_UNTRUSTED_UI_H_
  6. #include "base/callback.h"
  7. #include "ui/webui/untrusted_web_ui_controller.h"
  8. namespace content {
  9. class WebUIDataSource;
  10. } // namespace content
  11. namespace ash {
  12. // The Web UI for chrome-untrusted://help-app.
  13. class HelpAppUntrustedUI : public ui::UntrustedWebUIController {
  14. public:
  15. explicit HelpAppUntrustedUI(
  16. content::WebUI* web_ui,
  17. base::RepeatingCallback<void(content::WebUIDataSource*)>
  18. populate_load_time_data_callback);
  19. HelpAppUntrustedUI(const HelpAppUntrustedUI&) = delete;
  20. HelpAppUntrustedUI& operator=(const HelpAppUntrustedUI&) = delete;
  21. ~HelpAppUntrustedUI() override;
  22. };
  23. } // namespace ash
  24. #endif // ASH_WEBUI_HELP_APP_UI_HELP_APP_UNTRUSTED_UI_H_