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

Unified Diff: chrome/common/importer/importer_autofill_form_data_entry.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 (add test case for non-ASCII characters) Created 6 years, 4 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
Index: chrome/common/importer/importer_autofill_form_data_entry.h
diff --git a/chrome/common/importer/importer_autofill_form_data_entry.h b/chrome/common/importer/importer_autofill_form_data_entry.h
new file mode 100644
index 0000000000000000000000000000000000000000..a76c2887b77d4d27b810329e4cd19206a6a8f1d6
--- /dev/null
+++ b/chrome/common/importer/importer_autofill_form_data_entry.h
@@ -0,0 +1,34 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_IMPORTER_IMPORTER_AUTOFILL_FORM_DATA_ENTRY_H_
+#define CHROME_COMMON_IMPORTER_IMPORTER_AUTOFILL_FORM_DATA_ENTRY_H_
+
+#include "base/strings/string16.h"
+#include "base/time/time.h"
+
+// Used as the target for importing form history from other browsers' profiles
+// in the utility process.
+struct ImporterAutofillFormDataEntry {
+ public:
Tom Sepez 2014/08/27 23:10:21 nit: public: is redundant for struct.
Nikhil 2014/08/28 06:54:59 Done.
+ ImporterAutofillFormDataEntry();
+ ~ImporterAutofillFormDataEntry();
+
+ // Name of input element.
+ base::string16 name;
+
+ // Value of input element.
+ base::string16 value;
+
+ // Number of times this name-value pair has been used.
+ int times_used;
+
+ // The date of the first time when this name-value pair was used.
+ base::Time first_used;
+
+ // The date of the last time when this name-value pair was used.
+ base::Time last_used;
+};
+
+#endif // CHROME_COMMON_IMPORTER_IMPORTER_AUTOFILL_FORM_DATA_ENTRY_H_

Powered by Google App Engine
This is Rietveld 408576698