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

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

Issue 195873020: [Sync] Move SyncPrefs into sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rerererebase Created 6 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMPONENTS_FACTORY_H__ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 11 matching lines...) Expand all
22 namespace browser_sync { 22 namespace browser_sync {
23 class AssociatorInterface; 23 class AssociatorInterface;
24 class ChangeProcessor; 24 class ChangeProcessor;
25 class DataTypeEncryptionHandler; 25 class DataTypeEncryptionHandler;
26 class DataTypeManager; 26 class DataTypeManager;
27 class DataTypeManagerObserver; 27 class DataTypeManagerObserver;
28 class FailedDataTypesHandler; 28 class FailedDataTypesHandler;
29 class GenericChangeProcessor; 29 class GenericChangeProcessor;
30 class SharedChangeProcessor; 30 class SharedChangeProcessor;
31 class SyncBackendHost; 31 class SyncBackendHost;
32 class SyncPrefs;
33 class DataTypeErrorHandler; 32 class DataTypeErrorHandler;
34 } // namespace browser_sync 33 } // namespace browser_sync
35 34
35 namespace sync_driver {
36 class SyncPrefs;
37 }
38
36 namespace syncer { 39 namespace syncer {
37 class DataTypeDebugInfoListener; 40 class DataTypeDebugInfoListener;
38 class SyncableService; 41 class SyncableService;
39 } 42 }
40 43
41 namespace history { 44 namespace history {
42 class HistoryBackend; 45 class HistoryBackend;
43 } 46 }
44 47
45 // Factory class for all profile sync related classes. 48 // Factory class for all profile sync related classes.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 const browser_sync::DataTypeController::TypeMap* controllers, 84 const browser_sync::DataTypeController::TypeMap* controllers,
82 const browser_sync::DataTypeEncryptionHandler* encryption_handler, 85 const browser_sync::DataTypeEncryptionHandler* encryption_handler,
83 browser_sync::SyncBackendHost* backend, 86 browser_sync::SyncBackendHost* backend,
84 browser_sync::DataTypeManagerObserver* observer, 87 browser_sync::DataTypeManagerObserver* observer,
85 browser_sync::FailedDataTypesHandler* failed_data_types_handler) = 0; 88 browser_sync::FailedDataTypesHandler* failed_data_types_handler) = 0;
86 89
87 // Creating this in the factory helps us mock it out in testing. 90 // Creating this in the factory helps us mock it out in testing.
88 virtual browser_sync::SyncBackendHost* CreateSyncBackendHost( 91 virtual browser_sync::SyncBackendHost* CreateSyncBackendHost(
89 const std::string& name, 92 const std::string& name,
90 Profile* profile, 93 Profile* profile,
91 const base::WeakPtr<browser_sync::SyncPrefs>& sync_prefs) = 0; 94 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs) = 0;
92 95
93 // Creating this in the factory helps us mock it out in testing. 96 // Creating this in the factory helps us mock it out in testing.
94 virtual browser_sync::GenericChangeProcessor* CreateGenericChangeProcessor( 97 virtual browser_sync::GenericChangeProcessor* CreateGenericChangeProcessor(
95 ProfileSyncService* profile_sync_service, 98 ProfileSyncService* profile_sync_service,
96 browser_sync::DataTypeErrorHandler* error_handler, 99 browser_sync::DataTypeErrorHandler* error_handler,
97 const base::WeakPtr<syncer::SyncableService>& local_service, 100 const base::WeakPtr<syncer::SyncableService>& local_service,
98 const base::WeakPtr<syncer::SyncMergeResult>& merge_result) = 0; 101 const base::WeakPtr<syncer::SyncMergeResult>& merge_result) = 0;
99 102
100 virtual browser_sync::SharedChangeProcessor* 103 virtual browser_sync::SharedChangeProcessor*
101 CreateSharedChangeProcessor() = 0; 104 CreateSharedChangeProcessor() = 0;
(...skipping 11 matching lines...) Expand all
113 virtual SyncComponents CreateTypedUrlSyncComponents( 116 virtual SyncComponents CreateTypedUrlSyncComponents(
114 ProfileSyncService* profile_sync_service, 117 ProfileSyncService* profile_sync_service,
115 history::HistoryBackend* history_backend, 118 history::HistoryBackend* history_backend,
116 browser_sync::DataTypeErrorHandler* error_handler) = 0; 119 browser_sync::DataTypeErrorHandler* error_handler) = 0;
117 virtual SyncComponents CreateSessionSyncComponents( 120 virtual SyncComponents CreateSessionSyncComponents(
118 ProfileSyncService* profile_sync_service, 121 ProfileSyncService* profile_sync_service,
119 browser_sync::DataTypeErrorHandler* error_handler) = 0; 122 browser_sync::DataTypeErrorHandler* error_handler) = 0;
120 }; 123 };
121 124
122 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__ 125 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/typed_url_data_type_controller.cc ('k') | chrome/browser/sync/profile_sync_components_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698