#include "components/policy/core/common/cloud/cloud_policy_store.h"
#include "base/check.h"
#include "base/observer_list.h"
#include "components/policy/core/common/cloud/cloud_external_data_manager.h"
#include "components/policy/proto/device_management_backend.pb.h"
namespace policy {
CloudPolicyStore::Observer::~Observer() = default;
void CloudPolicyStore::Observer::OnStoreDestruction(CloudPolicyStore* store) { … }
CloudPolicyStore::CloudPolicyStore() = default;
CloudPolicyStore::~CloudPolicyStore() { … }
bool CloudPolicyStore::is_managed() const { … }
void CloudPolicyStore::Store(
const enterprise_management::PolicyFetchResponse& policy,
int64_t invalidation_version) { … }
void CloudPolicyStore::AddObserver(CloudPolicyStore::Observer* observer) { … }
void CloudPolicyStore::RemoveObserver(CloudPolicyStore::Observer* observer) { … }
bool CloudPolicyStore::HasObserver(CloudPolicyStore::Observer* observer) { … }
void CloudPolicyStore::NotifyStoreLoaded() { … }
void CloudPolicyStore::UpdateFirstPoliciesLoaded() { … }
void CloudPolicyStore::SetPolicy(
std::unique_ptr<enterprise_management::PolicyFetchResponse>
policy_fetch_response,
std::unique_ptr<enterprise_management::PolicyData> policy_data) { … }
void CloudPolicyStore::ResetPolicy() { … }
void CloudPolicyStore::NotifyStoreError() { … }
void CloudPolicyStore::NotifyStoreDestruction() { … }
void CloudPolicyStore::SetExternalDataManager(
base::WeakPtr<CloudExternalDataManager> external_data_manager) { … }
void CloudPolicyStore::SetFirstPoliciesLoaded(bool loaded) { … }
void CloudPolicyStore::set_policy_data_for_testing(
std::unique_ptr<enterprise_management::PolicyData> policy) { … }
void CloudPolicyStore::set_policy_signature_public_key_for_testing(
const std::string& key) { … }
}