| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_WORKER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 namespace base { | 23 namespace base { |
| 24 class ListValue; | 24 class ListValue; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace drive { | 27 namespace drive { |
| 28 class DriveServiceInterface; | 28 class DriveServiceInterface; |
| 29 class DriveUploaderInterface; | 29 class DriveUploaderInterface; |
| 30 } | 30 } |
| 31 | 31 |
| 32 namespace fileapi { | 32 namespace storage { |
| 33 class FileSystemURL; | 33 class FileSystemURL; |
| 34 } | 34 } |
| 35 | 35 |
| 36 namespace leveldb { | 36 namespace leveldb { |
| 37 class Env; | 37 class Env; |
| 38 } | 38 } |
| 39 | 39 |
| 40 namespace sync_file_system { | 40 namespace sync_file_system { |
| 41 | 41 |
| 42 class FileChange; | 42 class FileChange; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 virtual void SetRemoteChangeProcessor( | 82 virtual void SetRemoteChangeProcessor( |
| 83 RemoteChangeProcessorOnWorker* remote_change_processor_on_worker) | 83 RemoteChangeProcessorOnWorker* remote_change_processor_on_worker) |
| 84 OVERRIDE; | 84 OVERRIDE; |
| 85 virtual RemoteServiceState GetCurrentState() const OVERRIDE; | 85 virtual RemoteServiceState GetCurrentState() const OVERRIDE; |
| 86 virtual void GetOriginStatusMap( | 86 virtual void GetOriginStatusMap( |
| 87 const RemoteFileSyncService::StatusMapCallback& callback) OVERRIDE; | 87 const RemoteFileSyncService::StatusMapCallback& callback) OVERRIDE; |
| 88 virtual scoped_ptr<base::ListValue> DumpFiles(const GURL& origin) OVERRIDE; | 88 virtual scoped_ptr<base::ListValue> DumpFiles(const GURL& origin) OVERRIDE; |
| 89 virtual scoped_ptr<base::ListValue> DumpDatabase() OVERRIDE; | 89 virtual scoped_ptr<base::ListValue> DumpDatabase() OVERRIDE; |
| 90 virtual void SetSyncEnabled(bool enabled) OVERRIDE; | 90 virtual void SetSyncEnabled(bool enabled) OVERRIDE; |
| 91 virtual void PromoteDemotedChanges(const base::Closure& callback) OVERRIDE; | 91 virtual void PromoteDemotedChanges(const base::Closure& callback) OVERRIDE; |
| 92 virtual void ApplyLocalChange( | 92 virtual void ApplyLocalChange(const FileChange& local_change, |
| 93 const FileChange& local_change, | 93 const base::FilePath& local_path, |
| 94 const base::FilePath& local_path, | 94 const SyncFileMetadata& local_metadata, |
| 95 const SyncFileMetadata& local_metadata, | 95 const storage::FileSystemURL& url, |
| 96 const fileapi::FileSystemURL& url, | 96 const SyncStatusCallback& callback) OVERRIDE; |
| 97 const SyncStatusCallback& callback) OVERRIDE; | |
| 98 virtual void ActivateService(RemoteServiceState service_state, | 97 virtual void ActivateService(RemoteServiceState service_state, |
| 99 const std::string& description) OVERRIDE; | 98 const std::string& description) OVERRIDE; |
| 100 virtual void DeactivateService(const std::string& description) OVERRIDE; | 99 virtual void DeactivateService(const std::string& description) OVERRIDE; |
| 101 virtual void DetachFromSequence() OVERRIDE; | 100 virtual void DetachFromSequence() OVERRIDE; |
| 102 virtual void AddObserver(Observer* observer) OVERRIDE; | 101 virtual void AddObserver(Observer* observer) OVERRIDE; |
| 103 | 102 |
| 104 private: | 103 private: |
| 105 friend class DriveBackendSyncTest; | 104 friend class DriveBackendSyncTest; |
| 106 friend class SyncWorkerTest; | 105 friend class SyncWorkerTest; |
| 107 | 106 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 base::SequenceChecker sequence_checker_; | 175 base::SequenceChecker sequence_checker_; |
| 177 | 176 |
| 178 base::WeakPtrFactory<SyncWorker> weak_ptr_factory_; | 177 base::WeakPtrFactory<SyncWorker> weak_ptr_factory_; |
| 179 DISALLOW_COPY_AND_ASSIGN(SyncWorker); | 178 DISALLOW_COPY_AND_ASSIGN(SyncWorker); |
| 180 }; | 179 }; |
| 181 | 180 |
| 182 } // namespace drive_backend | 181 } // namespace drive_backend |
| 183 } // namespace sync_file_system | 182 } // namespace sync_file_system |
| 184 | 183 |
| 185 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_H_ | 184 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_H_ |
| OLD | NEW |