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

Unified Diff: chrome/browser/autofill/form_structure.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
« no previous file with comments | « chrome/browser/autofill/credit_card_field_unittest.cc ('k') | chrome/browser/autofill/form_structure.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/form_structure.h
diff --git a/chrome/browser/autofill/form_structure.h b/chrome/browser/autofill/form_structure.h
index 68223a830f03c27f0e0342843b8b87d696d738cc..fba3c1f5124b2610453bb4c8951dac659ce1336a 100644
--- a/chrome/browser/autofill/form_structure.h
+++ b/chrome/browser/autofill/form_structure.h
@@ -15,6 +15,8 @@
#include "chrome/browser/autofill/field_types.h"
#include "googleurl/src/gurl.h"
+struct FormData;
+struct FormDataPredictions;
enum RequestMethod {
GET,
@@ -37,18 +39,11 @@ namespace buzz {
class XmlElement;
}
-namespace webkit {
-namespace forms {
-struct FormData;
-struct FormDataPredictions;
-}
-}
-
// FormStructure stores a single HTML form together with the values entered
// in the fields along with additional information needed by Autofill.
class FormStructure {
public:
- explicit FormStructure(const webkit::forms::FormData& form);
+ explicit FormStructure(const FormData& form);
virtual ~FormStructure();
// Runs several heuristics against the form fields to determine their possible
@@ -79,7 +74,7 @@ class FormStructure {
// fields' predicted types.
static void GetFieldTypePredictions(
const std::vector<FormStructure*>& form_structures,
- std::vector<webkit::forms::FormDataPredictions>* forms);
+ std::vector<FormDataPredictions>* forms);
// The unique signature for this form, composed of the target url domain,
// the form name, and the form field names in a 64-bit hash.
@@ -140,8 +135,8 @@ class FormStructure {
virtual std::string server_experiment_id() const;
- bool operator==(const webkit::forms::FormData& form) const;
- bool operator!=(const webkit::forms::FormData& form) const;
+ bool operator==(const FormData& form) const;
+ bool operator!=(const FormData& form) const;
private:
friend class FormStructureTest;
« no previous file with comments | « chrome/browser/autofill/credit_card_field_unittest.cc ('k') | chrome/browser/autofill/form_structure.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698