| 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);
|
|
|
|
|