#include "components/policy/core/common/async_policy_provider.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "components/policy/core/common/async_policy_loader.h"
#include "components/policy/core/common/policy_bundle.h"
#include "components/policy/core/common/schema_registry.h"
namespace policy {
AsyncPolicyProvider::AsyncPolicyProvider(
SchemaRegistry* registry,
std::unique_ptr<AsyncPolicyLoader> loader)
: … { … }
AsyncPolicyProvider::~AsyncPolicyProvider() { … }
void AsyncPolicyProvider::Init(SchemaRegistry* registry) { … }
void AsyncPolicyProvider::Shutdown() { … }
void AsyncPolicyProvider::RefreshPolicies(PolicyFetchReason reason) { … }
bool AsyncPolicyProvider::IsFirstPolicyLoadComplete(PolicyDomain domain) const { … }
void AsyncPolicyProvider::ReloadAfterRefreshSync() { … }
void AsyncPolicyProvider::OnLoaderReloaded(PolicyBundle bundle) { … }
void AsyncPolicyProvider::LoaderUpdateCallback(
scoped_refptr<base::SingleThreadTaskRunner> runner,
base::WeakPtr<AsyncPolicyProvider> weak_this,
PolicyBundle bundle) { … }
}