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

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: 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
« no previous file with comments | « chrome/browser/ui/webui/version_handler.cc ('k') | chrome/browser/ui/webui/version_ui.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/macros.h"
11 #include "base/memory/weak_ptr.h"
12 #include "chrome/browser/ui/webui/version_handler.h"
13 #include "chromeos/system/version_loader.h"
14
15 // VersionHandlerChromeOS is responsible for loading the Chrome OS
16 // version.
17 class VersionHandlerChromeOS : public VersionHandler {
18 public:
19 VersionHandlerChromeOS();
20 ~VersionHandlerChromeOS() override;
21
22 // VersionHandler overrides:
23 void HandleRequestVersionInfo(const base::ListValue* args) override;
24
25 // Callbacks from chromeos::VersionLoader.
26 void OnVersion(const std::string& version);
27 void OnARCVersion(const std::string& version);
28
29 private:
30 base::WeakPtrFactory<VersionHandlerChromeOS> weak_factory_;
31
32 DISALLOW_COPY_AND_ASSIGN(VersionHandlerChromeOS);
33 };
34
35 #endif // CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/version_handler.cc ('k') | chrome/browser/ui/webui/version_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698