| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_FILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 | 387 |
| 388 // True when Drive File Sync Service is registered for Drive notifications. | 388 // True when Drive File Sync Service is registered for Drive notifications. |
| 389 bool push_notification_registered_; | 389 bool push_notification_registered_; |
| 390 // True once the first drive notification is received with OK state. | 390 // True once the first drive notification is received with OK state. |
| 391 bool push_notification_enabled_; | 391 bool push_notification_enabled_; |
| 392 // Timer to trigger fetching changes for incremental sync. | 392 // Timer to trigger fetching changes for incremental sync. |
| 393 base::OneShotTimer<DriveFileSyncService> polling_timer_; | 393 base::OneShotTimer<DriveFileSyncService> polling_timer_; |
| 394 // If polling_delay_seconds_ is negative (<0) the timer won't start. | 394 // If polling_delay_seconds_ is negative (<0) the timer won't start. |
| 395 int64 polling_delay_seconds_; | 395 int64 polling_delay_seconds_; |
| 396 | 396 |
| 397 // Is set to true while the service is fetching changes for incremental | 397 bool has_unfetched_remote_change_; |
| 398 // sync. Polling will be disabled while this is true. | |
| 399 bool is_fetching_changes_; | |
| 400 | 398 |
| 401 ObserverList<Observer> service_observers_; | 399 ObserverList<Observer> service_observers_; |
| 402 ObserverList<FileStatusObserver> file_status_observers_; | 400 ObserverList<FileStatusObserver> file_status_observers_; |
| 403 | 401 |
| 404 // Use WeakPtrFactory instead of SupportsWeakPtr to revoke the weak pointer | 402 // Use WeakPtrFactory instead of SupportsWeakPtr to revoke the weak pointer |
| 405 // in |token_|. | 403 // in |token_|. |
| 406 base::WeakPtrFactory<DriveFileSyncService> weak_factory_; | 404 base::WeakPtrFactory<DriveFileSyncService> weak_factory_; |
| 407 | 405 |
| 408 DISALLOW_COPY_AND_ASSIGN(DriveFileSyncService); | 406 DISALLOW_COPY_AND_ASSIGN(DriveFileSyncService); |
| 409 }; | 407 }; |
| 410 | 408 |
| 411 } // namespace sync_file_system | 409 } // namespace sync_file_system |
| 412 | 410 |
| 413 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ | 411 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ |
| OLD | NEW |