OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_CHROMEOS_VERSION_LOADER_H_ | 5 #ifndef CHROMEOS_SYSTEM_VERSION_LOADER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_VERSION_LOADER_H_ | 6 #define CHROMEOS_SYSTEM_VERSION_LOADER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
| 10 #include "chromeos/chromeos_export.h" |
| 11 |
10 namespace chromeos { | 12 namespace chromeos { |
11 namespace version_loader { | 13 namespace version_loader { |
12 | 14 |
13 enum VersionFormat { | 15 enum VersionFormat { |
14 VERSION_SHORT, | 16 VERSION_SHORT, |
15 VERSION_SHORT_WITH_DATE, | 17 VERSION_SHORT_WITH_DATE, |
16 VERSION_FULL, | 18 VERSION_FULL, |
17 }; | 19 }; |
18 | 20 |
19 // Gets the version. | 21 // Gets the version. |
20 // If |full_version| is true version string with extra info is extracted, | 22 // If |full_version| is true version string with extra info is extracted, |
21 // otherwise it's in short format x.x.xx.x. | 23 // otherwise it's in short format x.x.xx.x. |
22 // Must be run on a blocking thread pool. | 24 // Must be run on a blocking thread pool. |
23 std::string GetVersion(VersionFormat format); | 25 CHROMEOS_EXPORT std::string GetVersion(VersionFormat format); |
24 | 26 |
25 // Gets the firmware info. | 27 // Gets the firmware info. |
26 // Must be run on a blocking thread pool. | 28 // Must be run on a blocking thread pool. |
27 std::string GetFirmware(); | 29 CHROMEOS_EXPORT std::string GetFirmware(); |
28 | 30 |
29 // Extracts the firmware from the file. | 31 // Extracts the firmware from the file. |
30 std::string ParseFirmware(const std::string& contents); | 32 CHROMEOS_EXPORT std::string ParseFirmware(const std::string& contents); |
31 | 33 |
32 } // namespace version_loader | 34 } // namespace version_loader |
33 } // namespace chromeos | 35 } // namespace chromeos |
34 | 36 |
35 #endif // CHROME_BROWSER_CHROMEOS_VERSION_LOADER_H_ | 37 #endif // CHROMEOS_SYSTEM_VERSION_LOADER_H_ |
OLD | NEW |