#include "components/policy/core/common/async_policy_loader.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/sequenced_task_runner.h"
#include "build/build_config.h"
#include "components/policy/core/common/management/management_service.h"
#include "components/policy/core/common/management/platform_management_service.h"
#include "components/policy/core/common/policy_bundle.h"
Time;
namespace policy {
namespace {
constexpr base::TimeDelta kSettleInterval = …;
constexpr base::TimeDelta kReloadInterval = …;
}
AsyncPolicyLoader::AsyncPolicyLoader(
const scoped_refptr<base::SequencedTaskRunner>& task_runner,
bool periodic_updates)
: … { … }
AsyncPolicyLoader::AsyncPolicyLoader(
const scoped_refptr<base::SequencedTaskRunner>& task_runner,
ManagementService* management_service,
bool periodic_updates)
: … { … }
AsyncPolicyLoader::~AsyncPolicyLoader() { … }
Time AsyncPolicyLoader::LastModificationTime() { … }
void AsyncPolicyLoader::Reload(bool force) { … }
bool AsyncPolicyLoader::ShouldFilterSensitivePolicies() { … }
void AsyncPolicyLoader::SetPlatformManagementTrustworthinessAndReload(
bool force,
ManagementAuthorityTrustworthiness trustworthiness) { … }
bool AsyncPolicyLoader::NeedManagementBitBeforeLoad() { … }
PolicyBundle AsyncPolicyLoader::InitialLoad(
const scoped_refptr<SchemaMap>& schema_map) { … }
void AsyncPolicyLoader::Init(
scoped_refptr<base::SequencedTaskRunner> ui_thread_task_runner,
const UpdateCallback& update_callback) { … }
void AsyncPolicyLoader::RefreshPolicies(scoped_refptr<SchemaMap> schema_map) { … }
void AsyncPolicyLoader::ScheduleNextReload(base::TimeDelta delay) { … }
bool AsyncPolicyLoader::IsSafeToReload(const Time& now,
base::TimeDelta* delay) { … }
}