1 // Copyright 2015 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.
5 #ifndef CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_
8 #include "base/macros.h"
9 #include "chrome/browser/ui/webui/constrained_web_dialog_ui.h"
10 #include "content/public/browser/web_ui_data_source.h"
12 namespace media_router
{
14 class MediaRouterWebUIMessageHandler
;
16 // Implements the chrome://media-router user interface.
17 class MediaRouterUI
: public ConstrainedWebDialogUI
{
19 // |web_ui| owns this object and is used to initialize the base class.
20 explicit MediaRouterUI(content::WebUI
* web_ui
);
21 ~MediaRouterUI() override
;
23 // Closes the media router UI.
27 // Owned by the |web_ui| passed in the ctor, and guaranteed to be deleted
28 // only after it has deleted |this|.
29 MediaRouterWebUIMessageHandler
* handler_
;
31 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI
);
34 } // namespace media_router
36 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_