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

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

Issue 367153005: Sync: Refactoring of DEVICE_INFO syncable type - Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed ExtensionSessionsTest test failures Created 6 years, 5 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
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/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 12 matching lines...) Expand all
23 class WebDataService; 23 class WebDataService;
24 24
25 namespace browser_sync { 25 namespace browser_sync {
26 class AssociatorInterface; 26 class AssociatorInterface;
27 class ChangeProcessor; 27 class ChangeProcessor;
28 class DataTypeEncryptionHandler; 28 class DataTypeEncryptionHandler;
29 class DataTypeManager; 29 class DataTypeManager;
30 class DataTypeManagerObserver; 30 class DataTypeManagerObserver;
31 class FailedDataTypesHandler; 31 class FailedDataTypesHandler;
32 class GenericChangeProcessor; 32 class GenericChangeProcessor;
33 class LocalDeviceInfoProvider;
33 class SyncBackendHost; 34 class SyncBackendHost;
34 class DataTypeErrorHandler; 35 class DataTypeErrorHandler;
35 } // namespace browser_sync 36 } // namespace browser_sync
36 37
37 namespace sync_driver { 38 namespace sync_driver {
38 class SyncPrefs; 39 class SyncPrefs;
39 } 40 }
40 41
41 namespace syncer { 42 namespace syncer {
42 class DataTypeDebugInfoListener; 43 class DataTypeDebugInfoListener;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 browser_sync::FailedDataTypesHandler* failed_data_types_handler) = 0; 92 browser_sync::FailedDataTypesHandler* failed_data_types_handler) = 0;
92 93
93 // Creating this in the factory helps us mock it out in testing. 94 // Creating this in the factory helps us mock it out in testing.
94 virtual browser_sync::SyncBackendHost* CreateSyncBackendHost( 95 virtual browser_sync::SyncBackendHost* CreateSyncBackendHost(
95 const std::string& name, 96 const std::string& name,
96 Profile* profile, 97 Profile* profile,
97 invalidation::InvalidationService* invalidator, 98 invalidation::InvalidationService* invalidator,
98 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, 99 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs,
99 const base::FilePath& sync_folder) = 0; 100 const base::FilePath& sync_folder) = 0;
100 101
102 // Creating this in the factory helps us mock it out in testing.
103 virtual browser_sync::LocalDeviceInfoProvider*
104 CreateLocalDeviceInfoProvider() = 0;
105
101 // Legacy datatypes that need to be converted to the SyncableService API. 106 // Legacy datatypes that need to be converted to the SyncableService API.
102 virtual SyncComponents CreateBookmarkSyncComponents( 107 virtual SyncComponents CreateBookmarkSyncComponents(
103 ProfileSyncService* profile_sync_service, 108 ProfileSyncService* profile_sync_service,
104 browser_sync::DataTypeErrorHandler* error_handler) = 0; 109 browser_sync::DataTypeErrorHandler* error_handler) = 0;
105 virtual SyncComponents CreateTypedUrlSyncComponents( 110 virtual SyncComponents CreateTypedUrlSyncComponents(
106 ProfileSyncService* profile_sync_service, 111 ProfileSyncService* profile_sync_service,
107 history::HistoryBackend* history_backend, 112 history::HistoryBackend* history_backend,
108 browser_sync::DataTypeErrorHandler* error_handler) = 0; 113 browser_sync::DataTypeErrorHandler* error_handler) = 0;
109 }; 114 };
110 115
111 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__ 116 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698