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

Unified Diff: chrome/browser/ui/webui/version_ui.h

Issue 1486403002: Mojo-ifying chrome://version. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change slashes Created 4 years, 5 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
« no previous file with comments | « chrome/browser/ui/webui/version_handler_chromeos.h ('k') | chrome/browser/ui/webui/version_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/version_ui.h
diff --git a/chrome/browser/ui/webui/version_ui.h b/chrome/browser/ui/webui/version_ui.h
index 9de2301fd8e44bff2526f9f4423f3ff86c386b69..0fc6aa35eeb37e58b3014fa141d23daa1dced2ae 100644
--- a/chrome/browser/ui/webui/version_ui.h
+++ b/chrome/browser/ui/webui/version_ui.h
@@ -6,15 +6,25 @@
#define CHROME_BROWSER_UI_WEBUI_VERSION_UI_H_
#include "base/macros.h"
+#include "chrome/browser/ui/webui/mojo_web_ui_controller.h"
+#include "components/version_ui/version.mojom.h"
#include "content/public/browser/web_ui_controller.h"
+class VersionHandler;
+
// The WebUI handler for chrome://version.
-class VersionUI : public content::WebUIController {
+class VersionUI : public MojoWebUIController<mojom::VersionPageHandler> {
public:
explicit VersionUI(content::WebUI* web_ui);
~VersionUI() override;
private:
+ // MojoWebUIController overrides:
+ void BindUIHandler(
+ mojo::InterfaceRequest<mojom::VersionPageHandler> request) override;
+
+ std::unique_ptr<VersionHandler> version_handler_;
+
DISALLOW_COPY_AND_ASSIGN(VersionUI);
};
« no previous file with comments | « chrome/browser/ui/webui/version_handler_chromeos.h ('k') | chrome/browser/ui/webui/version_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698