Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chromeos / system / version_loader.h
blob7981dc2830ac9d0c88013b490ba6806aa81d9d31
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_
8 #include <string>
10 #include "chromeos/chromeos_export.h"
12 namespace chromeos {
13 namespace version_loader {
15 enum VersionFormat {
16 VERSION_SHORT,
17 VERSION_SHORT_WITH_DATE,
18 VERSION_FULL,
21 // Gets the version.
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_