diff options
Diffstat (limited to 'chrome/browser/autofill/personal_data_manager.h')
-rw-r--r-- | chrome/browser/autofill/personal_data_manager.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/chrome/browser/autofill/personal_data_manager.h b/chrome/browser/autofill/personal_data_manager.h index a5903a9..9b5ac12 100644 --- a/chrome/browser/autofill/personal_data_manager.h +++ b/chrome/browser/autofill/personal_data_manager.h @@ -50,10 +50,10 @@ class PersonalDataManager : public WebDataServiceConsumer, std::vector<CreditCard>* credit_cards); // Sets the listener to be notified of PersonalDataManager events. - void SetObserver(PersonalDataManager::Observer* observer); + virtual void SetObserver(PersonalDataManager::Observer* observer); // Removes |observer| as the observer of this PersonalDataManager. - void RemoveObserver(PersonalDataManager::Observer* observer); + virtual void RemoveObserver(PersonalDataManager::Observer* observer); // If AutoFill is able to determine the field types of a significant number // of field types that contain information in the FormStructures and the user @@ -67,6 +67,14 @@ class PersonalDataManager : public WebDataServiceConsumer, // exist. void SaveImportedFormData(); + // Gets |imported_profile_| and |imported_credit_card_| and returns their + // values in |profile| and |credit_card| parameters respectively. One or + // both may return NULL. The objects returned are owned by the + // PersonalDataManager, so should be considered weak references by caller. + // TODO(dhollowa) Now that we aren't immediately saving the imported form + // data, we should store the profile and CC in the AFM instead of the PDM. + void GetImportedFormData(AutoFillProfile** profile, CreditCard** credit_card); + // Sets |web_profiles_| to the contents of |profiles| and updates the web // database by adding, updating and removing profiles. Sets the unique ID of // newly-added profiles. @@ -102,8 +110,10 @@ class PersonalDataManager : public WebDataServiceConsumer, // card information, respectively. |profiles()| returns both web and // auxiliary profiles. |web_profiles()| returns only web profiles. const std::vector<AutoFillProfile*>& profiles(); - const std::vector<AutoFillProfile*>& web_profiles(); - const std::vector<CreditCard*>& credit_cards() { return credit_cards_.get(); } + virtual const std::vector<AutoFillProfile*>& web_profiles(); + virtual const std::vector<CreditCard*>& credit_cards() { + return credit_cards_.get(); + } // Returns the index of the default profile within the vector returned by // |web_profiles()|, or -1 if there are no profiles. |