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

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

Issue 515093002: FileAPI/sync file system cleanups for scoped_refptr operator T* cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 virtual void GoogleSigninSucceeded(const std::string& username, 151 virtual void GoogleSigninSucceeded(const std::string& username,
152 const std::string& password) OVERRIDE; 152 const std::string& password) OVERRIDE;
153 virtual void GoogleSignedOut(const std::string& username) OVERRIDE; 153 virtual void GoogleSignedOut(const std::string& username) OVERRIDE;
154 154
155 private: 155 private:
156 class WorkerObserver; 156 class WorkerObserver;
157 157
158 friend class DriveBackendSyncTest; 158 friend class DriveBackendSyncTest;
159 friend class SyncEngineTest; 159 friend class SyncEngineTest;
160 160
161 SyncEngine(base::SingleThreadTaskRunner* ui_task_runner, 161 SyncEngine(const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner,
162 base::SequencedTaskRunner* worker_task_runner, 162 const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner,
163 base::SequencedTaskRunner* drive_task_runner, 163 const scoped_refptr<base::SequencedTaskRunner>& drive_task_runner,
164 const base::FilePath& sync_file_system_dir, 164 const base::FilePath& sync_file_system_dir,
165 TaskLogger* task_logger, 165 TaskLogger* task_logger,
166 drive::DriveNotificationManager* notification_manager, 166 drive::DriveNotificationManager* notification_manager,
167 ExtensionServiceInterface* extension_service, 167 ExtensionServiceInterface* extension_service,
168 SigninManagerBase* signin_manager, 168 SigninManagerBase* signin_manager,
169 OAuth2TokenService* token_service, 169 OAuth2TokenService* token_service,
170 net::URLRequestContextGetter* request_context, 170 const scoped_refptr<net::URLRequestContextGetter>& request_context,
171 scoped_ptr<DriveServiceFactory> drive_service_factory, 171 scoped_ptr<DriveServiceFactory> drive_service_factory,
172 leveldb::Env* env_override); 172 leveldb::Env* env_override);
173 173
174 // Called by WorkerObserver. 174 // Called by WorkerObserver.
175 void OnPendingFileListUpdated(int item_count); 175 void OnPendingFileListUpdated(int item_count);
176 void OnFileStatusChanged(const storage::FileSystemURL& url, 176 void OnFileStatusChanged(const storage::FileSystemURL& url,
177 SyncFileStatus file_status, 177 SyncFileStatus file_status,
178 SyncAction sync_action, 178 SyncAction sync_action,
179 SyncDirection direction); 179 SyncDirection direction);
180 void UpdateServiceState(RemoteServiceState state, 180 void UpdateServiceState(RemoteServiceState state,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 CallbackTracker callback_tracker_; 228 CallbackTracker callback_tracker_;
229 229
230 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_; 230 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_;
231 DISALLOW_COPY_AND_ASSIGN(SyncEngine); 231 DISALLOW_COPY_AND_ASSIGN(SyncEngine);
232 }; 232 };
233 233
234 } // namespace drive_backend 234 } // namespace drive_backend
235 } // namespace sync_file_system 235 } // namespace sync_file_system
236 236
237 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ 237 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698