Home | History | Annotate | Download | only in browser

Lines Matching refs:form_structure

33 #include "components/autofill/core/browser/form_structure.h"
102 // Precondition: |form_structure| and |form| should correspond to the same
105 bool SectionIsAutofilled(const FormStructure& form_structure,
108 DCHECK_EQ(form_structure.field_count(), form.fields.size());
109 for (size_t i = 0; i < form_structure.field_count(); ++i) {
110 if (form_structure.field(i)->section() == section &&
290 FormStructure* form_structure = NULL;
292 if (!GetCachedFormAndField(form, field, &form_structure, &autofill_field))
407 FormStructure* form_structure = NULL;
409 if (!GetCachedFormAndField(form, field, &form_structure, &autofill_field))
450 FormStructure* form_structure = NULL;
454 GetCachedFormAndField(form, field, &form_structure, &autofill_field) &&
456 form_structure->IsAutofillable(false)) {
464 form_structure, field, type, &values, &labels, &icons, &unique_ids);
476 if (!form_structure->IsAutofillable(true))
478 else if (is_filling_credit_card && !FormIsHTTPS(*form_structure))
487 SectionIsAutofilled(*form_structure, form,
534 FormStructure* form_structure = NULL;
544 !GetCachedFormAndField(form, field, &form_structure, &autofill_field))
547 DCHECK(form_structure);
560 if (SectionIsAutofilled(*form_structure, form, autofill_field->section())) {
590 DCHECK_EQ(form_structure->field_count(), form.fields.size());
591 for (size_t i = 0; i < form_structure->field_count(); ++i) {
592 if (form_structure->field(i)->section() != autofill_field->section())
595 DCHECK_EQ(*form_structure->field(i), result.fields[i]);
597 const AutofillField* cached_field = form_structure->field(i);
627 form_structure->field(i)->is_autofilled = true;
640 autofilled_form_signatures_.push_front(form_structure->FormSignature());
818 FormStructure form_structure(form);
820 if (!ShouldUploadForm(form_structure))
823 if (!form_structure.ShouldBeCrowdsourced())
831 for (size_t i = 0; i < form_structure.field_count(); ++i) {
832 AutofillField* field = form_structure.field(i);
852 form_structure.set_upload_required(UPLOAD_REQUIRED);
857 return download_manager_->StartUploadRequest(form_structure,
944 FormStructure** form_structure) const {
951 *form_structure = NULL;
956 *form_structure = *iter;
967 if (!(*form_structure))
975 FormStructure** form_structure,
980 if (!FindCachedForm(form, form_structure) &&
987 if (!UpdateCachedForm(form, *form_structure, form_structure))
991 if (!(*form_structure)->autofill_count())
997 (*form_structure)->begin();
998 iter != (*form_structure)->end(); ++iter) {
1107 scoped_ptr<FormStructure> form_structure(new FormStructure(*iter));
1108 if (!form_structure->ShouldBeParsed(false))
1111 form_structure->DetermineHeuristicTypes(*metric_logger_);
1115 if (form_structure->ShouldBeCrowdsourced())
1116 form_structures_.push_back(form_structure.release());
1118 non_queryable_forms.push_back(form_structure.release());