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

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: rebase + lei nit Created 8 years, 2 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 <string>
9
10 #include "chrome/browser/chromeos/version_loader.h"
11 #include "chrome/browser/ui/webui/version_handler.h"
12
13 // VersionHandlerChromeOS is responsible for loading the Chrome OS
14 // version.
15 class VersionHandlerChromeOS : public VersionHandler {
16 public:
17 VersionHandlerChromeOS();
18 virtual ~VersionHandlerChromeOS();
19
20 // VersionHandler overrides:
21 virtual void HandleRequestVersionInfo(const ListValue* args) OVERRIDE;
22
23 // Callback from chromeos::VersionLoader giving the version.
24 void OnVersion(chromeos::VersionLoader::Handle handle,
25 const std::string& version);
26
27 private:
28 // Handles asynchronously loading the version.
29 chromeos::VersionLoader loader_;
30
31 // Used to request the version.
32 CancelableRequestConsumer consumer_;
33
34 DISALLOW_COPY_AND_ASSIGN(VersionHandlerChromeOS);
35 };
36
37 #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_handler_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698