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

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

Issue 10916182: Refactor the about:version code out of about_ui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: more estade changes Created 8 years, 3 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
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 "chrome/browser/chromeos/version_loader.h"
9 #include "chrome/browser/ui/webui/version_handler.h"
10
11 // VersionHandlerChromeOS is responsible for loading the Chrome OS
12 // version.
13 class VersionHandlerChromeOS : public VersionHandler {
14 public:
15 VersionHandlerChromeOS();
16 virtual ~VersionHandlerChromeOS();
17
18 // VersionHandler overrides:
19 virtual void HandleRequestVersionInfo(const ListValue* args) OVERRIDE;
20
21 // Callback from chromeos::VersionLoader giving the version.
22 void OnVersion(chromeos::VersionLoader::Handle handle,
23 const std::string& version);
24
25 private:
26 // Handles asynchronously loading the version.
27 chromeos::VersionLoader loader_;
28
29 // Used to request the version.
30 CancelableRequestConsumer consumer_;
31
32 DISALLOW_COPY_AND_ASSIGN(VersionHandlerChromeOS);
33 };
34
35 #endif // CHROME_BROWSER_UI_WEBUI_VERSION_HANDLER_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698