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

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

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Really fix. And rebase Created 9 years, 7 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/frontend_data_type_controller.h
diff --git a/chrome/browser/sync/glue/frontend_data_type_controller.h b/chrome/browser/sync/glue/frontend_data_type_controller.h
index 6a2d86313abf9ce7c5d08a33558676eeefe43b74..86c3e602270080dc7f99cc03d0361c95af7d6c52 100644
--- a/chrome/browser/sync/glue/frontend_data_type_controller.h
+++ b/chrome/browser/sync/glue/frontend_data_type_controller.h
@@ -55,6 +55,7 @@ class FrontendDataTypeController : public DataTypeController {
// UnrecoverableErrorHandler interface.
virtual void OnUnrecoverableError(const tracked_objects::Location& from_here,
const std::string& message);
+
protected:
// For testing only.
FrontendDataTypeController();
@@ -100,6 +101,11 @@ class FrontendDataTypeController : public DataTypeController {
// Record causes of start failure.
virtual void RecordStartFailure(StartResult result) = 0;
+ virtual AssociatorInterface* model_associator() const;
+ virtual void set_model_associator(AssociatorInterface* associator);
+ virtual ChangeProcessor* change_processor() const;
+ virtual void set_change_processor(ChangeProcessor* processor);
+
ProfileSyncFactory* const profile_sync_factory_;
Profile* const profile_;
ProfileSyncService* const sync_service_;
@@ -107,6 +113,8 @@ class FrontendDataTypeController : public DataTypeController {
State state_;
scoped_ptr<StartCallback> start_callback_;
+ // TODO(sync): transition all datatypes to SyncableService and deprecate
+ // AssociatorInterface.
scoped_ptr<AssociatorInterface> model_associator_;
scoped_ptr<ChangeProcessor> change_processor_;
« no previous file with comments | « chrome/browser/sync/glue/extension_data_type_controller.cc ('k') | chrome/browser/sync/glue/frontend_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698