#include "components/policy/core/common/cloud/profile_cloud_policy_manager.h"
#include <memory>
#include <string>
#include <utility>
#include "base/functional/bind.h"
#include "base/task/sequenced_task_runner.h"
#include "components/policy/core/common/cloud/cloud_external_data_manager.h"
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
#include "components/policy/core/common/cloud/cloud_policy_service.h"
#include "components/policy/core/common/cloud/profile_cloud_policy_store.h"
#include "components/policy/core/common/policy_logger.h"
#include "components/policy/core/common/policy_pref_names.h"
#include "components/policy/core/common/policy_types.h"
#include "components/policy/policy_constants.h"
#include "components/prefs/pref_service.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
namespace policy {
namespace {
const base::FilePath::CharType kPolicy[] = …);
const base::FilePath::CharType kComponentPolicyCacheDir[] = …);
}
ProfileCloudPolicyManager::ProfileCloudPolicyManager(
std::unique_ptr<ProfileCloudPolicyStore> profile_store,
const base::FilePath& component_policy_cache_path,
std::unique_ptr<CloudExternalDataManager> external_data_manager,
const scoped_refptr<base::SequencedTaskRunner>& task_runner,
network::NetworkConnectionTrackerGetter network_connection_tracker_getter,
bool is_dasherless)
: … { … }
ProfileCloudPolicyManager::~ProfileCloudPolicyManager() = default;
std::unique_ptr<ProfileCloudPolicyManager> ProfileCloudPolicyManager::Create(
const base::FilePath& profile_path,
SchemaRegistry* schema_registry,
bool force_immediate_load,
const scoped_refptr<base::SequencedTaskRunner>& background_task_runner,
network::NetworkConnectionTrackerGetter network_connection_tracker_getter,
bool is_dasherless) { … }
void ProfileCloudPolicyManager::Connect(
PrefService* local_state,
std::unique_ptr<CloudPolicyClient> client) { … }
void ProfileCloudPolicyManager::DisconnectAndRemovePolicy() { … }
void ProfileCloudPolicyManager::Shutdown() { … }
}