#include "components/supervised_user/core/browser/supervised_user_content_settings_provider.h"
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/values.h"
#include "components/content_settings/core/browser/content_settings_rule.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/content_settings/core/common/content_settings_metadata.h"
#include "components/supervised_user/core/browser/supervised_user_settings_service.h"
#include "components/supervised_user/core/common/supervised_user_constants.h"
namespace {
struct ContentSettingsFromSupervisedSettingsEntry { … };
const ContentSettingsFromSupervisedSettingsEntry
kContentSettingsFromSupervisedSettingsMap[] = …;
}
namespace supervised_user {
SupervisedUserContentSettingsProvider::SupervisedUserContentSettingsProvider(
supervised_user::SupervisedUserSettingsService*
supervised_user_settings_service) { … }
SupervisedUserContentSettingsProvider::
~SupervisedUserContentSettingsProvider() = default;
std::unique_ptr<content_settings::RuleIterator>
SupervisedUserContentSettingsProvider::GetRuleIterator(
ContentSettingsType content_type,
bool incognito,
const content_settings::PartitionKey& partition_key) const { … }
std::unique_ptr<content_settings::Rule>
SupervisedUserContentSettingsProvider::GetRule(
const GURL& primary_url,
const GURL& secondary_url,
ContentSettingsType content_type,
bool off_the_record,
const content_settings::PartitionKey& partition_key) const { … }
void SupervisedUserContentSettingsProvider::OnSupervisedSettingsAvailable(
const base::Value::Dict& settings) { … }
bool SupervisedUserContentSettingsProvider::SetWebsiteSetting(
const ContentSettingsPattern& primary_pattern,
const ContentSettingsPattern& secondary_pattern,
ContentSettingsType content_type,
base::Value&& value,
const content_settings::ContentSettingConstraints& constraints,
const content_settings::PartitionKey& partition_key) { … }
void SupervisedUserContentSettingsProvider::ClearAllContentSettingsRules(
ContentSettingsType content_type,
const content_settings::PartitionKey& partition_key) { … }
void SupervisedUserContentSettingsProvider::ShutdownOnUIThread() { … }
}