Alex Deymo | 4243291 | 2013-07-12 20:21:15 -0700 | [diff] [blame] | 1 | // Copyright (c) 2013 The Chromium OS 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 CHROMEOS_PLATFORM_UPDATE_ENGINE_HARDWARE_H__ |
| 6 | #define CHROMEOS_PLATFORM_UPDATE_ENGINE_HARDWARE_H__ |
| 7 | |
| 8 | #include "update_engine/hardware_interface.h" |
| 9 | |
| 10 | #include "base/basictypes.h" |
| 11 | |
| 12 | namespace chromeos_update_engine { |
| 13 | |
| 14 | // Implements the real interface with the hardware. |
| 15 | class Hardware : public HardwareInterface { |
| 16 | public: |
| 17 | Hardware() {} |
| 18 | |
| 19 | // HardwareInterface methods. |
Don Garrett | 83692e4 | 2013-11-08 10:11:30 -0800 | [diff] [blame^] | 20 | virtual const std::string BootKernelDevice(); |
Alex Deymo | 4243291 | 2013-07-12 20:21:15 -0700 | [diff] [blame] | 21 | virtual const std::string BootDevice(); |
Don Garrett | 83692e4 | 2013-11-08 10:11:30 -0800 | [diff] [blame^] | 22 | virtual bool IsKernelBootable(const std::string& kernel_device, |
| 23 | bool* bootable); |
| 24 | virtual bool MarkKernelUnbootable(const std::string& kernel_device); |
J. Richard Barnette | 056b0ab | 2013-10-29 15:24:56 -0700 | [diff] [blame] | 25 | virtual bool IsOfficialBuild(); |
| 26 | virtual bool IsNormalBootMode(); |
J. Richard Barnette | 522d36f | 2013-10-28 17:22:12 -0700 | [diff] [blame] | 27 | virtual std::string GetHardwareClass(); |
| 28 | virtual std::string GetFirmwareVersion(); |
| 29 | virtual std::string GetECVersion(); |
Alex Deymo | 4243291 | 2013-07-12 20:21:15 -0700 | [diff] [blame] | 30 | |
| 31 | private: |
| 32 | DISALLOW_COPY_AND_ASSIGN(Hardware); |
| 33 | }; |
| 34 | |
| 35 | } // namespace chromeos_update_engine |
| 36 | |
| 37 | #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_HARDWARE_H__ |