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

Side by Side Diff: chrome/browser/sync/profile_sync_factory_impl.h

Issue 8065016: [Sync] Refactor non-frontend DTC to handle new API properly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and self review Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 12 matching lines...) Expand all
23 // ProfileSyncFactory interface. 23 // ProfileSyncFactory interface.
24 virtual ProfileSyncService* CreateProfileSyncService( 24 virtual ProfileSyncService* CreateProfileSyncService(
25 const std::string& cros_user); 25 const std::string& cros_user);
26 26
27 virtual void RegisterDataTypes(ProfileSyncService* pss); 27 virtual void RegisterDataTypes(ProfileSyncService* pss);
28 28
29 virtual browser_sync::DataTypeManager* CreateDataTypeManager( 29 virtual browser_sync::DataTypeManager* CreateDataTypeManager(
30 browser_sync::SyncBackendHost* backend, 30 browser_sync::SyncBackendHost* backend,
31 const browser_sync::DataTypeController::TypeMap* controllers); 31 const browser_sync::DataTypeController::TypeMap* controllers);
32 32
33 virtual browser_sync::GenericChangeProcessor* CreateGenericChangeProcessor(
34 ProfileSyncService* profile_sync_service,
35 browser_sync::UnrecoverableErrorHandler* error_handler,
36 SyncableService* local_service);
37
38 virtual browser_sync::SharedChangeProcessor* CreateSharedChangeProcessor(
39 browser_sync::UnrecoverableErrorHandler* error_handler);
40
33 virtual SyncComponents CreateAppSyncComponents( 41 virtual SyncComponents CreateAppSyncComponents(
34 ProfileSyncService* profile_sync_service, 42 ProfileSyncService* profile_sync_service,
35 browser_sync::UnrecoverableErrorHandler* error_handler); 43 browser_sync::UnrecoverableErrorHandler* error_handler);
36 44
37 virtual SyncComponents CreateAutofillSyncComponents( 45 virtual SyncComponents CreateAutofillSyncComponents(
38 ProfileSyncService* profile_sync_service, 46 ProfileSyncService* profile_sync_service,
39 WebDatabase* web_database, 47 WebDatabase* web_database,
40 browser_sync::UnrecoverableErrorHandler* error_handler); 48 browser_sync::UnrecoverableErrorHandler* error_handler);
41 49
42 virtual SyncComponents CreateAutofillProfileSyncComponents( 50 virtual SyncableService* CreateAutofillProfileSyncComponents(
43 ProfileSyncService* profile_sync_service, 51 ProfileSyncService* profile_sync_service,
44 WebDatabase* web_database, 52 WebDatabase* web_database);
45 browser_sync::UnrecoverableErrorHandler* error_handler);
46 53
47 virtual SyncComponents CreateBookmarkSyncComponents( 54 virtual SyncComponents CreateBookmarkSyncComponents(
48 ProfileSyncService* profile_sync_service, 55 ProfileSyncService* profile_sync_service,
49 browser_sync::UnrecoverableErrorHandler* error_handler); 56 browser_sync::UnrecoverableErrorHandler* error_handler);
50 57
51 virtual SyncComponents CreateExtensionSettingSyncComponents( 58 virtual SyncComponents CreateExtensionSettingSyncComponents(
52 ExtensionSettingsBackend* extension_settings_backend, 59 ExtensionSettingsBackend* extension_settings_backend,
53 ProfileSyncService* profile_sync_service, 60 ProfileSyncService* profile_sync_service,
54 browser_sync::UnrecoverableErrorHandler* error_handler); 61 browser_sync::UnrecoverableErrorHandler* error_handler);
55 62
(...skipping 28 matching lines...) Expand all
84 browser_sync::UnrecoverableErrorHandler* error_handler); 91 browser_sync::UnrecoverableErrorHandler* error_handler);
85 92
86 private: 93 private:
87 Profile* profile_; 94 Profile* profile_;
88 CommandLine* command_line_; 95 CommandLine* command_line_;
89 96
90 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl); 97 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl);
91 }; 98 };
92 99
93 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ 100 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698