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

Unified Diff: components/autofill/browser/personal_data_manager.h

Issue 13928035: WIP Component build of autofill Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make windows compiling Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/browser/personal_data_manager.h
diff --git a/components/autofill/browser/personal_data_manager.h b/components/autofill/browser/personal_data_manager.h
index 1c25d38ba65d6beb62bffd5d0dfde4f20927bfdd..700c950cae47df3e85c6d8c54fbfa0e8c702feca 100644
--- a/components/autofill/browser/personal_data_manager.h
+++ b/components/autofill/browser/personal_data_manager.h
@@ -40,11 +40,14 @@ void SetCreditCards(int, std::vector<autofill::CreditCard>*);
namespace autofill {
+class AutofillWebDataService;
+
// Handles loading and saving Autofill profile information to the web database.
// This class also stores the profiles loaded from the database for use during
// Autofill.
-class PersonalDataManager : public WebDataServiceConsumer,
- public AutofillWebDataServiceObserverOnUIThread {
+class AUTOFILL_EXPORT PersonalDataManager
+ : public WebDataServiceConsumer,
+ public AutofillWebDataServiceObserverOnUIThread {
public:
// A pair of GUID and variant index. Represents a single FormGroup and a
// specific data variant.
@@ -54,7 +57,8 @@ class PersonalDataManager : public WebDataServiceConsumer,
virtual ~PersonalDataManager();
// Kicks off asynchronous loading of profiles and credit cards.
- void Init(content::BrowserContext* context);
+ void Init(content::BrowserContext* context,
+ AutofillWebDataService* autofill_webdata);
// WebDataServiceConsumer:
virtual void OnWebDataServiceRequestDone(
@@ -277,6 +281,8 @@ class PersonalDataManager : public WebDataServiceConsumer,
private:
std::string app_locale_;
+ scoped_refptr<AutofillWebDataService> autofill_webdata_;
+
// For logging UMA metrics. Overridden by metrics tests.
scoped_ptr<const AutofillMetrics> metric_logger_;

Powered by Google App Engine
This is Rietveld 408576698