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

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

Issue 2773433002: Log observations of explicit UPI-VPA autocomplete hints. (Closed)
Patch Set: fix a nit Created 3 years, 8 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 <memory> 10 #include <memory>
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 std::vector<std::unique_ptr<AutofillField>>::const_iterator end() const { 195 std::vector<std::unique_ptr<AutofillField>>::const_iterator end() const {
196 return fields_.end(); 196 return fields_.end();
197 } 197 }
198 198
199 const base::string16& form_name() const { return form_name_; } 199 const base::string16& form_name() const { return form_name_; }
200 200
201 const GURL& source_url() const { return source_url_; } 201 const GURL& source_url() const { return source_url_; }
202 202
203 const GURL& target_url() const { return target_url_; } 203 const GURL& target_url() const { return target_url_; }
204 204
205 bool has_author_specified_types() { return has_author_specified_types_; } 205 bool has_author_specified_types() const {
206 return has_author_specified_types_;
207 }
206 208
207 bool has_author_specified_sections() { 209 bool has_author_specified_sections() const {
208 return has_author_specified_sections_; 210 return has_author_specified_sections_;
209 } 211 }
210 212
213 bool has_author_specified_upi_vpa_hint() const {
214 return has_author_specified_upi_vpa_hint_;
215 }
216
211 void set_upload_required(UploadRequired required) { 217 void set_upload_required(UploadRequired required) {
212 upload_required_ = required; 218 upload_required_ = required;
213 } 219 }
214 UploadRequired upload_required() const { return upload_required_; } 220 UploadRequired upload_required() const { return upload_required_; }
215 221
216 bool all_fields_are_passwords() const { return all_fields_are_passwords_; } 222 bool all_fields_are_passwords() const { return all_fields_are_passwords_; }
217 223
218 FormSignature form_signature() const { return form_signature_; } 224 FormSignature form_signature() const { return form_signature_; }
219 225
220 // Returns a FormData containing the data this form structure knows about. 226 // Returns a FormData containing the data this form structure knows about.
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 UploadRequired upload_required_; 292 UploadRequired upload_required_;
287 293
288 // Whether the form includes any field types explicitly specified by the site 294 // Whether the form includes any field types explicitly specified by the site
289 // author, via the |autocompletetype| attribute. 295 // author, via the |autocompletetype| attribute.
290 bool has_author_specified_types_; 296 bool has_author_specified_types_;
291 297
292 // Whether the form includes any sections explicitly specified by the site 298 // Whether the form includes any sections explicitly specified by the site
293 // author, via the autocomplete attribute. 299 // author, via the autocomplete attribute.
294 bool has_author_specified_sections_; 300 bool has_author_specified_sections_;
295 301
302 // Whether the form includes a field that explicitly sets it autocomplete
303 // type to "upi-vpa".
304 bool has_author_specified_upi_vpa_hint_;
305
296 // Whether the form was parsed for autocomplete attribute, thus assigning 306 // Whether the form was parsed for autocomplete attribute, thus assigning
297 // the real values of |has_author_specified_types_| and 307 // the real values of |has_author_specified_types_| and
298 // |has_author_specified_sections_|. 308 // |has_author_specified_sections_|.
299 bool was_parsed_for_autocomplete_attributes_; 309 bool was_parsed_for_autocomplete_attributes_;
300 310
301 // True if the form contains at least one password field. 311 // True if the form contains at least one password field.
302 bool has_password_field_; 312 bool has_password_field_;
303 313
304 // True if the form is a <form>. 314 // True if the form is a <form>.
305 bool is_form_tag_; 315 bool is_form_tag_;
306 316
307 // True if the form is made of unowned fields in a non checkout flow. 317 // True if the form is made of unowned fields in a non checkout flow.
308 bool is_formless_checkout_; 318 bool is_formless_checkout_;
309 319
310 // True if all form fields are password fields. 320 // True if all form fields are password fields.
311 bool all_fields_are_passwords_; 321 bool all_fields_are_passwords_;
312 322
313 // The unique signature for this form, composed of the target url domain, 323 // The unique signature for this form, composed of the target url domain,
314 // the form name, and the form field names in a 64-bit hash. 324 // the form name, and the form field names in a 64-bit hash.
315 FormSignature form_signature_; 325 FormSignature form_signature_;
316 326
317 DISALLOW_COPY_AND_ASSIGN(FormStructure); 327 DISALLOW_COPY_AND_ASSIGN(FormStructure);
318 }; 328 };
319 329
320 } // namespace autofill 330 } // namespace autofill
321 331
322 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_ 332 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/field_types.h ('k') | components/autofill/core/browser/form_structure.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698