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/personal_data_manager.h

Issue 6931029: Set datapresent string to contain precisely those field types available in stored Autofill data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Signed and delivered Created 9 years, 7 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: chrome/browser/autofill/personal_data_manager.h
diff --git a/chrome/browser/autofill/personal_data_manager.h b/chrome/browser/autofill/personal_data_manager.h
index d98420c81ec65eda2ef2e449853889d1f6c465af..ee76063ec089643654eaafb5b950cf163aad3764 100644
--- a/chrome/browser/autofill/personal_data_manager.h
+++ b/chrome/browser/autofill/personal_data_manager.h
@@ -121,7 +121,10 @@ class PersonalDataManager
// Gets the possible field types for the given text, determined by matching
// the text with all known personal information and returning matching types.
void GetPossibleFieldTypes(const string16& text,
- FieldTypeSet* possible_types);
+ FieldTypeSet* possible_types) const;
+
+ // Gets the field types availabe in the stored address and credit card data.
+ void GetAvailableFieldTypes(FieldTypeSet* available_types) const;
// Returns true if the credit card information is stored with a password.
bool HasPassword();
@@ -133,9 +136,9 @@ class PersonalDataManager
// lifetime is until the web database is updated with new profile and credit
// card information, respectively. |profiles()| returns both web and
// auxiliary profiles. |web_profiles()| returns only web profiles.
- const std::vector<AutofillProfile*>& profiles();
- virtual const std::vector<AutofillProfile*>& web_profiles();
- virtual const std::vector<CreditCard*>& credit_cards();
+ const std::vector<AutofillProfile*>& profiles() const;
+ virtual const std::vector<AutofillProfile*>& web_profiles() const;
+ virtual const std::vector<CreditCard*>& credit_cards() const;
// Re-loads profiles and credit cards from the WebDatabase asynchronously.
// In the general case, this is a no-op and will re-create the same
@@ -177,7 +180,7 @@ class PersonalDataManager
virtual void LoadProfiles();
// Loads the auxiliary profiles. Currently Mac only.
- void LoadAuxiliaryProfiles();
+ void LoadAuxiliaryProfiles() const;
// Loads the saved credit cards from the web database.
virtual void LoadCreditCards();
@@ -223,11 +226,11 @@ class PersonalDataManager
ScopedVector<AutofillProfile> web_profiles_;
// Auxiliary profiles.
- ScopedVector<AutofillProfile> auxiliary_profiles_;
+ mutable ScopedVector<AutofillProfile> auxiliary_profiles_;
// Storage for combined web and auxiliary profiles. Contents are weak
// references. Lifetime managed by |web_profiles_| and |auxiliary_profiles_|.
- std::vector<AutofillProfile*> profiles_;
+ mutable std::vector<AutofillProfile*> profiles_;
// The loaded credit cards.
ScopedVector<CreditCard> credit_cards_;
« no previous file with comments | « chrome/browser/autofill/form_structure_unittest.cc ('k') | chrome/browser/autofill/personal_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698