#include "components/policy/core/common/cloud/cloud_policy_service.h"
#include <stddef.h>
#include <string_view>
#include "base/functional/callback.h"
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
#include "base/observer_list.h"
#include "base/time/time.h"
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
#include "components/policy/core/common/cloud/cloud_policy_util.h"
#include "components/policy/core/common/policy_logger.h"
#include "components/policy/proto/device_management_backend.pb.h"
em;
namespace policy {
namespace {
std::string DumpObservers(
const base::ObserverList<CloudPolicyService::Observer, true>::Unchecked&
observers) { … }
}
CloudPolicyService::CloudPolicyService(const std::string& policy_type,
const std::string& settings_entity_id,
CloudPolicyClient* client,
CloudPolicyStore* store)
: … { … }
CloudPolicyService::~CloudPolicyService() { … }
void CloudPolicyService::RefreshPolicy(RefreshPolicyCallback callback,
PolicyFetchReason reason) { … }
void CloudPolicyService::OnPolicyFetched(CloudPolicyClient* client) { … }
void CloudPolicyService::OnRegistrationStateChanged(CloudPolicyClient* client) { … }
void CloudPolicyService::OnClientError(CloudPolicyClient* client) { … }
void CloudPolicyService::OnStoreLoaded(CloudPolicyStore* store) { … }
void CloudPolicyService::OnStoreError(CloudPolicyStore* store) { … }
void CloudPolicyService::ReportValidationResult(CloudPolicyStore* store) { … }
void CloudPolicyService::CheckInitializationCompleted() { … }
void CloudPolicyService::RefreshCompleted(bool success) { … }
void CloudPolicyService::AddObserver(Observer* observer) { … }
void CloudPolicyService::RemoveObserver(Observer* observer) { … }
}