#include "components/policy/core/browser/configuration_policy_pref_store.h"
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "base/functional/bind.h"
#include "base/observer_list.h"
#include "components/policy/core/browser/browser_policy_connector_base.h"
#include "components/policy/core/browser/configuration_policy_handler_list.h"
#include "components/policy/core/browser/policy_conversions_client.h"
#include "components/policy/core/browser/policy_error_map.h"
#include "components/policy/core/common/policy_logger.h"
#include "components/prefs/pref_value_map.h"
namespace policy {
namespace {
void LogErrors(std::unique_ptr<PolicyErrorMap> errors,
PoliciesSet deprecated_policies,
PoliciesSet future_policies) { … }
bool IsLevel(PolicyLevel level, PolicyMap::const_reference iter) { … }
}
ConfigurationPolicyPrefStore::ConfigurationPolicyPrefStore(
BrowserPolicyConnectorBase* policy_connector,
PolicyService* service,
const ConfigurationPolicyHandlerList* handler_list,
PolicyLevel level)
: … { … }
void ConfigurationPolicyPrefStore::AddObserver(PrefStore::Observer* observer) { … }
void ConfigurationPolicyPrefStore::RemoveObserver(
PrefStore::Observer* observer) { … }
bool ConfigurationPolicyPrefStore::HasObservers() const { … }
bool ConfigurationPolicyPrefStore::IsInitializationComplete() const { … }
bool ConfigurationPolicyPrefStore::GetValue(std::string_view key,
const base::Value** value) const { … }
base::Value::Dict ConfigurationPolicyPrefStore::GetValues() const { … }
void ConfigurationPolicyPrefStore::OnPolicyUpdated(const PolicyNamespace& ns,
const PolicyMap& previous,
const PolicyMap& current) { … }
void ConfigurationPolicyPrefStore::OnPolicyServiceInitialized(
PolicyDomain domain) { … }
ConfigurationPolicyPrefStore::~ConfigurationPolicyPrefStore() { … }
void ConfigurationPolicyPrefStore::Refresh() { … }
std::unique_ptr<PrefValueMap>
ConfigurationPolicyPrefStore::CreatePreferencesFromPolicies() { … }
}