#ifndef CHROMEOS_ASH_COMPONENTS_SETTINGS_CROS_SETTINGS_WAITER_H_
#define CHROMEOS_ASH_COMPONENTS_SETTINGS_CROS_SETTINGS_WAITER_H_
#include <string_view>
#include <vector>
#include "base/containers/span.h"
#include "base/run_loop.h"
namespace base {
class CallbackListSubscription;
}
namespace ash {
class CrosSettingsWaiter {
public:
explicit CrosSettingsWaiter(base::span<const std::string_view> settings);
CrosSettingsWaiter(const CrosSettingsWaiter&) = delete;
CrosSettingsWaiter& operator=(const CrosSettingsWaiter&) = delete;
~CrosSettingsWaiter();
void Wait();
private:
base::RunLoop run_loop_;
std::vector<base::CallbackListSubscription> subscriptions_;
};
}
#endif