| // Copyright (c) 2013 The Chromium OS Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef UPDATE_ENGINE_HARDWARE_H_ |
| #define UPDATE_ENGINE_HARDWARE_H_ |
| |
| #include <string> |
| #include <vector> |
| |
| #include <base/basictypes.h> |
| |
| #include "update_engine/hardware_interface.h" |
| |
| namespace chromeos_update_engine { |
| |
| // Implements the real interface with the hardware. |
| class Hardware : public HardwareInterface { |
| public: |
| Hardware(); |
| virtual ~Hardware() override; |
| |
| // HardwareInterface methods. |
| virtual std::string BootKernelDevice() const override; |
| virtual std::string BootDevice() const override; |
| virtual bool IsBootDeviceRemovable() const override; |
| virtual std::vector<std::string> GetKernelDevices() const override; |
| virtual bool IsKernelBootable(const std::string& kernel_device, |
| bool* bootable) const override; |
| virtual bool MarkKernelUnbootable(const std::string& kernel_device) override; |
| virtual bool IsOfficialBuild() const override; |
| virtual bool IsNormalBootMode() const override; |
| virtual bool IsOOBEComplete(base::Time* out_time_of_oobe) const override; |
| virtual std::string GetHardwareClass() const override; |
| virtual std::string GetFirmwareVersion() const override; |
| virtual std::string GetECVersion() const override; |
| |
| private: |
| DISALLOW_COPY_AND_ASSIGN(Hardware); |
| }; |
| |
| } // namespace chromeos_update_engine |
| |
| #endif // UPDATE_ENGINE_HARDWARE_H_ |