untrusted_web_ui_controller.h 919 B

12345678910111213141516171819202122232425262728
  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 UI_WEBUI_UNTRUSTED_WEB_UI_CONTROLLER_H_
  5. #define UI_WEBUI_UNTRUSTED_WEB_UI_CONTROLLER_H_
  6. #include "content/public/browser/web_ui_controller.h"
  7. namespace content {
  8. class WebUI;
  9. }
  10. namespace ui {
  11. // UntrustedWebUIController is intended for WebUI pages that process untrusted
  12. // content. These WebUIController should never request WebUI bindings.
  13. class UntrustedWebUIController : public content::WebUIController {
  14. public:
  15. explicit UntrustedWebUIController(content::WebUI* contents);
  16. ~UntrustedWebUIController() override;
  17. UntrustedWebUIController(UntrustedWebUIController&) = delete;
  18. UntrustedWebUIController& operator=(const UntrustedWebUIController&) = delete;
  19. };
  20. } // namespace ui
  21. #endif // UI_WEBUI_UNTRUSTED_WEB_UI_CONTROLLER_H_