#include "components/page_image_service/image_service_consent_helper.h"
#include "base/metrics/histogram_functions.h"
#include "components/page_image_service/metrics_util.h"
#include "components/sync/service/sync_service.h"
#include "components/sync/service/sync_service_utils.h"
namespace page_image_service {
namespace {
PageImageServiceConsentStatus ConsentStatusToUmaStatus(
std::optional<bool> consent_status) { … }
}
ImageServiceConsentHelper::ImageServiceConsentHelper(
syncer::SyncService* sync_service,
syncer::DataType data_type)
: … { … }
ImageServiceConsentHelper::~ImageServiceConsentHelper() = default;
void ImageServiceConsentHelper::EnqueueRequest(
base::OnceCallback<void(PageImageServiceConsentStatus)> callback,
mojom::ClientId client_id) { … }
void ImageServiceConsentHelper::OnStateChanged(
syncer::SyncService* sync_service) { … }
void ImageServiceConsentHelper::OnSyncShutdown(
syncer::SyncService* sync_service) { … }
std::optional<bool> ImageServiceConsentHelper::GetConsentStatus() { … }
void ImageServiceConsentHelper::OnTimeoutExpired() { … }
}