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

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

Issue 7602006: Add preliminary Autofill support for the 'autocompletetype' attribute. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Prevent DOS Created 9 years, 4 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_manager.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 d94be92f208efac3efa4daf448d9cd6802120b4e..92e4de9ed1ad13e46c2332cf0341640fdbf0eb60 100644
--- a/chrome/browser/autofill/form_structure.h
+++ b/chrome/browser/autofill/form_structure.h
@@ -96,6 +96,11 @@ class FormStructure {
// |require_method_post| is true.
bool ShouldBeParsed(bool require_method_post) const;
+ // Returns true if we should query the crowdsourcing server to determine this
+ // form's field types. If the form includes author-specified types, this will
+ // return false.
+ bool ShouldBeCrowdsourced() const;
+
// Sets the field types and experiment id to be those set for |cached_form|.
void UpdateFromCache(const FormStructure& cached_form);
@@ -181,6 +186,10 @@ class FormStructure {
// GET or POST.
RequestMethod method_;
+ // Whether the form includes any field types explicitly specified by the site
+ // author, via the |autocompletetype| attribute.
+ bool has_author_specified_types_;
+
DISALLOW_COPY_AND_ASSIGN(FormStructure);
};
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/browser/autofill/form_structure.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698