summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/profile_sync_factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/sync/profile_sync_factory.h')
-rw-r--r--chrome/browser/sync/profile_sync_factory.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/chrome/browser/sync/profile_sync_factory.h b/chrome/browser/sync/profile_sync_factory.h
index dc728af..fbb60b2 100644
--- a/chrome/browser/sync/profile_sync_factory.h
+++ b/chrome/browser/sync/profile_sync_factory.h
@@ -7,12 +7,14 @@
#include <utility>
#include "base/task.h"
+#include "chrome/browser/sync/glue/change_processor.h"
+#include "chrome/browser/sync/glue/data_type_controller.h"
+#include "chrome/browser/sync/glue/model_associator.h"
class ProfileSyncService;
namespace browser_sync {
-class AssociatorInterface;
-class ChangeProcessor;
+class DataTypeManager;
}
// Factory class for all profile sync related classes.
@@ -37,6 +39,11 @@ class ProfileSyncFactory {
// is owned by the caller.
virtual ProfileSyncService* CreateProfileSyncService() = 0;
+ // Instantiates a new DataTypeManager with a list of data type
+ // controllers. The return pointer is owned by the caller.
+ virtual browser_sync::DataTypeManager* CreateDataTypeManager(
+ const browser_sync::DataTypeController::TypeMap& controllers) = 0;
+
// Instantiates both a model associator and change processor for the
// bookmark data type. The pointers in the return struct are owned
// by the caller.