Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3441)

Unified Diff: chrome/browser/ui/webui/engagement/site_engagement_ui_handler.h

Issue 1430313003: Change MojoWebUIController to use mojo::StrongBindingSet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-geolocation-untangle
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/engagement/site_engagement_ui_handler.h
diff --git a/chrome/browser/ui/webui/engagement/site_engagement_ui_handler.h b/chrome/browser/ui/webui/engagement/site_engagement_ui_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..4fdb1809fa4a7f5b2ea8ea97d4e1de252d77a891
--- /dev/null
+++ b/chrome/browser/ui/webui/engagement/site_engagement_ui_handler.h
@@ -0,0 +1,35 @@
+// Copyright 2015 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_ENGAGEMENT_SITE_ENGAGEMENT_UI_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_ENGAGEMENT_SITE_ENGAGEMENT_UI_HANDLER_H_
+
+#include "base/macros.h"
+#include "chrome/browser/ui/webui/engagement/site_engagement.mojom.h"
+
+namespace content {
+class WebUI;
+}
+
+class Profile;
+
+// Implementation of SiteEngagementUIHandler that gets information from the
+// SiteEngagementService to provide data for the WebUI.
+class SiteEngagementUIHandlerImpl : public SiteEngagementUIHandler {
+ public:
+ explicit SiteEngagementUIHandlerImpl(content::WebUI* web_ui);
+ ~SiteEngagementUIHandlerImpl() override;
+
+ // SiteEngagementUIHandler overrides:
+ void GetSiteEngagementInfo(
+ const GetSiteEngagementInfoCallback& callback) override;
+
+ private:
+ // The Profile* for the content::WebUI handed to us in our constructor.
+ Profile* profile_;
+
+ DISALLOW_COPY_AND_ASSIGN(SiteEngagementUIHandlerImpl);
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_ENGAGEMENT_SITE_ENGAGEMENT_UI_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698