Giovanni Ortuño Urquidi | 019a236 | 2020-12-15 05:06:40 | [diff] [blame] | 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 | |
| 5 | #ifndef UI_WEBUI_UNTRUSTED_WEB_UI_CONTROLLER_H_ |
| 6 | #define UI_WEBUI_UNTRUSTED_WEB_UI_CONTROLLER_H_ |
| 7 | |
| 8 | #include "content/public/browser/web_ui_controller.h" |
| 9 | |
| 10 | namespace content { |
| 11 | class WebUI; |
| 12 | } |
| 13 | |
| 14 | namespace ui { |
| 15 | |
| 16 | // UntrustedWebUIController is intended for WebUI pages that process untrusted |
| 17 | // content. These WebUIController should never request WebUI bindings. |
| 18 | class UntrustedWebUIController : public content::WebUIController { |
| 19 | public: |
| 20 | explicit UntrustedWebUIController(content::WebUI* contents); |
| 21 | ~UntrustedWebUIController() override; |
| 22 | UntrustedWebUIController(UntrustedWebUIController&) = delete; |
| 23 | UntrustedWebUIController& operator=(const UntrustedWebUIController&) = delete; |
| 24 | }; |
| 25 | |
| 26 | } // namespace ui |
| 27 | |
| 28 | #endif // UI_WEBUI_UNTRUSTED_WEB_UI_CONTROLLER_H_ |