#include "components/consent_auditor/consent_auditor_impl.h"
#include <memory>
#include <utility>
#include "components/sync/model/data_type_sync_bridge.h"
#include "components/sync/protocol/user_consent_specifics.pb.h"
#include "components/sync/protocol/user_consent_types.pb.h"
ArcPlayTermsOfServiceConsent;
UserConsentSpecifics;
UserConsentTypes;
namespace consent_auditor {
namespace {
std::unique_ptr<sync_pb::UserConsentSpecifics> CreateUserConsentSpecifics(
const CoreAccountId& account_id,
const std::string& locale,
base::Clock* clock) { … }
}
ConsentAuditorImpl::ConsentAuditorImpl(
std::unique_ptr<ConsentSyncBridge> consent_sync_bridge,
const std::string& app_locale,
base::Clock* clock)
: … { … }
ConsentAuditorImpl::~ConsentAuditorImpl() { … }
void ConsentAuditorImpl::Shutdown() { … }
void ConsentAuditorImpl::RecordArcPlayConsent(
const CoreAccountId& account_id,
const ArcPlayTermsOfServiceConsent& consent) { … }
void ConsentAuditorImpl::RecordArcGoogleLocationServiceConsent(
const CoreAccountId& account_id,
const UserConsentTypes::ArcGoogleLocationServiceConsent& consent) { … }
void ConsentAuditorImpl::RecordArcBackupAndRestoreConsent(
const CoreAccountId& account_id,
const UserConsentTypes::ArcBackupAndRestoreConsent& consent) { … }
void ConsentAuditorImpl::RecordSyncConsent(
const CoreAccountId& account_id,
const UserConsentTypes::SyncConsent& consent) { … }
void ConsentAuditorImpl::RecordAssistantActivityControlConsent(
const CoreAccountId& account_id,
const sync_pb::UserConsentTypes::AssistantActivityControlConsent& consent) { … }
void ConsentAuditorImpl::RecordAccountPasswordsConsent(
const CoreAccountId& account_id,
const sync_pb::UserConsentTypes::AccountPasswordsConsent& consent) { … }
void ConsentAuditorImpl::RecordRecorderSpeakerLabelConsent(
const CoreAccountId& account_id,
const sync_pb::UserConsentTypes::RecorderSpeakerLabelConsent& consent) { … }
base::WeakPtr<syncer::DataTypeControllerDelegate>
ConsentAuditorImpl::GetControllerDelegate() { … }
}