summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/profile_sync_factory.h
diff options
context:
space:
mode:
authorzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-13 19:16:19 +0000
committerzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-13 19:16:19 +0000
commit995f4838a7642620daf0e2797b5364a7d06dc336 (patch)
tree0ced2ff27d81af31d768f35a8c2cc7ff11b0a1c4 /chrome/browser/sync/profile_sync_factory.h
parentf7d1a045a3e62b0835b5da01f220f2238680207d (diff)
downloadchromium_src-995f4838a7642620daf0e2797b5364a7d06dc336.zip
chromium_src-995f4838a7642620daf0e2797b5364a7d06dc336.tar.gz
chromium_src-995f4838a7642620daf0e2797b5364a7d06dc336.tar.bz2
[Sync] Make generic non-frontend thread datatype controller.
Refactor Autofill/Password/Typed URL datatypes to use it. Add generic unit tests to cover the the various thready issues. BUG=77964 TEST=NonFrontendDatatypeController* unit tests. Review URL: http://codereview.chromium.org/6811003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81454 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/profile_sync_factory.h')
-rw-r--r--chrome/browser/sync/profile_sync_factory.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/chrome/browser/sync/profile_sync_factory.h b/chrome/browser/sync/profile_sync_factory.h
index 776b61d..8befe35 100644
--- a/chrome/browser/sync/profile_sync_factory.h
+++ b/chrome/browser/sync/profile_sync_factory.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -47,12 +47,15 @@ class ProfileSyncFactory {
virtual ~ProfileSyncFactory() {}
- // Instantiates and initializes a new ProfileSyncService. Enabled
- // data types are registered with the service. The return pointer
- // is owned by the caller.
+ // Instantiates a new ProfileSyncService. The return pointer is owned by the
+ // caller.
virtual ProfileSyncService* CreateProfileSyncService(
const std::string& cros_user) = 0;
+ // Creates and registers enabled datatypes with the provided
+ // ProfileSyncService.
+ virtual void RegisterDataTypes(ProfileSyncService* pss) = 0;
+
// Instantiates a new DataTypeManager with a SyncBackendHost and a
// list of data type controllers. The return pointer is owned by
// the caller.