blob: a74f048d5fe631f2de4e83b0e90bd5458609a5ba [file] [log] [blame]
Giovanni Ortuño Urquidi019a2362020-12-15 05:06:401// 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
10namespace content {
11class WebUI;
12}
13
14namespace ui {
15
16// UntrustedWebUIController is intended for WebUI pages that process untrusted
17// content. These WebUIController should never request WebUI bindings.
18class 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_