| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 friend class DriveBackendSyncTest; | 137 friend class DriveBackendSyncTest; |
| 138 friend class SyncEngineTest; | 138 friend class SyncEngineTest; |
| 139 | 139 |
| 140 SyncEngine(scoped_ptr<drive::DriveServiceInterface> drive_service, | 140 SyncEngine(scoped_ptr<drive::DriveServiceInterface> drive_service, |
| 141 scoped_ptr<drive::DriveUploaderInterface> drive_uploader, | 141 scoped_ptr<drive::DriveUploaderInterface> drive_uploader, |
| 142 base::SequencedTaskRunner* worker_task_runner, | 142 base::SequencedTaskRunner* worker_task_runner, |
| 143 drive::DriveNotificationManager* notification_manager, | 143 drive::DriveNotificationManager* notification_manager, |
| 144 ExtensionServiceInterface* extension_service, | 144 ExtensionServiceInterface* extension_service, |
| 145 SigninManagerBase* signin_manager); | 145 SigninManagerBase* signin_manager); |
| 146 | 146 |
| 147 // TODO(peria): Migrate this method into test code. | |
| 148 // This method is not thread safe, because it requires to access metadata | |
| 149 // database which may live in another thread. | |
| 150 void UpdateRegisteredAppsForTesting(); | |
| 151 | |
| 152 SyncStatusCallback TrackCallback(const SyncStatusCallback& callback); | 147 SyncStatusCallback TrackCallback(const SyncStatusCallback& callback); |
| 153 | 148 |
| 154 scoped_ptr<drive::DriveServiceInterface> drive_service_; | 149 scoped_ptr<drive::DriveServiceInterface> drive_service_; |
| 155 scoped_ptr<DriveServiceWrapper> drive_service_wrapper_; | 150 scoped_ptr<DriveServiceWrapper> drive_service_wrapper_; |
| 156 scoped_ptr<drive::DriveUploaderInterface> drive_uploader_; | 151 scoped_ptr<drive::DriveUploaderInterface> drive_uploader_; |
| 157 scoped_ptr<DriveUploaderWrapper> drive_uploader_wrapper_; | 152 scoped_ptr<DriveUploaderWrapper> drive_uploader_wrapper_; |
| 158 RemoteChangeProcessor* remote_change_processor_; | 153 RemoteChangeProcessor* remote_change_processor_; |
| 159 scoped_ptr<RemoteChangeProcessorWrapper> remote_change_processor_wrapper_; | 154 scoped_ptr<RemoteChangeProcessorWrapper> remote_change_processor_wrapper_; |
| 160 | 155 |
| 161 scoped_ptr<RemoteChangeProcessorOnWorker> remote_change_processor_on_worker_; | 156 scoped_ptr<RemoteChangeProcessorOnWorker> remote_change_processor_on_worker_; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 180 CallbackTracker callback_tracker_; | 175 CallbackTracker callback_tracker_; |
| 181 | 176 |
| 182 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_; | 177 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_; |
| 183 DISALLOW_COPY_AND_ASSIGN(SyncEngine); | 178 DISALLOW_COPY_AND_ASSIGN(SyncEngine); |
| 184 }; | 179 }; |
| 185 | 180 |
| 186 } // namespace drive_backend | 181 } // namespace drive_backend |
| 187 } // namespace sync_file_system | 182 } // namespace sync_file_system |
| 188 | 183 |
| 189 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ | 184 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ |
| OLD | NEW |