#include "chrome/browser/policy/messaging_layer/storage_selector/storage_selector.h"
#include <string_view>
#include <utility>
#include "base/files/file_path.h"
#include "base/memory/scoped_refptr.h"
#include "base/path_service.h"
#include "base/types/expected.h"
#include "chrome/browser/policy/messaging_layer/upload/upload_client.h"
#include "chrome/browser/policy/messaging_layer/util/upload_declarations.h"
#include "components/reporting/compression/compression_module.h"
#include "components/reporting/encryption/encryption_module.h"
#include "components/reporting/storage/storage_configuration.h"
#include "components/reporting/storage/storage_module.h"
#include "components/reporting/storage/storage_module_interface.h"
#include "components/reporting/util/statusor.h"
namespace reporting {
bool StorageSelector::is_uploader_required() { … }
bool StorageSelector::is_use_missive() { … }
void StorageSelector::CreateLocalStorageModule(
const base::FilePath& local_reporting_path,
std::string_view verification_key,
CompressionInformation::CompressionAlgorithm compression_algorithm,
UploaderInterface::AsyncStartUploaderCb async_start_upload_cb,
base::OnceCallback<void(StatusOr<scoped_refptr<StorageModuleInterface>>)>
cb) { … }
ReportSuccessfulUploadCallback
StorageSelector::GetLocalReportSuccessfulUploadCb(
scoped_refptr<StorageModuleInterface> storage_module) { … }
EncryptionKeyAttachedCallback StorageSelector::GetLocalEncryptionKeyAttachedCb(
scoped_refptr<StorageModuleInterface> storage_module) { … }
}