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

Unified Diff: chrome/browser/webdata/autofill_table.h

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 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/browser/webdata/autofill_table.h
diff --git a/chrome/browser/webdata/autofill_table.h b/chrome/browser/webdata/autofill_table.h
index 74e94ab618b7b3d9a901a9226b89011644ca1405..22196d1c23f67c6a1443e73cc7657f116bb4996c 100644
--- a/chrome/browser/webdata/autofill_table.h
+++ b/chrome/browser/webdata/autofill_table.h
@@ -18,16 +18,12 @@ class AutofillProfile;
class AutofillTableTest;
class CreditCard;
+struct FormFieldData;
+
namespace base {
class Time;
}
-namespace webkit {
-namespace forms {
-struct FormField;
-}
-}
-
// This class manages the various autofill tables within the SQLite database
// passed to the constructor. It expects the following schemas:
//
@@ -126,13 +122,13 @@ class AutofillTable : public WebDatabaseTable {
// Records the form elements in |elements| in the database in the
// autofill table. A list of all added and updated autofill entries
// is returned in the changes out parameter.
- bool AddFormFieldValues(const std::vector<webkit::forms::FormField>& elements,
+ bool AddFormFieldValues(const std::vector<FormFieldData>& elements,
std::vector<AutofillChange>* changes);
// Records a single form element in the database in the autofill table. A list
// of all added and updated autofill entries is returned in the changes out
// parameter.
- bool AddFormFieldValue(const webkit::forms::FormField& element,
+ bool AddFormFieldValue(const FormFieldData& element,
std::vector<AutofillChange>* changes);
// Retrieves a vector of all values which have been recorded in the autofill
@@ -177,7 +173,7 @@ class AutofillTable : public WebDatabaseTable {
// Gets the pair_id and count entries from name and value specified in
// |element|. Sets *pair_id and *count to 0 if there is no such row in
// the table.
- bool GetIDAndCountOfFormElement(const webkit::forms::FormField& element,
+ bool GetIDAndCountOfFormElement(const FormFieldData& element,
int64* pair_id,
int* count);
@@ -189,7 +185,7 @@ class AutofillTable : public WebDatabaseTable {
// Adds a new row to the autofill table with name and value given in
// |element|. Sets *pair_id to the pair_id of the new row.
- bool InsertFormElement(const webkit::forms::FormField& element,
+ bool InsertFormElement(const FormFieldData& element,
int64* pair_id);
// Adds a new row to the autofill_dates table.
@@ -325,10 +321,10 @@ class AutofillTable : public WebDatabaseTable {
// Methods for adding autofill entries at a specified time. For
// testing only.
bool AddFormFieldValuesTime(
- const std::vector<webkit::forms::FormField>& elements,
+ const std::vector<FormFieldData>& elements,
std::vector<AutofillChange>* changes,
base::Time time);
- bool AddFormFieldValueTime(const webkit::forms::FormField& element,
+ bool AddFormFieldValueTime(const FormFieldData& element,
std::vector<AutofillChange>* changes,
base::Time time);
« no previous file with comments | « chrome/browser/ui/webui/options/password_manager_handler.cc ('k') | chrome/browser/webdata/autofill_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698