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

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

Issue 1905113002: Add ARC version to help and version pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 8 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_HANDLER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_CHROMEOS_H_ 6 #define CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_CHROMEOS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "chrome/browser/ui/webui/version_handler.h" 12 #include "chrome/browser/ui/webui/version_handler.h"
13 #include "chromeos/system/version_loader.h" 13 #include "chromeos/system/version_loader.h"
14 14
15 // VersionHandlerChromeOS is responsible for loading the Chrome OS 15 // VersionHandlerChromeOS is responsible for loading the Chrome OS
16 // version. 16 // version.
17 class VersionHandlerChromeOS : public VersionHandler { 17 class VersionHandlerChromeOS : public VersionHandler {
18 public: 18 public:
19 VersionHandlerChromeOS(); 19 VersionHandlerChromeOS();
20 ~VersionHandlerChromeOS() override; 20 ~VersionHandlerChromeOS() override;
21 21
22 // VersionHandler overrides: 22 // VersionHandler overrides:
23 void HandleRequestVersionInfo(const base::ListValue* args) override; 23 void HandleRequestVersionInfo(const base::ListValue* args) override;
24 24
25 // Callback from chromeos::VersionLoader giving the version. 25 // Callbacks from chromeos::VersionLoader.
26 void OnVersion(const std::string& version); 26 void OnVersion(const std::string& version);
27 void OnARCVersion(const std::string& version);
27 28
28 private: 29 private:
29 base::WeakPtrFactory<VersionHandlerChromeOS> weak_factory_; 30 base::WeakPtrFactory<VersionHandlerChromeOS> weak_factory_;
30 31
31 DISALLOW_COPY_AND_ASSIGN(VersionHandlerChromeOS); 32 DISALLOW_COPY_AND_ASSIGN(VersionHandlerChromeOS);
32 }; 33 };
33 34
34 #endif // CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_CHROMEOS_H_ 35 #endif // CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/help/help_handler.cc ('k') | chrome/browser/ui/webui/version_handler_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698