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

Side by Side Diff: chrome/browser/sync_file_system/drive_file_sync_service.h

Issue 12221088: Sync FileSystem: Drop is_fetching_changes_ flag and completion_callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: run StartBatchSync on REMOTE_SERVICE_TEMPORARY_UNAVAILABLE case Created 7 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_file_sync_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_file_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698