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

Side by Side Diff: chrome/browser/chromeos/version_loader.h

Issue 799683003: Move chromeos::version_loader to src/chromeos/system (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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) 2011 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_CHROMEOS_VERSION_LOADER_H_
6 #define CHROME_BROWSER_CHROMEOS_VERSION_LOADER_H_
7
8 #include <string>
9
10 namespace chromeos {
11 namespace version_loader {
12
13 enum VersionFormat {
14 VERSION_SHORT,
15 VERSION_SHORT_WITH_DATE,
16 VERSION_FULL,
17 };
18
19 // Gets the version.
20 // If |full_version| is true version string with extra info is extracted,
21 // otherwise it's in short format x.x.xx.x.
22 // Must be run on a blocking thread pool.
23 std::string GetVersion(VersionFormat format);
24
25 // Gets the firmware info.
26 // Must be run on a blocking thread pool.
27 std::string GetFirmware();
28
29 // Extracts the firmware from the file.
30 std::string ParseFirmware(const std::string& contents);
31
32 } // namespace version_loader
33 } // namespace chromeos
34
35 #endif // CHROME_BROWSER_CHROMEOS_VERSION_LOADER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/device_status_collector.h ('k') | chrome/browser/chromeos/version_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698