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

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

Issue 1316043003: Add chrome://site-engagement WebUI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@navigation_smarter
Patch Set: namespace Created 5 years, 3 months 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.h
diff --git a/chrome/browser/ui/webui/engagement/site_engagement_ui.h b/chrome/browser/ui/webui/engagement/site_engagement_ui.h
new file mode 100644
index 0000000000000000000000000000000000000000..6238ff6c05bff239740e6f734e646b0a13ccc3bd
--- /dev/null
+++ b/chrome/browser/ui/webui/engagement/site_engagement_ui.h
@@ -0,0 +1,26 @@
+// 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_H_
+#define CHROME_BROWSER_UI_WEBUI_ENGAGEMENT_SITE_ENGAGEMENT_UI_H_
+
+#include "base/basictypes.h"
Dan Beam 2015/09/10 17:33:55 nit: base/macros.h instead
calamity 2015/09/11 07:48:24 Done.
+#include "chrome/browser/ui/webui/engagement/site_engagement.mojom.h"
+#include "chrome/browser/ui/webui/mojo_web_ui_controller.h"
+
+// The UI for chrome://site-engagement/.
+class SiteEngagementUI : public MojoWebUIController<SiteEngagementUIHandler> {
+ public:
+ explicit SiteEngagementUI(content::WebUI* web_ui);
+ ~SiteEngagementUI() override;
+
+ private:
+ // MojoWebUIController overrides:
+ void BindUIHandler(
+ mojo::InterfaceRequest<SiteEngagementUIHandler> request) override;
+
+ DISALLOW_COPY_AND_ASSIGN(SiteEngagementUI);
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_ENGAGEMENT_SITE_ENGAGEMENT_UI_H_

Powered by Google App Engine
This is Rietveld 408576698