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

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

Issue 493043002: [SyncFS] Add browser_tests to test authentication state of SyncFS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix license header Created 6 years, 3 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 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 27 matching lines...) Expand all
38 class Env; 38 class Env;
39 } 39 }
40 40
41 namespace net { 41 namespace net {
42 class URLRequestContextGetter; 42 class URLRequestContextGetter;
43 } 43 }
44 44
45 namespace sync_file_system { 45 namespace sync_file_system {
46 46
47 class RemoteChangeProcessor; 47 class RemoteChangeProcessor;
48 class SyncFileSystemTest;
48 49
49 namespace drive_backend { 50 namespace drive_backend {
50 51
51 class DriveServiceWrapper; 52 class DriveServiceWrapper;
52 class DriveUploaderWrapper; 53 class DriveUploaderWrapper;
53 class MetadataDatabase; 54 class MetadataDatabase;
54 class RemoteChangeProcessorOnWorker; 55 class RemoteChangeProcessorOnWorker;
55 class RemoteChangeProcessorWrapper; 56 class RemoteChangeProcessorWrapper;
56 class SyncTaskManager; 57 class SyncTaskManager;
57 class SyncWorkerInterface; 58 class SyncWorkerInterface;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 const std::string& username, 153 const std::string& username,
153 const std::string& password) OVERRIDE; 154 const std::string& password) OVERRIDE;
154 virtual void GoogleSignedOut(const std::string& account_id, 155 virtual void GoogleSignedOut(const std::string& account_id,
155 const std::string& username) OVERRIDE; 156 const std::string& username) OVERRIDE;
156 157
157 private: 158 private:
158 class WorkerObserver; 159 class WorkerObserver;
159 160
160 friend class DriveBackendSyncTest; 161 friend class DriveBackendSyncTest;
161 friend class SyncEngineTest; 162 friend class SyncEngineTest;
163 friend class sync_file_system::SyncFileSystemTest;
162 164
163 SyncEngine(const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner, 165 SyncEngine(const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner,
164 const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner, 166 const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner,
165 const scoped_refptr<base::SequencedTaskRunner>& drive_task_runner, 167 const scoped_refptr<base::SequencedTaskRunner>& drive_task_runner,
166 const base::FilePath& sync_file_system_dir, 168 const base::FilePath& sync_file_system_dir,
167 TaskLogger* task_logger, 169 TaskLogger* task_logger,
168 drive::DriveNotificationManager* notification_manager, 170 drive::DriveNotificationManager* notification_manager,
169 ExtensionServiceInterface* extension_service, 171 ExtensionServiceInterface* extension_service,
170 SigninManagerBase* signin_manager, 172 SigninManagerBase* signin_manager,
171 OAuth2TokenService* token_service, 173 OAuth2TokenService* token_service,
172 const scoped_refptr<net::URLRequestContextGetter>& request_context, 174 net::URLRequestContextGetter* request_context,
173 scoped_ptr<DriveServiceFactory> drive_service_factory, 175 scoped_ptr<DriveServiceFactory> drive_service_factory,
174 leveldb::Env* env_override); 176 leveldb::Env* env_override);
175 177
176 // Called by WorkerObserver. 178 // Called by WorkerObserver.
177 void OnPendingFileListUpdated(int item_count); 179 void OnPendingFileListUpdated(int item_count);
178 void OnFileStatusChanged(const storage::FileSystemURL& url, 180 void OnFileStatusChanged(const storage::FileSystemURL& url,
179 SyncFileStatus file_status, 181 SyncFileStatus file_status,
180 SyncAction sync_action, 182 SyncAction sync_action,
181 SyncDirection direction); 183 SyncDirection direction);
182 void UpdateServiceState(RemoteServiceState state, 184 void UpdateServiceState(RemoteServiceState state,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 CallbackTracker callback_tracker_; 232 CallbackTracker callback_tracker_;
231 233
232 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_; 234 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_;
233 DISALLOW_COPY_AND_ASSIGN(SyncEngine); 235 DISALLOW_COPY_AND_ASSIGN(SyncEngine);
234 }; 236 };
235 237
236 } // namespace drive_backend 238 } // namespace drive_backend
237 } // namespace sync_file_system 239 } // namespace sync_file_system
238 240
239 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ 241 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698