Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: chrome/browser/autofill/personal_data_manager.h

Issue 12282004: Added personal_data_manager android implementation for auto-populating auto-fill on android builds … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed assortment of nits Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // consistent state. See Refresh for details. 202 // consistent state. See Refresh for details.
203 void SetProfiles(std::vector<AutofillProfile>* profiles); 203 void SetProfiles(std::vector<AutofillProfile>* profiles);
204 204
205 // Sets |credit_cards_| to the contents of |credit_cards| and updates the web 205 // Sets |credit_cards_| to the contents of |credit_cards| and updates the web
206 // database by adding, updating and removing credit cards. 206 // database by adding, updating and removing credit cards.
207 void SetCreditCards(std::vector<CreditCard>* credit_cards); 207 void SetCreditCards(std::vector<CreditCard>* credit_cards);
208 208
209 // Loads the saved profiles from the web database. 209 // Loads the saved profiles from the web database.
210 virtual void LoadProfiles(); 210 virtual void LoadProfiles();
211 211
212 // Loads the auxiliary profiles. Currently Mac only. 212 // Loads the auxiliary profiles. Currently Mac and Android only.
213 virtual void LoadAuxiliaryProfiles(); 213 virtual void LoadAuxiliaryProfiles();
214 214
215 // Loads the saved credit cards from the web database. 215 // Loads the saved credit cards from the web database.
216 virtual void LoadCreditCards(); 216 virtual void LoadCreditCards();
217 217
218 // Receives the loaded profiles from the web data service and stores them in 218 // Receives the loaded profiles from the web data service and stores them in
219 // |credit_cards_|. 219 // |credit_cards_|.
220 void ReceiveLoadedProfiles(WebDataServiceBase::Handle h, 220 void ReceiveLoadedProfiles(WebDataServiceBase::Handle h,
221 const WDTypedResult* result); 221 const WDTypedResult* result);
222 222
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 // Whether we have already logged the number of profiles this session. 281 // Whether we have already logged the number of profiles this session.
282 mutable bool has_logged_profile_count_; 282 mutable bool has_logged_profile_count_;
283 283
284 // Manages registration lifetime for NotificationObserver implementation. 284 // Manages registration lifetime for NotificationObserver implementation.
285 content::NotificationRegistrar notification_registrar_; 285 content::NotificationRegistrar notification_registrar_;
286 286
287 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); 287 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
288 }; 288 };
289 289
290 #endif // CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ 290 #endif // CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698