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

Side by Side Diff: components/autofill/core/browser/form_structure.h

Issue 1670763006: Autofill server-side heuristics for 2 fields password form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 bool has_author_specified_sections() { 201 bool has_author_specified_sections() {
202 return has_author_specified_sections_; 202 return has_author_specified_sections_;
203 } 203 }
204 204
205 void set_upload_required(UploadRequired required) { 205 void set_upload_required(UploadRequired required) {
206 upload_required_ = required; 206 upload_required_ = required;
207 } 207 }
208 UploadRequired upload_required() const { return upload_required_; } 208 UploadRequired upload_required() const { return upload_required_; }
209 209
210 bool all_fields_are_passwords() const { return all_fields_are_passwords_; }
211
210 // Returns a FormData containing the data this form structure knows about. 212 // Returns a FormData containing the data this form structure knows about.
211 FormData ToFormData() const; 213 FormData ToFormData() const;
212 214
213 bool operator==(const FormData& form) const; 215 bool operator==(const FormData& form) const;
214 bool operator!=(const FormData& form) const; 216 bool operator!=(const FormData& form) const;
215 217
216 private: 218 private:
217 friend class FormStructureTest; 219 friend class FormStructureTest;
218 FRIEND_TEST_ALL_PREFIXES(AutofillDownloadTest, QueryAndUploadTest); 220 FRIEND_TEST_ALL_PREFIXES(AutofillDownloadTest, QueryAndUploadTest);
219 FRIEND_TEST_ALL_PREFIXES(FormStructureTest, FindLongestCommonPrefix); 221 FRIEND_TEST_ALL_PREFIXES(FormStructureTest, FindLongestCommonPrefix);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 299
298 // True if the form contains at least one password field. 300 // True if the form contains at least one password field.
299 bool has_password_field_; 301 bool has_password_field_;
300 302
301 // True if the form is a <form>. 303 // True if the form is a <form>.
302 bool is_form_tag_; 304 bool is_form_tag_;
303 305
304 // True if the form is made of unowned fields in a non checkout flow. 306 // True if the form is made of unowned fields in a non checkout flow.
305 bool is_formless_checkout_; 307 bool is_formless_checkout_;
306 308
309 // True if all form fields are password fields.
310 bool all_fields_are_passwords_;
311
307 DISALLOW_COPY_AND_ASSIGN(FormStructure); 312 DISALLOW_COPY_AND_ASSIGN(FormStructure);
308 }; 313 };
309 314
310 } // namespace autofill 315 } // namespace autofill
311 316
312 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_ 317 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_manager_unittest.cc ('k') | components/autofill/core/browser/form_structure.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698