blob: b284a9d81315d90c288812cb178455aee3dd02c9 [file] [log] [blame]
// Copyright 2017 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_INTERVENTIONS_INTERNALS_INTERVENTIONS_INTERNALS_UI_H_
#define CHROME_BROWSER_UI_WEBUI_INTERVENTIONS_INTERNALS_INTERVENTIONS_INTERNALS_UI_H_
#include "base/macros.h"
#include "chrome/browser/ui/webui/interventions_internals/interventions_internals.mojom.h"
#include "chrome/browser/ui/webui/interventions_internals/interventions_internals_page_handler.h"
#include "ui/webui/mojo_web_ui_controller.h"
namespace previews {
class PreviewsUIService;
} // namespace previews
// The WebUI for chrome://interventions-internals.
class InterventionsInternalsUI : public ui::MojoWebUIController {
public:
explicit InterventionsInternalsUI(content::WebUI* web_ui);
~InterventionsInternalsUI() override;
private:
void BindInterventionsInternalsPageHandler(
mojom::InterventionsInternalsPageHandlerRequest request);
// The PreviewsUIService associated with this UI.
previews::PreviewsUIService* previews_ui_service_;
std::unique_ptr<InterventionsInternalsPageHandler> page_handler_;
DISALLOW_COPY_AND_ASSIGN(InterventionsInternalsUI);
};
#endif // CHROME_BROWSER_UI_WEBUI_INTERVENTIONS_INTERNALS_INTERVENTIONS_INTERNALS_UI_H_