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

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 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698