| 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_REMOTE_TO_LOCAL_SYNCER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REMOTE_TO_LOCAL_SYNCER_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REMOTE_TO_LOCAL_SYNCER_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REMOTE_TO_LOCAL_SYNCER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 class RemoteToLocalSyncer : public SyncTask { | 43 class RemoteToLocalSyncer : public SyncTask { |
| 44 public: | 44 public: |
| 45 typedef SyncTaskManager::Continuation Continuation; | 45 typedef SyncTaskManager::Continuation Continuation; |
| 46 | 46 |
| 47 // Conflicting trackers will have low priority for RemoteToLocalSyncer so that | 47 // Conflicting trackers will have low priority for RemoteToLocalSyncer so that |
| 48 // it should be resolved by LocatToRemoteSyncer. | 48 // it should be resolved by LocatToRemoteSyncer. |
| 49 explicit RemoteToLocalSyncer(SyncEngineContext* sync_context); | 49 explicit RemoteToLocalSyncer(SyncEngineContext* sync_context); |
| 50 virtual ~RemoteToLocalSyncer(); | 50 virtual ~RemoteToLocalSyncer(); |
| 51 | 51 |
| 52 virtual void RunPreflight(scoped_ptr<SyncTaskToken> token) OVERRIDE; | 52 virtual void RunPreflight(scoped_ptr<SyncTaskToken> token) override; |
| 53 void RunExclusive(scoped_ptr<SyncTaskToken> token); | 53 void RunExclusive(scoped_ptr<SyncTaskToken> token); |
| 54 | 54 |
| 55 const storage::FileSystemURL& url() const { return url_; } | 55 const storage::FileSystemURL& url() const { return url_; } |
| 56 SyncFileType file_type() const { return file_type_; } | 56 SyncFileType file_type() const { return file_type_; } |
| 57 SyncAction sync_action() const { return sync_action_; } | 57 SyncAction sync_action() const { return sync_action_; } |
| 58 | 58 |
| 59 bool is_sync_root_deletion() const { return sync_root_deletion_; } | 59 bool is_sync_root_deletion() const { return sync_root_deletion_; } |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 typedef std::vector<std::string> FileIDList; | 62 typedef std::vector<std::string> FileIDList; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 | 215 |
| 216 base::WeakPtrFactory<RemoteToLocalSyncer> weak_ptr_factory_; | 216 base::WeakPtrFactory<RemoteToLocalSyncer> weak_ptr_factory_; |
| 217 | 217 |
| 218 DISALLOW_COPY_AND_ASSIGN(RemoteToLocalSyncer); | 218 DISALLOW_COPY_AND_ASSIGN(RemoteToLocalSyncer); |
| 219 }; | 219 }; |
| 220 | 220 |
| 221 } // namespace drive_backend | 221 } // namespace drive_backend |
| 222 } // namespace sync_file_system | 222 } // namespace sync_file_system |
| 223 | 223 |
| 224 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REMOTE_TO_LOCAL_SYNCER_
H_ | 224 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REMOTE_TO_LOCAL_SYNCER_
H_ |
| OLD | NEW |