// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_ASH_SETTINGS_SUPERVISED_USER_CROS_SETTINGS_PROVIDER_H_
#define CHROME_BROWSER_ASH_SETTINGS_SUPERVISED_USER_CROS_SETTINGS_PROVIDER_H_
#include <string>
#include <string_view>
#include "base/containers/flat_map.h"
#include "base/values.h"
#include "chromeos/ash/components/settings/cros_settings_provider.h"
namespace ash {
class SupervisedUserCrosSettingsProvider : public CrosSettingsProvider {
public:
explicit SupervisedUserCrosSettingsProvider(
const CrosSettingsProvider::NotifyObserversCallback& notify_cb);
SupervisedUserCrosSettingsProvider(
const SupervisedUserCrosSettingsProvider&) = delete;
SupervisedUserCrosSettingsProvider& operator=(
const SupervisedUserCrosSettingsProvider&) = delete;
~SupervisedUserCrosSettingsProvider() override;
// CrosSettingsProvider:
const base::Value* Get(std::string_view path) const override;
TrustedStatus PrepareTrustedValues(base::OnceClosure* callback) override;
bool HandlesSetting(std::string_view path) const override;
private:
// Cros pref name to pref value.
base::flat_map<std::string, base::Value> child_user_restrictions_;
};
} // namespace ash
#endif // CHROME_BROWSER_ASH_SETTINGS_SUPERVISED_USER_CROS_SETTINGS_PROVIDER_H_