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

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: Reffffactor 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
33 virtual SyncComponents CreateAppSyncComponents( 40 virtual SyncComponents CreateAppSyncComponents(
34 ProfileSyncService* profile_sync_service, 41 ProfileSyncService* profile_sync_service,
35 browser_sync::UnrecoverableErrorHandler* error_handler); 42 browser_sync::UnrecoverableErrorHandler* error_handler);
36 43
37 virtual SyncComponents CreateAutofillSyncComponents( 44 virtual SyncComponents CreateAutofillSyncComponents(
38 ProfileSyncService* profile_sync_service, 45 ProfileSyncService* profile_sync_service,
39 WebDatabase* web_database, 46 WebDatabase* web_database,
40 browser_sync::UnrecoverableErrorHandler* error_handler); 47 browser_sync::UnrecoverableErrorHandler* error_handler);
41 48
42 virtual SyncComponents CreateAutofillProfileSyncComponents( 49 virtual SyncableService* CreateAutofillProfileSyncComponents(
akalin 2011/10/11 22:41:08 rename to ...SyncService, make it return AutofillP
Nicolas Zea 2011/10/12 04:24:19 Switched to GetAutofillProfileSyncableService, sin
43 ProfileSyncService* profile_sync_service, 50 ProfileSyncService* profile_sync_service,
44 WebDatabase* web_database, 51 WebDatabase* web_database);
45 browser_sync::UnrecoverableErrorHandler* error_handler);
46 52
47 virtual SyncComponents CreateBookmarkSyncComponents( 53 virtual SyncComponents CreateBookmarkSyncComponents(
48 ProfileSyncService* profile_sync_service, 54 ProfileSyncService* profile_sync_service,
49 browser_sync::UnrecoverableErrorHandler* error_handler); 55 browser_sync::UnrecoverableErrorHandler* error_handler);
50 56
51 virtual SyncComponents CreateExtensionSettingSyncComponents( 57 virtual SyncComponents CreateExtensionSettingSyncComponents(
52 ExtensionSettingsBackend* extension_settings_backend, 58 ExtensionSettingsBackend* extension_settings_backend,
53 ProfileSyncService* profile_sync_service, 59 ProfileSyncService* profile_sync_service,
54 browser_sync::UnrecoverableErrorHandler* error_handler); 60 browser_sync::UnrecoverableErrorHandler* error_handler);
55 61
(...skipping 28 matching lines...) Expand all
84 browser_sync::UnrecoverableErrorHandler* error_handler); 90 browser_sync::UnrecoverableErrorHandler* error_handler);
85 91
86 private: 92 private:
87 Profile* profile_; 93 Profile* profile_;
88 CommandLine* command_line_; 94 CommandLine* command_line_;
89 95
90 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl); 96 DISALLOW_COPY_AND_ASSIGN(ProfileSyncFactoryImpl);
91 }; 97 };
92 98
93 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__ 99 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_IMPL_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698