blob: 0139c2252723196783f431cd369f13b19e3955df [file] [log] [blame]
// Copyright 2021 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_MEDIA_ROUTER_CAST_FEEDBACK_UI_H_
#define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_CAST_FEEDBACK_UI_H_
#include "base/memory/raw_ptr.h"
#include "content/public/browser/web_ui_controller.h"
class Profile;
namespace base {
class ListValue;
}
namespace content {
class WebContents;
class WebUI;
} // namespace content
namespace media_router {
// The main object controlling the Cast feedback
// (chrome://cast-feedback) page.
class CastFeedbackUI : public content::WebUIController {
public:
explicit CastFeedbackUI(content::WebUI* web_ui);
~CastFeedbackUI() override;
private:
void OnCloseMessage(const base::ListValue*);
const raw_ptr<Profile> profile_;
const raw_ptr<content::WebContents> web_contents_;
WEB_UI_CONTROLLER_TYPE_DECL();
};
} // namespace media_router
#endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_CAST_FEEDBACK_UI_H_