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

Unified Diff: components/autofill/core/browser/form_structure.h

Issue 137723008: Remove DataModelWrapper from android build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 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
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..578c4131f12f0b5c071db009b0456ebfb2c92b9d 100644
--- a/components/autofill/core/browser/form_structure.h
+++ b/components/autofill/core/browser/form_structure.h
@@ -8,9 +8,11 @@
#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"
+#include "base/strings/string16.h"
#include "components/autofill/core/browser/autofill_field.h"
#include "components/autofill/core/browser/autofill_type.h"
#include "components/autofill/core/browser/field_types.h"
@@ -136,6 +138,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;
« no previous file with comments | « components/autofill/content/browser/wallet/full_wallet_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