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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/webui/version_handler.h
diff --git a/ios/chrome/browser/ui/webui/version_handler.h b/ios/chrome/browser/ui/webui/version_handler.h
index 20cf7f929e8e77eb8f1379fed89ef1ea284e0394..134fdb5772b33c089c2899c49065587816a2aaa7 100644
--- a/ios/chrome/browser/ui/webui/version_handler.h
+++ b/ios/chrome/browser/ui/webui/version_handler.h
@@ -6,26 +6,25 @@
#define IOS_CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_H_
#include "base/macros.h"
-#include "ios/web/public/webui/web_ui_ios_message_handler.h"
-
-namespace base {
-class ListValue;
-}
+#include "components/version_ui/version.mojom.h"
+#include "mojo/public/cpp/bindings/binding.h"
// Handler class for Version page operations.
-class VersionHandler : public web::WebUIIOSMessageHandler {
+class VersionHandler : public mojom::VersionPageHandler {
public:
- VersionHandler();
+ explicit VersionHandler(
+ mojo::InterfaceRequest<mojom::VersionPageHandler> request);
~VersionHandler() override;
- // content::WebUIMessageHandler implementation.
- void RegisterMessages() override;
-
- // Callback for the "requestVersionInfo" message. This asynchronously requests
- // the list of variations.
- void HandleRequestVersionInfo(const base::ListValue* args);
+ // mojom::VersionPageHandler overrides:
+ void GetFilePaths(const GetFilePathsCallback& callback) override;
+ void GetFlashVersion(const GetFlashVersionCallback& callback) override;
+ void GetVariations(const GetVariationsCallback& callback) override;
+ void GetOsVersion(const GetOsVersionCallback& callback) override;
+ void GetArcVersion(const GetArcVersionCallback& callback) override;
private:
+ mojo::Binding<mojom::VersionPageHandler> binding_;
DISALLOW_COPY_AND_ASSIGN(VersionHandler);
};
« 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