diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-01 00:57:33 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-01 00:57:33 +0000 |
commit | cea1d11b9375368e29906255b7f865f78045200b (patch) | |
tree | b8cde41281263b22a948510933ee5e82c6ffa9b9 /chrome/browser/autofill/autofill_profile.h | |
parent | e7c3784d1fb8d5f1862409fe62feab2112b70af0 (diff) | |
download | chromium_src-cea1d11b9375368e29906255b7f865f78045200b.zip chromium_src-cea1d11b9375368e29906255b7f865f78045200b.tar.gz chromium_src-cea1d11b9375368e29906255b7f865f78045200b.tar.bz2 |
AutoFill: Aggregate profile data. Remove the AutoFill InfoBar. Remove more remnants of shipping address and CVV.
BUG=47426,47423
TEST=PersonalDataManager.*
Review URL: http://codereview.chromium.org/2818033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51322 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_profile.h')
-rw-r--r-- | chrome/browser/autofill/autofill_profile.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/autofill/autofill_profile.h b/chrome/browser/autofill/autofill_profile.h index 2dbcd2f..189bc55 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 |