#include "chrome/browser/profiles/batch_upload/batch_upload_controller.h"
#include <algorithm>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "chrome/browser/profiles/batch_upload/batch_upload_data_provider.h"
#include "chrome/browser/profiles/batch_upload/batch_upload_delegate.h"
namespace {
std::vector<raw_ptr<const BatchUploadDataProvider>>
GetOrderedListOfDataProvider(
const base::flat_map<BatchUploadDataType,
std::unique_ptr<BatchUploadDataProvider>>&
data_providers_map) { … }
}
BatchUploadController::BatchUploadController(
base::flat_map<BatchUploadDataType,
std::unique_ptr<BatchUploadDataProvider>> data_providers)
: … { … }
BatchUploadController::~BatchUploadController() = default;
bool BatchUploadController::ShowDialog(
BatchUploadDelegate& delegate,
Browser* browser,
base::OnceCallback<void(bool)> done_callback) { … }
void BatchUploadController::MoveItemsToAccountStorage(
const base::flat_map<BatchUploadDataType,
std::vector<BatchUploadDataItemModel::Id>>&
items_to_move) { … }
bool BatchUploadController::HasLocalDataToShow() const { … }