#include "chrome/utility/importer/external_process_importer_bridge.h"
#include <algorithm>
#include <utility>
#include "base/check_op.h"
#include "base/debug/dump_without_crashing.h"
#include "base/functional/bind.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/task/task_runner.h"
#include "build/build_config.h"
#include "chrome/common/importer/imported_bookmark_entry.h"
#include "chrome/common/importer/importer_autofill_form_data_entry.h"
#include "chrome/common/importer/importer_data_types.h"
namespace {
const int kNumBookmarksToSend = …;
const int kNumHistoryRowsToSend = …;
const int kNumFaviconsToSend = …;
const int kNumAutofillFormDataToSend = …;
}
ExternalProcessImporterBridge::ExternalProcessImporterBridge(
const base::flat_map<uint32_t, std::string>& localized_strings,
mojo::SharedRemote<chrome::mojom::ProfileImportObserver> observer)
: … { … }
void ExternalProcessImporterBridge::AddBookmarks(
const std::vector<ImportedBookmarkEntry>& bookmarks,
const std::u16string& first_folder_name) { … }
void ExternalProcessImporterBridge::AddHomePage(const GURL& home_page) { … }
void ExternalProcessImporterBridge::SetFavicons(
const favicon_base::FaviconUsageDataList& favicons) { … }
void ExternalProcessImporterBridge::SetHistoryItems(
const std::vector<ImporterURLRow>& rows,
importer::VisitSource visit_source) { … }
void ExternalProcessImporterBridge::SetKeywords(
const std::vector<importer::SearchEngineInfo>& search_engines,
bool unique_on_host_and_path) { … }
void ExternalProcessImporterBridge::SetPasswordForm(
const importer::ImportedPasswordForm& form) { … }
void ExternalProcessImporterBridge::SetAutofillFormData(
const std::vector<ImporterAutofillFormDataEntry>& entries) { … }
void ExternalProcessImporterBridge::NotifyStarted() { … }
void ExternalProcessImporterBridge::NotifyItemStarted(
importer::ImportItem item) { … }
void ExternalProcessImporterBridge::NotifyItemEnded(importer::ImportItem item) { … }
void ExternalProcessImporterBridge::NotifyEnded() { … }
std::u16string ExternalProcessImporterBridge::GetLocalizedString(
int message_id) { … }
ExternalProcessImporterBridge::~ExternalProcessImporterBridge() { … }