#ifndef REMOTING_BASE_FILE_HOST_SETTINGS_H_
#define REMOTING_BASE_FILE_HOST_SETTINGS_H_
#include <memory>
#include "base/files/file_path.h"
#include "base/task/sequenced_task_runner.h"
#include "base/values.h"
#include "remoting/base/host_settings.h"
namespace remoting {
class FileHostSettings final : public HostSettings {
public:
static base::FilePath GetSettingsFilePath();
explicit FileHostSettings(const base::FilePath& settings_file);
FileHostSettings(const FileHostSettings&) = delete;
FileHostSettings& operator=(const FileHostSettings&) = delete;
~FileHostSettings() override;
void InitializeInstance() override;
std::string GetString(const HostSettingKey key,
const std::string& default_value) const override;
void SetString(const HostSettingKey key, const std::string& value) override;
private:
base::FilePath settings_file_;
#if !defined(NDEBUG)
scoped_refptr<base::SequencedTaskRunner> task_runner_for_checking_sequence_;
#endif
std::optional<base::Value::Dict> settings_;
};
}
#endif