#include "chrome/browser/enterprise/connectors/device_trust/signals/decorators/common/context_signals_decorator.h"
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/notreached.h"
#include "chrome/browser/enterprise/connectors/device_trust/signals/decorators/common/metrics_utils.h"
#include "chrome/browser/enterprise/connectors/device_trust/signals/decorators/common/signals_utils.h"
#include "chrome/browser/enterprise/signals/context_info_fetcher.h"
#include "components/device_signals/core/common/signals_constants.h"
namespace enterprise_connectors {
namespace {
constexpr char kLatencyHistogramVariant[] = …;
enum class PasswordProtectionTrigger { … };
PasswordProtectionTrigger ConvertPasswordProtectionTrigger(
const std::optional<safe_browsing::PasswordProtectionTrigger>&
policy_value) { … }
}
ContextSignalsDecorator::ContextSignalsDecorator(
std::unique_ptr<enterprise_signals::ContextInfoFetcher>
context_info_fetcher)
: … { … }
ContextSignalsDecorator::~ContextSignalsDecorator() = default;
void ContextSignalsDecorator::Decorate(base::Value::Dict& signals,
base::OnceClosure done_closure) { … }
void ContextSignalsDecorator::OnSignalsFetched(
base::Value::Dict& signals,
base::TimeTicks start_time,
base::OnceClosure done_closure,
enterprise_signals::ContextInfo context_info) { … }
}