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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/sync_engine.h

Issue 314303003: [SyncFS] Create SyncWorkerTest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/sync_engine.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/sync_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698