Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1531)

Unified Diff: chrome/browser/importer/external_process_importer_client.h

Issue 480953002: Implement "Autofill form data" import for Firefox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback (simplify Read method) Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/importer/external_process_importer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/importer/external_process_importer_client.h
diff --git a/chrome/browser/importer/external_process_importer_client.h b/chrome/browser/importer/external_process_importer_client.h
index 5d54092d38a738fb4a52e980d8971484aded3f66..300f3985b5bad45808ab4f9d8879299a5ac77bff 100644
--- a/chrome/browser/importer/external_process_importer_client.h
+++ b/chrome/browser/importer/external_process_importer_client.h
@@ -13,6 +13,7 @@
#include "base/memory/weak_ptr.h"
#include "base/strings/string16.h"
#include "chrome/browser/history/history_types.h"
+#include "chrome/common/importer/importer_autofill_form_data_entry.h"
#include "chrome/common/importer/importer_data_types.h"
#include "chrome/common/importer/importer_url_row.h"
#include "content/public/browser/browser_thread.h"
@@ -35,6 +36,7 @@ namespace importer {
#if defined(OS_WIN)
struct ImporterIE7PasswordInfo;
#endif
+struct ImporterAutofillFormDataEntry;
struct URLKeywordInfo;
}
@@ -82,6 +84,10 @@ class ExternalProcessImporterClient : public content::UtilityProcessHostClient {
bool unique_on_host_and_path);
void OnFirefoxSearchEngineDataReceived(
const std::vector<std::string> search_engine_data);
+ void OnAutofillFormDataImportStart(
+ size_t total_autofill_form_data_entry_count);
+ void OnAutofillFormDataImportGroup(const std::vector<
+ ImporterAutofillFormDataEntry>& autofill_form_data_entry_group);
#if defined(OS_WIN)
void OnIE7PasswordReceived(
const importer::ImporterIE7PasswordInfo& importer_password_info);
@@ -108,6 +114,7 @@ class ExternalProcessImporterClient : public content::UtilityProcessHostClient {
std::vector<ImporterURLRow> history_rows_;
std::vector<ImportedBookmarkEntry> bookmarks_;
std::vector<ImportedFaviconUsage> favicons_;
+ std::vector<ImporterAutofillFormDataEntry> autofill_form_data_;
// Usually some variation on IDS_BOOKMARK_GROUP_...; the name of the folder
// under which imported bookmarks will be placed.
@@ -122,6 +129,9 @@ class ExternalProcessImporterClient : public content::UtilityProcessHostClient {
// Total number of favicons to import.
size_t total_favicons_count_;
+ // Total number of autofill form data entries to import.
+ size_t total_autofill_form_data_entry_count_;
+
// Notifications received from the ProfileImportProcessHost are passed back
// to process_importer_host_, which calls the ProfileWriter to record the
// import data. When the import process is done, process_importer_host_
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/importer/external_process_importer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698