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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 // drive::DriveServiceObserver overrides. | 141 // drive::DriveServiceObserver overrides. |
142 virtual void OnReadyToSendRequests() OVERRIDE; | 142 virtual void OnReadyToSendRequests() OVERRIDE; |
143 virtual void OnRefreshTokenInvalid() OVERRIDE; | 143 virtual void OnRefreshTokenInvalid() OVERRIDE; |
144 | 144 |
145 // net::NetworkChangeNotifier::NetworkChangeObserver overrides. | 145 // net::NetworkChangeNotifier::NetworkChangeObserver overrides. |
146 virtual void OnNetworkChanged( | 146 virtual void OnNetworkChanged( |
147 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE; | 147 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE; |
148 | 148 |
149 // SigninManagerBase::Observer overrides. | 149 // SigninManagerBase::Observer overrides. |
150 virtual void GoogleSigninFailed(const GoogleServiceAuthError& error) OVERRIDE; | 150 virtual void GoogleSigninFailed(const GoogleServiceAuthError& error) OVERRIDE; |
151 virtual void GoogleSigninSucceeded(const std::string& username, | 151 virtual void GoogleSigninSucceeded(const std::string& account_id, |
| 152 const std::string& username, |
152 const std::string& password) OVERRIDE; | 153 const std::string& password) OVERRIDE; |
153 virtual void GoogleSignedOut(const std::string& username) OVERRIDE; | 154 virtual void GoogleSignedOut(const std::string& account_id, |
| 155 const std::string& username) OVERRIDE; |
154 | 156 |
155 private: | 157 private: |
156 class WorkerObserver; | 158 class WorkerObserver; |
157 | 159 |
158 friend class DriveBackendSyncTest; | 160 friend class DriveBackendSyncTest; |
159 friend class SyncEngineTest; | 161 friend class SyncEngineTest; |
160 | 162 |
161 SyncEngine(const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner, | 163 SyncEngine(const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner, |
162 const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner, | 164 const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner, |
163 const scoped_refptr<base::SequencedTaskRunner>& drive_task_runner, | 165 const scoped_refptr<base::SequencedTaskRunner>& drive_task_runner, |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 CallbackTracker callback_tracker_; | 230 CallbackTracker callback_tracker_; |
229 | 231 |
230 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_; | 232 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_; |
231 DISALLOW_COPY_AND_ASSIGN(SyncEngine); | 233 DISALLOW_COPY_AND_ASSIGN(SyncEngine); |
232 }; | 234 }; |
233 | 235 |
234 } // namespace drive_backend | 236 } // namespace drive_backend |
235 } // namespace sync_file_system | 237 } // namespace sync_file_system |
236 | 238 |
237 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ | 239 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ |
OLD | NEW |