blob: 96354ee890dcf6b6bcc40bc0935c302bd2813148 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_WEBUI_CHROME_URL_DISABLED_UI_H_
#define CHROME_BROWSER_UI_WEBUI_CHROME_URL_DISABLED_UI_H_
#include "base/memory/weak_ptr.h"
#include "content/public/browser/web_ui_controller.h"
// For chrome:://.* error page when disabled by admin policy.
class ChromeURLDisabledUI : public content::WebUIController {
public:
explicit ChromeURLDisabledUI(content::WebUI* web_ui,
const std::string& host_name);
~ChromeURLDisabledUI() override;
private:
base::WeakPtrFactory<ChromeURLDisabledUI> weak_factory_;
};
#endif // CHROME_BROWSER_UI_WEBUI_CHROME_URL_DISABLED_UI_H_