#include "components/policy/core/common/cloud/policy_invalidation_util.h"
#include "base/strings/string_util.h"
#include "components/invalidation/public/invalidation.h"
#include "components/policy/proto/device_management_backend.pb.h"
namespace policy {
namespace {
constexpr char kFcmPolicyPublicTopicPrefix[] = …;
}
bool IsPublicInvalidationTopic(const invalidation::Topic& topic) { … }
bool GetCloudPolicyTopicFromPolicy(
const enterprise_management::PolicyData& policy,
invalidation::Topic* topic) { … }
bool GetRemoteCommandTopicFromPolicy(
const enterprise_management::PolicyData& policy,
invalidation::Topic* topic) { … }
bool IsInvalidationExpired(const invalidation::Invalidation& invalidation,
const base::Time& last_fetch_time,
const base::Time& current_time) { … }
PolicyInvalidationType GetInvalidationMetric(bool is_missing_payload,
bool is_expired) { … }
}