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

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

Issue 12304015: Migrated sync_file_status, sync_action and sync_direction from fileapi:: namespace to sync_file_sys… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 bool has_new_changes, 362 bool has_new_changes,
363 google_apis::GDataErrorCode error, 363 google_apis::GDataErrorCode error,
364 scoped_ptr<google_apis::ResourceList> changes); 364 scoped_ptr<google_apis::ResourceList> changes);
365 bool GetOriginForEntry(const google_apis::ResourceEntry& entry, GURL* origin); 365 bool GetOriginForEntry(const google_apis::ResourceEntry& entry, GURL* origin);
366 void SchedulePolling(); 366 void SchedulePolling();
367 void OnPollingTimerFired(); 367 void OnPollingTimerFired();
368 void UpdatePollingDelay(int64 new_delay_sec); 368 void UpdatePollingDelay(int64 new_delay_sec);
369 void RegisterDriveNotifications(); 369 void RegisterDriveNotifications();
370 void SetPushNotificationEnabled(syncer::InvalidatorState state); 370 void SetPushNotificationEnabled(syncer::InvalidatorState state);
371 void NotifyObserversFileStatusChanged(const fileapi::FileSystemURL& url, 371 void NotifyObserversFileStatusChanged(const fileapi::FileSystemURL& url,
372 fileapi::SyncFileStatus sync_status, 372 SyncFileStatus sync_status,
373 fileapi::SyncAction action_taken, 373 SyncAction action_taken,
374 fileapi::SyncDirection direction); 374 SyncDirection direction);
375 375
376 scoped_ptr<DriveMetadataStore> metadata_store_; 376 scoped_ptr<DriveMetadataStore> metadata_store_;
377 scoped_ptr<DriveFileSyncClientInterface> sync_client_; 377 scoped_ptr<DriveFileSyncClientInterface> sync_client_;
378 378
379 Profile* profile_; 379 Profile* profile_;
380 fileapi::SyncStatusCode last_operation_status_; 380 fileapi::SyncStatusCode last_operation_status_;
381 std::deque<base::Closure> pending_tasks_; 381 std::deque<base::Closure> pending_tasks_;
382 382
383 // The current remote service state. This does NOT reflect the 383 // The current remote service state. This does NOT reflect the
384 // sync_enabled_ flag, while GetCurrentState() DOES reflect the flag 384 // sync_enabled_ flag, while GetCurrentState() DOES reflect the flag
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 // Use WeakPtrFactory instead of SupportsWeakPtr to revoke the weak pointer 433 // Use WeakPtrFactory instead of SupportsWeakPtr to revoke the weak pointer
434 // in |token_|. 434 // in |token_|.
435 base::WeakPtrFactory<DriveFileSyncService> weak_factory_; 435 base::WeakPtrFactory<DriveFileSyncService> weak_factory_;
436 436
437 DISALLOW_COPY_AND_ASSIGN(DriveFileSyncService); 437 DISALLOW_COPY_AND_ASSIGN(DriveFileSyncService);
438 }; 438 };
439 439
440 } // namespace sync_file_system 440 } // namespace sync_file_system
441 441
442 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ 442 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698