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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VERSION_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_VERSION_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_VERSION_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_VERSION_UI_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/webui/mojo_web_ui_controller.h"
10 #include "components/version_ui/version.mojom.h"
9 #include "content/public/browser/web_ui_controller.h" 11 #include "content/public/browser/web_ui_controller.h"
10 12
13 class VersionHandler;
14
11 // The WebUI handler for chrome://version. 15 // The WebUI handler for chrome://version.
12 class VersionUI : public content::WebUIController { 16 class VersionUI : public MojoWebUIController<mojom::VersionPageHandler> {
13 public: 17 public:
14 explicit VersionUI(content::WebUI* web_ui); 18 explicit VersionUI(content::WebUI* web_ui);
15 ~VersionUI() override; 19 ~VersionUI() override;
16 20
17 private: 21 private:
22 // MojoWebUIController overrides:
23 void BindUIHandler(
24 mojo::InterfaceRequest<mojom::VersionPageHandler> request) override;
25
26 std::unique_ptr<VersionHandler> version_handler_;
27
18 DISALLOW_COPY_AND_ASSIGN(VersionUI); 28 DISALLOW_COPY_AND_ASSIGN(VersionUI);
19 }; 29 };
20 30
21 #endif // CHROME_BROWSER_UI_WEBUI_VERSION_UI_H_ 31 #endif // CHROME_BROWSER_UI_WEBUI_VERSION_UI_H_
OLDNEW
« 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