| 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 dcd7bd7a6e88f8dd9dec3635f22aa19f95beff97..2cd73eecb36bfb881b994a1fbe1b5ac3daa38914 100644
|
| --- a/chrome/browser/autofill/personal_data_manager.h
|
| +++ b/chrome/browser/autofill/personal_data_manager.h
|
| @@ -44,6 +44,10 @@ class PersonalDataManager
|
| public ProfileKeyedService,
|
| public content::NotificationObserver {
|
| public:
|
| + // A pair of GUID and variant index. Represents a single FormGroup and a
|
| + // specific data variant.
|
| + typedef std::pair<std::string, size_t> GUIDPair;
|
| +
|
| // WebDataServiceConsumer:
|
| virtual void OnWebDataServiceRequestDone(
|
| WebDataServiceBase::Handle h,
|
| @@ -125,6 +129,20 @@ class PersonalDataManager
|
| virtual const std::vector<AutofillProfile*>& web_profiles() const;
|
| virtual const std::vector<CreditCard*>& credit_cards() const;
|
|
|
| + // Loads profiles that can suggest data for |type|. |field_contents| is the
|
| + // part the user has already typed. |field_is_autofilled| is true if the field
|
| + // has already been autofilled. |other_field_types| represents the rest of
|
| + // form. Identifying info is loaded into the last four outparams.
|
| + void GetProfileSuggestions(
|
| + AutofillFieldType type,
|
| + const string16& field_contents,
|
| + bool field_is_autofilled,
|
| + std::vector<AutofillFieldType> other_field_types,
|
| + std::vector<string16>* labels,
|
| + std::vector<string16>* sub_labels,
|
| + std::vector<string16>* icons,
|
| + std::vector<GUIDPair>* guid_pairs);
|
| +
|
| // 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
|
| // in-memory model as existed prior to the call. If any change occurred to
|
|
|