OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_ENGAGEMENT_SITE_ENGAGEMENT_UI_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_ENGAGEMENT_SITE_ENGAGEMENT_UI_HANDLER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/webui/engagement/site_engagement.mojom.h" |
| 10 |
| 11 namespace content { |
| 12 class WebUI; |
| 13 } |
| 14 |
| 15 class Profile; |
| 16 |
| 17 // Implementation of SiteEngagementUIHandler that gets information from the |
| 18 // SiteEngagementService to provide data for the WebUI. |
| 19 class SiteEngagementUIHandlerImpl : public SiteEngagementUIHandler { |
| 20 public: |
| 21 explicit SiteEngagementUIHandlerImpl(content::WebUI* web_ui); |
| 22 ~SiteEngagementUIHandlerImpl() override; |
| 23 |
| 24 // SiteEngagementUIHandler overrides: |
| 25 void GetSiteEngagementInfo( |
| 26 const GetSiteEngagementInfoCallback& callback) override; |
| 27 |
| 28 private: |
| 29 // The Profile* for the content::WebUI handed to us in our constructor. |
| 30 Profile* profile_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(SiteEngagementUIHandlerImpl); |
| 33 }; |
| 34 |
| 35 #endif // CHROME_BROWSER_UI_WEBUI_ENGAGEMENT_SITE_ENGAGEMENT_UI_HANDLER_H_ |
OLD | NEW |