#include "components/policy/core/common/cloud/machine_level_user_cloud_policy_manager.h"
#include <memory>
#include <string>
#include <utility>
#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_util.h"
#include "components/policy/core/common/cloud/machine_level_user_cloud_policy_store.h"
#include "components/policy/core/common/policy_logger.h"
#include "components/policy/core/common/policy_pref_names.h"
#include "components/prefs/pref_service.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
namespace policy {
namespace {
const base::FilePath::CharType kComponentPolicyCache[] = …);
}
MachineLevelUserCloudPolicyManager::MachineLevelUserCloudPolicyManager(
std::unique_ptr<MachineLevelUserCloudPolicyStore> store,
std::unique_ptr<CloudExternalDataManager> external_data_manager,
const base::FilePath& policy_dir,
const scoped_refptr<base::SequencedTaskRunner>& task_runner,
network::NetworkConnectionTrackerGetter network_connection_tracker_getter)
: … { … }
MachineLevelUserCloudPolicyManager::~MachineLevelUserCloudPolicyManager() { … }
void MachineLevelUserCloudPolicyManager::Connect(
PrefService* local_state,
std::unique_ptr<CloudPolicyClient> client) { … }
void MachineLevelUserCloudPolicyManager::AddClientObserver(
CloudPolicyClient::Observer* observer) { … }
void MachineLevelUserCloudPolicyManager::RemoveClientObserver(
CloudPolicyClient::Observer* observer) { … }
void MachineLevelUserCloudPolicyManager::DisconnectAndRemovePolicy() { … }
void MachineLevelUserCloudPolicyManager::Init(SchemaRegistry* registry) { … }
void MachineLevelUserCloudPolicyManager::Shutdown() { … }
void MachineLevelUserCloudPolicyManager::OnStoreLoaded(
CloudPolicyStore* cloud_policy_store) { … }
}