untrusted_bubble_web_ui_controller.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2022 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_BUBBLE_WEB_UI_CONTROLLER_H_
  5. #define UI_WEBUI_UNTRUSTED_BUBBLE_WEB_UI_CONTROLLER_H_
  6. #include "ui/webui/mojo_bubble_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, but
  13. // should instead use the WebUI Interface Broker to expose the individual
  14. // interface needed.
  15. class UntrustedBubbleWebUIController : public MojoBubbleWebUIController {
  16. public:
  17. explicit UntrustedBubbleWebUIController(content::WebUI* contents,
  18. bool enable_chrome_send = false);
  19. ~UntrustedBubbleWebUIController() override;
  20. UntrustedBubbleWebUIController(UntrustedBubbleWebUIController&) = delete;
  21. UntrustedBubbleWebUIController& operator=(
  22. const UntrustedBubbleWebUIController&) = delete;
  23. };
  24. } // namespace ui
  25. #endif // UI_WEBUI_UNTRUSTED_WEB_UI_CONTROLLER_H_