OLD | NEW |
| (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_ | |
OLD | NEW |