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

Unified Diff: chrome/browser/autofill/form_structure.h

Issue 3226001: Detecting form locale (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Unit test for top websites Created 10 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
« no previous file with comments | « chrome/browser/autofill/autofill_xml_parser.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 bb583dcb9e2624b85b40d83ca6f15330a6691b70..6163b7b58064d210786a987ac6d78bdc33dae610 100644
--- a/chrome/browser/autofill/form_structure.h
+++ b/chrome/browser/autofill/form_structure.h
@@ -102,6 +102,9 @@ class FormStructure {
}
const GURL& source_url() const { return source_url_; }
+ const GURL& target_url() const { return target_url_; }
+ const std::string& locale() const { return locale_; }
+ void set_locale(const std::string& locale) { locale_ = locale; }
bool operator==(const webkit_glue::FormData& form) const;
bool operator!=(const webkit_glue::FormData& form) const;
@@ -133,6 +136,9 @@ class FormStructure {
// The target URL.
GURL target_url_;
+ // The form's locale.
+ std::string locale_;
+
bool has_credit_card_field_;
bool has_autofillable_field_;
bool has_password_fields_;
« no previous file with comments | « chrome/browser/autofill/autofill_xml_parser.cc ('k') | chrome/browser/autofill/form_structure.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698