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.
5 #ifndef CHROMEOS_SYSTEM_VERSION_LOADER_H_
6 #define CHROMEOS_SYSTEM_VERSION_LOADER_H_
10 #include "chromeos/chromeos_export.h"
13 namespace version_loader
{
17 VERSION_SHORT_WITH_DATE
,
22 // If |full_version| is true version string with extra info is extracted,
23 // otherwise it's in short format x.x.xx.x.
24 // Must be run on a blocking thread pool.
25 CHROMEOS_EXPORT
std::string
GetVersion(VersionFormat format
);
27 // Gets the firmware info.
28 // Must be run on a blocking thread pool.
29 CHROMEOS_EXPORT
std::string
GetFirmware();
31 // Extracts the firmware from the file.
32 CHROMEOS_EXPORT
std::string
ParseFirmware(const std::string
& contents
);
34 } // namespace version_loader
35 } // namespace chromeos
37 #endif // CHROMEOS_SYSTEM_VERSION_LOADER_H_