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

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: Mostly cosmetic fixup Created 8 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
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..2849ba93ab3576139ea51d6f6857b8c9bfd083a5 100644
--- a/chrome/browser/webdata/autofill_table.h
+++ b/chrome/browser/webdata/autofill_table.h
@@ -22,11 +22,9 @@ namespace base {
class Time;
}
-namespace webkit {
-namespace forms {
+namespace content {
struct FormField;
}
-}
// This class manages the various autofill tables within the SQLite database
// passed to the constructor. It expects the following schemas:
@@ -126,13 +124,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<content::FormField>& 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 content::FormField& element,
std::vector<AutofillChange>* changes);
// Retrieves a vector of all values which have been recorded in the autofill
@@ -177,7 +175,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 content::FormField& element,
int64* pair_id,
int* count);
@@ -189,7 +187,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 content::FormField& element,
int64* pair_id);
// Adds a new row to the autofill_dates table.
@@ -325,10 +323,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<content::FormField>& elements,
std::vector<AutofillChange>* changes,
base::Time time);
- bool AddFormFieldValueTime(const webkit::forms::FormField& element,
+ bool AddFormFieldValueTime(const content::FormField& element,
std::vector<AutofillChange>* changes,
base::Time time);

Powered by Google App Engine
This is Rietveld 408576698