#include "chrome/browser/profiles/batch_upload/batch_upload_service.h"
#include "base/functional/bind.h"
#include "chrome/browser/profiles/batch_upload/batch_upload_controller.h"
#include "chrome/browser/profiles/batch_upload/batch_upload_data_provider.h"
#include "chrome/browser/profiles/batch_upload/batch_upload_delegate.h"
#include "chrome/browser/ui/browser.h"
namespace {
class DummyBatchUploadDataProvider : public BatchUploadDataProvider { … };
std::unique_ptr<BatchUploadDataProvider> MakeDummyBatchUploadDataProvider(
BatchUploadDataType type) { … }
std::unique_ptr<BatchUploadDataProvider> GetBatchUploadDataProvider(
Profile& profile,
BatchUploadDataType type) { … }
base::flat_map<BatchUploadDataType, std::unique_ptr<BatchUploadDataProvider>>
GetBatchUploadDataProviderMap(Profile& profile) { … }
}
BatchUploadService::BatchUploadService(
Profile& profile,
std::unique_ptr<BatchUploadDelegate> delegate)
: … { … }
BatchUploadService::~BatchUploadService() = default;
bool BatchUploadService::OpenBatchUpload(Browser* browser) { … }
void BatchUploadService::OnBatchUplaodDialogClosed(bool move_requested) { … }
bool BatchUploadService::ShouldShowBatchUploadEntryPointForDataType(
BatchUploadDataType type) { … }