#include "components/policy/core/common/cloud/profile_cloud_policy_store.h"
#include <utility>
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/task/thread_pool.h"
#include "build/build_config.h"
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
#include "components/policy/core/common/cloud/user_cloud_policy_store.h"
#include "components/policy/core/common/policy_logger.h"
#include "components/policy/proto/device_management_backend.pb.h"
#include "components/policy/proto/policy_signing_key.pb.h"
em;
namespace policy {
namespace {
const base::FilePath::CharType kPolicy[] = …);
const base::FilePath::CharType kPolicyCache[] = …);
const base::FilePath::CharType kKeyCache[] = …);
}
ProfileCloudPolicyStore::ProfileCloudPolicyStore(
const base::FilePath& policy_path,
const base::FilePath& key_path,
scoped_refptr<base::SequencedTaskRunner> background_task_runner,
bool is_dasherless)
: … { … }
ProfileCloudPolicyStore::~ProfileCloudPolicyStore() = default;
std::unique_ptr<ProfileCloudPolicyStore> ProfileCloudPolicyStore::Create(
const base::FilePath& profile_dir,
scoped_refptr<base::SequencedTaskRunner> background_task_runner,
bool is_dasherless) { … }
std::unique_ptr<UserCloudPolicyValidator>
ProfileCloudPolicyStore::CreateValidator(
std::unique_ptr<enterprise_management::PolicyFetchResponse>
policy_fetch_response,
CloudPolicyValidatorBase::ValidateTimestampOption option) { … }
void ProfileCloudPolicyStore::Validate(
std::unique_ptr<enterprise_management::PolicyFetchResponse> policy,
std::unique_ptr<enterprise_management::PolicySigningKey> key,
UserCloudPolicyValidator::CompletionCallback callback) { … }
}