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

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

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the previous fix Created 9 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: chrome/browser/sync/glue/data_type_controller.h
diff --git a/chrome/browser/sync/glue/data_type_controller.h b/chrome/browser/sync/glue/data_type_controller.h
index 31083109093bda94bf4a1108b4f09d3e87c5f87f..b34783cbe38ca86d3d41ab9ccb5e8c969f34c19a 100644
--- a/chrome/browser/sync/glue/data_type_controller.h
+++ b/chrome/browser/sync/glue/data_type_controller.h
@@ -18,6 +18,9 @@
namespace browser_sync {
+class NewAssociatorInterface;
+class AssociatorInterface;
+
// Data type controllers need to be refcounted threadsafe, as they may
// need to run model associator or change processor on other threads.
class DataTypeController
@@ -88,6 +91,13 @@ class DataTypeController
// Current state of the data type controller.
virtual State state() const = 0;
+ // TODO(zea): clean this up once all datatypes use the new associator
+ // interface.
+ // Getter/Setter for model associator. New model associators are created
+ // by their respective datatype services and then registered with the PSS,
+ // which then assigns them to their appropriate DataTypeController.
+ virtual NewAssociatorInterface* model_associator() const = 0;
+ virtual void set_model_associator(AssociatorInterface* associator) = 0;
protected:
friend struct BrowserThread::DeleteOnThread<BrowserThread::UI>;
friend class DeleteTask<DataTypeController>;

Powered by Google App Engine
This is Rietveld 408576698