blob: 8183c5189485f0dd84e184b56740df5b46c29809 [file] [log] [blame]
// 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 CHROMEOS_PLATFORM_UPDATE_ENGINE_HARDWARE_H_
#define CHROMEOS_PLATFORM_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 // CHROMEOS_PLATFORM_UPDATE_ENGINE_HARDWARE_H_