| // Copyright 2021 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef REMOTING_BASE_USER_SETTINGS_H_ |
| #define REMOTING_BASE_USER_SETTINGS_H_ |
| using UserSettingKey = char[]; |
| // A class to read and write settings for the current user. |
| static UserSettings* GetInstance(); |
| UserSettings(const UserSettings&) = delete; |
| UserSettings& operator=(const UserSettings&) = delete; |
| // Gets the value of the setting. Returns empty string if the value is not |
| virtual std::string GetString(const UserSettingKey key) const = 0; |
| // Sets a string value for |key| and writes it into the settings file. |
| virtual void SetString(const UserSettingKey key, |
| const std::string& value) = 0; |
| #endif // REMOTING_BASE_USER_SETTINGS_H_ |