#include "components/policy/core/common/configuration_policy_provider.h"
#include "base/functional/callback.h"
#include "base/lazy_instance.h"
#include "base/observer_list.h"
#include "build/build_config.h"
#include "components/policy/core/common/external_data_fetcher.h"
#include "components/policy/core/common/policy_map.h"
namespace policy {
ConfigurationPolicyProvider::Observer::~Observer() = default;
ConfigurationPolicyProvider::ConfigurationPolicyProvider()
: … { … }
ConfigurationPolicyProvider::~ConfigurationPolicyProvider() { … }
void ConfigurationPolicyProvider::Init(SchemaRegistry* registry) { … }
void ConfigurationPolicyProvider::Shutdown() { … }
bool ConfigurationPolicyProvider::IsInitializationComplete(
PolicyDomain domain) const { … }
bool ConfigurationPolicyProvider::IsFirstPolicyLoadComplete(
PolicyDomain domain) const { … }
void ConfigurationPolicyProvider::UpdatePolicy(PolicyBundle bundle) { … }
SchemaRegistry* ConfigurationPolicyProvider::schema_registry() const { … }
const scoped_refptr<SchemaMap>&
ConfigurationPolicyProvider::schema_map() const { … }
void ConfigurationPolicyProvider::AddObserver(Observer* observer) { … }
void ConfigurationPolicyProvider::RemoveObserver(Observer* observer) { … }
void ConfigurationPolicyProvider::OnSchemaRegistryUpdated(
bool has_new_schemas) { … }
void ConfigurationPolicyProvider::OnSchemaRegistryReady() { … }
#if BUILDFLAG(IS_ANDROID)
void ConfigurationPolicyProvider::ShutdownForTesting() {
observer_list_.Clear();
Shutdown();
}
#endif
}