#include "components/reporting/encryption/encryption_module_interface.h"
#include <string_view>
#include <utility>
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/time/time.h"
#include "base/types/expected.h"
#include "components/reporting/proto/synced/record.pb.h"
#include "components/reporting/util/status.h"
#include "components/reporting/util/statusor.h"
namespace reporting {
BASE_FEATURE(…);
bool EncryptionModuleInterface::is_enabled() { … }
EncryptionModuleInterface::EncryptionModuleInterface(
base::TimeDelta renew_encryption_key_period)
: … { … }
EncryptionModuleInterface::~EncryptionModuleInterface() = default;
void EncryptionModuleInterface::EncryptRecord(
std::string_view record,
base::OnceCallback<void(StatusOr<EncryptedRecord>)> cb) const { … }
void EncryptionModuleInterface::UpdateAsymmetricKey(
std::string_view new_public_key,
PublicKeyId new_public_key_id,
base::OnceCallback<void(Status)> response_cb) { … }
bool EncryptionModuleInterface::has_encryption_key() const { … }
bool EncryptionModuleInterface::need_encryption_key() const { … }
}