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

Unified Diff: chrome/browser/autofill/autofill_profile.h

Issue 2818033: AutoFill: Aggregate profile data. Remove the AutoFill InfoBar. (Closed)
Patch Set: Comment. Created 10 years, 6 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
« no previous file with comments | « chrome/browser/autofill/autofill_manager_unittest.cc ('k') | chrome/browser/autofill/autofill_profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_profile.h
diff --git a/chrome/browser/autofill/autofill_profile.h b/chrome/browser/autofill/autofill_profile.h
index 2dbcd2f32d05066df2453ee70ee299265290aa3b..189bc5517dce27715a509084dfe3a80ec8759e1f 100644
--- a/chrome/browser/autofill/autofill_profile.h
+++ b/chrome/browser/autofill/autofill_profile.h
@@ -29,6 +29,7 @@ class AutoFillProfile : public FormGroup {
// FormGroup implementation:
virtual void GetPossibleFieldTypes(const string16& text,
FieldTypeSet* possible_types) const;
+ virtual void GetAvailableFieldTypes(FieldTypeSet* available_types) const;
virtual string16 GetFieldText(const AutoFillType& type) const;
// Returns true if the info matches the profile data corresponding to type.
// If the type is UNKNOWN_TYPE then info will be matched against all of the
@@ -45,6 +46,17 @@ class AutoFillProfile : public FormGroup {
void set_unique_id(int id) { unique_id_ = id; }
int unique_id() const { return unique_id_; }
+ // Returns true if the data in this profile is a subset of the data in
+ // |profile|.
+ bool IsSubsetOf(const AutoFillProfile& profile) const;
+
+ // Returns true if the values of the intersection of the available field types
+ // are equal. If the intersection is empty, the method returns false.
+ bool IntersectionOfTypesHasEqualValues(const AutoFillProfile& profile) const;
+
+ // Merges the profile data in |profile| with this profile.
+ void MergeWith(const AutoFillProfile& profile);
+
// Profile summary string for UI.
// Constructs a summary string based on NAME_FIRST, NAME_LAST, and
// ADDRESS_HOME_LINE1 fields of the profile. The summary string is of the
« no previous file with comments | « chrome/browser/autofill/autofill_manager_unittest.cc ('k') | chrome/browser/autofill/autofill_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698