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

Side by Side Diff: chrome/browser/ui/webui/version_handler_chromeos.h

Issue 1486403002: Mojo-ifying chrome://version. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments Created 5 years 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_CHROMEOS_H_
7
8 #include <string>
9
10 #include "base/memory/weak_ptr.h"
11 #include "chrome/browser/ui/webui/version_handler.h"
12 #include "chromeos/system/version_loader.h"
13
14 // VersionHandlerChromeOS is responsible for loading the Chrome OS
15 // version.
16 class VersionHandlerChromeOS : public VersionHandler {
17 public:
18 VersionHandlerChromeOS();
19 ~VersionHandlerChromeOS() override;
20
21 // VersionHandler overrides:
22 void HandleRequestVersionInfo(const base::ListValue* args) override;
23
24 // Callback from chromeos::VersionLoader giving the version.
25 void OnVersion(const std::string& version);
26
27 private:
28 base::WeakPtrFactory<VersionHandlerChromeOS> weak_factory_;
29
30 DISALLOW_COPY_AND_ASSIGN(VersionHandlerChromeOS);
31 };
32
33 #endif // CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698