OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ |
6 #define CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ | 6 #define CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 // consistent state. See Refresh for details. | 197 // consistent state. See Refresh for details. |
198 void SetProfiles(std::vector<AutofillProfile>* profiles); | 198 void SetProfiles(std::vector<AutofillProfile>* profiles); |
199 | 199 |
200 // Sets |credit_cards_| to the contents of |credit_cards| and updates the web | 200 // Sets |credit_cards_| to the contents of |credit_cards| and updates the web |
201 // database by adding, updating and removing credit cards. | 201 // database by adding, updating and removing credit cards. |
202 void SetCreditCards(std::vector<CreditCard>* credit_cards); | 202 void SetCreditCards(std::vector<CreditCard>* credit_cards); |
203 | 203 |
204 // Loads the saved profiles from the web database. | 204 // Loads the saved profiles from the web database. |
205 virtual void LoadProfiles(); | 205 virtual void LoadProfiles(); |
206 | 206 |
207 // Loads the auxiliary profiles. Currently Mac only. | 207 // Loads the auxiliary profiles. Currently Mac and Android only. |
208 virtual void LoadAuxiliaryProfiles(); | 208 virtual void LoadAuxiliaryProfiles(); |
209 | 209 |
210 // Loads the saved credit cards from the web database. | 210 // Loads the saved credit cards from the web database. |
211 virtual void LoadCreditCards(); | 211 virtual void LoadCreditCards(); |
212 | 212 |
213 // Receives the loaded profiles from the web data service and stores them in | 213 // Receives the loaded profiles from the web data service and stores them in |
214 // |credit_cards_|. | 214 // |credit_cards_|. |
215 void ReceiveLoadedProfiles(WebDataServiceBase::Handle h, | 215 void ReceiveLoadedProfiles(WebDataServiceBase::Handle h, |
216 const WDTypedResult* result); | 216 const WDTypedResult* result); |
217 | 217 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 // Whether we have already logged the number of profiles this session. | 273 // Whether we have already logged the number of profiles this session. |
274 mutable bool has_logged_profile_count_; | 274 mutable bool has_logged_profile_count_; |
275 | 275 |
276 // Manages registration lifetime for NotificationObserver implementation. | 276 // Manages registration lifetime for NotificationObserver implementation. |
277 content::NotificationRegistrar notification_registrar_; | 277 content::NotificationRegistrar notification_registrar_; |
278 | 278 |
279 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); | 279 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); |
280 }; | 280 }; |
281 | 281 |
282 #endif // CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ | 282 #endif // CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ |
OLD | NEW |