Chromium Code Reviews| Index: components/autofill/core/browser/form_structure.h |
| diff --git a/components/autofill/core/browser/form_structure.h b/components/autofill/core/browser/form_structure.h |
| index 6382c20a715b6f98a6629d6139dcb38bf39e5499..56151475b04ec753b24ee751f1541dece528dd55 100644 |
| --- a/components/autofill/core/browser/form_structure.h |
| +++ b/components/autofill/core/browser/form_structure.h |
| @@ -8,6 +8,7 @@ |
| #include <string> |
| #include <vector> |
| +#include "base/callback.h" |
| #include "base/gtest_prod_util.h" |
| #include "base/memory/scoped_ptr.h" |
| #include "base/memory/scoped_vector.h" |
|
Dan Beam
2014/01/27 19:37:50
nit: #include "base/strings/string16.h"
|
| @@ -136,6 +137,19 @@ class FormStructure { |
| void ParseFieldTypesFromAutocompleteAttributes(bool* found_types, |
| bool* found_sections); |
| + // Determines whether |type| and |field| match. |
| + typedef base::Callback<bool(ServerFieldType type, |
| + const AutofillField& field)> |
| + InputFieldComparator; |
| + |
| + // Fills in |fields_| that match |types| (via |matches|) with info from |
| + // |get_info|. |
| + bool FillFields( |
| + const std::vector<ServerFieldType>& types, |
| + const InputFieldComparator& matches, |
| + const base::Callback<base::string16(const AutofillType&)>& get_info, |
| + const std::string& app_locale); |
| + |
| const AutofillField* field(size_t index) const; |
| AutofillField* field(size_t index); |
| size_t field_count() const; |