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

Side by Side Diff: ios/chrome/browser/ui/webui/version_handler.h

Issue 2041603002: [ios Mojo] Implemented chrome://version. Base URL: https://chromium.googlesource.com/chromium/src.git@mojo_version
Patch Set: Self review 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
« no previous file with comments | « ios/chrome/browser/BUILD.gn ('k') | ios/chrome/browser/ui/webui/version_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 IOS_CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_H_
6 #define IOS_CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_H_ 6 #define IOS_CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ios/web/public/webui/web_ui_ios_message_handler.h" 9 #include "components/version_ui/version.mojom.h"
10 10 #include "mojo/public/cpp/bindings/binding.h"
11 namespace base {
12 class ListValue;
13 }
14 11
15 // Handler class for Version page operations. 12 // Handler class for Version page operations.
16 class VersionHandler : public web::WebUIIOSMessageHandler { 13 class VersionHandler : public mojom::VersionPageHandler {
17 public: 14 public:
18 VersionHandler(); 15 explicit VersionHandler(
16 mojo::InterfaceRequest<mojom::VersionPageHandler> request);
19 ~VersionHandler() override; 17 ~VersionHandler() override;
20 18
21 // content::WebUIMessageHandler implementation. 19 // mojom::VersionPageHandler overrides:
22 void RegisterMessages() override; 20 void GetFilePaths(const GetFilePathsCallback& callback) override;
23 21 void GetFlashVersion(const GetFlashVersionCallback& callback) override;
24 // Callback for the "requestVersionInfo" message. This asynchronously requests 22 void GetVariations(const GetVariationsCallback& callback) override;
25 // the list of variations. 23 void GetOsVersion(const GetOsVersionCallback& callback) override;
26 void HandleRequestVersionInfo(const base::ListValue* args); 24 void GetArcVersion(const GetArcVersionCallback& callback) override;
27 25
28 private: 26 private:
27 mojo::Binding<mojom::VersionPageHandler> binding_;
29 DISALLOW_COPY_AND_ASSIGN(VersionHandler); 28 DISALLOW_COPY_AND_ASSIGN(VersionHandler);
30 }; 29 };
31 30
32 #endif // IOS_CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_H_ 31 #endif // IOS_CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/BUILD.gn ('k') | ios/chrome/browser/ui/webui/version_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698