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

Unified Diff: chrome/browser/sync/glue/autofill_data_type_controller.h

Issue 7541065: autofill: Refactor PersonalDataManager::Observer into its own header file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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: chrome/browser/sync/glue/autofill_data_type_controller.h
diff --git a/chrome/browser/sync/glue/autofill_data_type_controller.h b/chrome/browser/sync/glue/autofill_data_type_controller.h
index e42ab0d1486b4f2c0b7978c117bc86467600cf60..099fffe03d78ede06bd6cc44683c141c7294b678 100644
--- a/chrome/browser/sync/glue/autofill_data_type_controller.h
+++ b/chrome/browser/sync/glue/autofill_data_type_controller.h
@@ -10,20 +10,22 @@
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
-#include "chrome/browser/autofill/personal_data_manager.h"
+#include "chrome/browser/autofill/personal_data_manager_observer.h"
#include "chrome/browser/sync/glue/non_frontend_data_type_controller.h"
#include "content/common/notification_observer.h"
#include "content/common/notification_registrar.h"
class NotificationDetails;
class NotificationSource;
+class PersonalDataManager;
+class WebDataService;
namespace browser_sync {
// A class that manages the startup and shutdown of autofill sync.
class AutofillDataTypeController : public NonFrontendDataTypeController,
public NotificationObserver,
- public PersonalDataManager::Observer {
+ public PersonalDataManagerObserver {
public:
AutofillDataTypeController(ProfileSyncFactory* profile_sync_factory,
Profile* profile);
@@ -38,7 +40,7 @@ class AutofillDataTypeController : public NonFrontendDataTypeController,
const NotificationSource& source,
const NotificationDetails& details);
- // PersonalDataManager::Observer implementation:
+ // PersonalDataManagerObserver implementation:
virtual void OnPersonalDataChanged() OVERRIDE;
protected:
@@ -57,6 +59,7 @@ class AutofillDataTypeController : public NonFrontendDataTypeController,
// Getters and setters
PersonalDataManager* personal_data() const;
WebDataService* web_data_service() const;
+
private:
PersonalDataManager* personal_data_;
scoped_refptr<WebDataService> web_data_service_;
« no previous file with comments | « chrome/browser/autofill/personal_data_manager_unittest.cc ('k') | chrome/browser/sync/glue/autofill_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698