#include "components/policy/core/common/cloud/component_cloud_policy_updater.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <string>
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/sequenced_task_runner.h"
#include "components/policy/core/common/cloud/component_cloud_policy_store.h"
#include "components/policy/core/common/cloud/external_policy_data_fetcher.h"
#include "components/policy/core/common/policy_logger.h"
#include "components/policy/proto/chrome_extension_policy.pb.h"
#include "components/policy/proto/device_management_backend.pb.h"
em;
namespace policy {
namespace {
const size_t kPolicyProtoMaxSize = …;
const int64_t kPolicyDataMaxSize = …;
const int64_t kMaxParallelPolicyDataFetches = …;
std::string NamespaceToKey(const PolicyNamespace& ns) { … }
}
ComponentCloudPolicyUpdater::ComponentCloudPolicyUpdater(
scoped_refptr<base::SequencedTaskRunner> task_runner,
std::unique_ptr<ExternalPolicyDataFetcher> external_policy_data_fetcher,
ComponentCloudPolicyStore* store)
: … { … }
ComponentCloudPolicyUpdater::~ComponentCloudPolicyUpdater() { … }
void ComponentCloudPolicyUpdater::UpdateExternalPolicy(
const PolicyNamespace& ns,
std::unique_ptr<em::PolicyFetchResponse> response) { … }
void ComponentCloudPolicyUpdater::CancelUpdate(const PolicyNamespace& ns) { … }
}