| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 virtual void OnPushNotificationEnabled(bool enabled) OVERRIDE; | 113 virtual void OnPushNotificationEnabled(bool enabled) OVERRIDE; |
| 114 | 114 |
| 115 // drive::DriveServiceObserver overrides. | 115 // drive::DriveServiceObserver overrides. |
| 116 virtual void OnReadyToSendRequests() OVERRIDE; | 116 virtual void OnReadyToSendRequests() OVERRIDE; |
| 117 virtual void OnRefreshTokenInvalid() OVERRIDE; | 117 virtual void OnRefreshTokenInvalid() OVERRIDE; |
| 118 | 118 |
| 119 // net::NetworkChangeNotifier::NetworkChangeObserver overrides. | 119 // net::NetworkChangeNotifier::NetworkChangeObserver overrides. |
| 120 virtual void OnNetworkChanged( | 120 virtual void OnNetworkChanged( |
| 121 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE; | 121 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE; |
| 122 | 122 |
| 123 drive::DriveServiceInterface* GetDriveService(); | |
| 124 drive::DriveUploaderInterface* GetDriveUploader(); | |
| 125 | |
| 126 void OnPendingFileListUpdated(int item_count); | 123 void OnPendingFileListUpdated(int item_count); |
| 127 void OnFileStatusChanged(const fileapi::FileSystemURL& url, | 124 void OnFileStatusChanged(const fileapi::FileSystemURL& url, |
| 128 SyncFileStatus file_status, | 125 SyncFileStatus file_status, |
| 129 SyncAction sync_action, | 126 SyncAction sync_action, |
| 130 SyncDirection direction); | 127 SyncDirection direction); |
| 131 void UpdateServiceState(RemoteServiceState state, | 128 void UpdateServiceState(RemoteServiceState state, |
| 132 const std::string& description); | 129 const std::string& description); |
| 133 | 130 |
| 134 private: | 131 private: |
| 135 class WorkerObserver; | 132 class WorkerObserver; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 CallbackTracker callback_tracker_; | 172 CallbackTracker callback_tracker_; |
| 176 | 173 |
| 177 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_; | 174 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_; |
| 178 DISALLOW_COPY_AND_ASSIGN(SyncEngine); | 175 DISALLOW_COPY_AND_ASSIGN(SyncEngine); |
| 179 }; | 176 }; |
| 180 | 177 |
| 181 } // namespace drive_backend | 178 } // namespace drive_backend |
| 182 } // namespace sync_file_system | 179 } // namespace sync_file_system |
| 183 | 180 |
| 184 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ | 181 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ |
| OLD | NEW |