OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_WEBUI_ENGAGEMENT_SITE_ENGAGEMENT_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_ENGAGEMENT_SITE_ENGAGEMENT_UI_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_ENGAGEMENT_SITE_ENGAGEMENT_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_ENGAGEMENT_SITE_ENGAGEMENT_UI_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/ui/webui/engagement/site_engagement.mojom.h" | 9 #include "chrome/browser/ui/webui/engagement/site_engagement.mojom.h" |
| 10 #include "chrome/browser/ui/webui/engagement/site_engagement_ui_handler.h" |
10 #include "chrome/browser/ui/webui/mojo_web_ui_controller.h" | 11 #include "chrome/browser/ui/webui/mojo_web_ui_controller.h" |
11 | 12 |
| 13 namespace content { |
| 14 class WebUI; |
| 15 } |
| 16 |
12 // The UI for chrome://site-engagement/. | 17 // The UI for chrome://site-engagement/. |
13 class SiteEngagementUI : public MojoWebUIController<SiteEngagementUIHandler> { | 18 class SiteEngagementUI |
| 19 : public MojoWebUIController<SiteEngagementUIHandlerImpl> { |
14 public: | 20 public: |
15 explicit SiteEngagementUI(content::WebUI* web_ui); | 21 explicit SiteEngagementUI(content::WebUI* web_ui); |
16 ~SiteEngagementUI() override; | 22 ~SiteEngagementUI() override; |
17 | 23 |
18 private: | 24 private: |
19 // MojoWebUIController overrides: | |
20 void BindUIHandler( | |
21 mojo::InterfaceRequest<SiteEngagementUIHandler> request) override; | |
22 | |
23 DISALLOW_COPY_AND_ASSIGN(SiteEngagementUI); | 25 DISALLOW_COPY_AND_ASSIGN(SiteEngagementUI); |
24 }; | 26 }; |
25 | 27 |
26 #endif // CHROME_BROWSER_UI_WEBUI_ENGAGEMENT_SITE_ENGAGEMENT_UI_H_ | 28 #endif // CHROME_BROWSER_UI_WEBUI_ENGAGEMENT_SITE_ENGAGEMENT_UI_H_ |
OLD | NEW |