chromium/components/supervised_user/core/browser/supervised_user_content_settings_provider.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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

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) {}

// Since the SupervisedUserContentSettingsProvider is a read only content
// settings provider, all methods of the ProviderInterface that set or delete
// any settings do nothing.
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() {}

}  // namespace supervised_user