| // Copyright 2020 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 POWER_MANAGER_POWERD_SYSTEM_THERMAL_THERMAL_DEVICE_FACTORY_H_ |
| #define POWER_MANAGER_POWERD_SYSTEM_THERMAL_THERMAL_DEVICE_FACTORY_H_ |
| |
| #include <memory> |
| #include <vector> |
| |
| #include "power_manager/powerd/system/thermal/thermal_device.h" |
| |
| namespace power_manager { |
| namespace system { |
| |
| class ThermalDeviceFactory { |
| public: |
| // Look at default sysfs thermal device path to create ThermalDevice objects. |
| static std::vector<std::unique_ptr<ThermalDeviceInterface>> |
| CreateThermalDevices(const char device_list_path_for_testing[] = nullptr); |
| |
| private: |
| // Private constructor to make this class static method only. |
| ThermalDeviceFactory() {} |
| ThermalDeviceFactory(const ThermalDeviceFactory&) = delete; |
| ThermalDeviceFactory& operator=(const ThermalDeviceFactory&) = delete; |
| }; |
| |
| } // namespace system |
| } // namespace power_manager |
| |
| #endif // POWER_MANAGER_POWERD_SYSTEM_THERMAL_THERMAL_DEVICE_FACTORY_H_ |