#include "chrome/utility/importer/profile_import_impl.h"
#include <memory>
#include <string>
#include <utility>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/ref_counted.h"
#include "base/task/single_thread_task_runner.h"
#include "base/threading/thread.h"
#include "build/build_config.h"
#include "chrome/common/importer/profile_import.mojom.h"
#include "chrome/utility/importer/external_process_importer_bridge.h"
#include "chrome/utility/importer/importer.h"
#include "chrome/utility/importer/importer_creator.h"
#include "content/public/utility/utility_thread.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "mojo/public/cpp/bindings/shared_remote.h"
ProfileImportImpl::ProfileImportImpl(
mojo::PendingReceiver<chrome::mojom::ProfileImport> receiver)
: … { … }
ProfileImportImpl::~ProfileImportImpl() = default;
void ProfileImportImpl::StartImport(
const importer::SourceProfile& source_profile,
uint16_t items,
const base::flat_map<uint32_t, std::string>& localized_strings,
mojo::PendingRemote<chrome::mojom::ProfileImportObserver> observer) { … }
void ProfileImportImpl::CancelImport() { … }
void ProfileImportImpl::ReportImportItemFinished(importer::ImportItem item) { … }
void ProfileImportImpl::ImporterCleanup() { … }