| 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_SYNC_ENGINE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 const GURL& origin, | 82 const GURL& origin, |
| 83 const SyncStatusCallback& callback) OVERRIDE; | 83 const SyncStatusCallback& callback) OVERRIDE; |
| 84 virtual void UninstallOrigin( | 84 virtual void UninstallOrigin( |
| 85 const GURL& origin, | 85 const GURL& origin, |
| 86 UninstallFlag flag, | 86 UninstallFlag flag, |
| 87 const SyncStatusCallback& callback) OVERRIDE; | 87 const SyncStatusCallback& callback) OVERRIDE; |
| 88 virtual void ProcessRemoteChange(const SyncFileCallback& callback) OVERRIDE; | 88 virtual void ProcessRemoteChange(const SyncFileCallback& callback) OVERRIDE; |
| 89 virtual void SetRemoteChangeProcessor( | 89 virtual void SetRemoteChangeProcessor( |
| 90 RemoteChangeProcessor* processor) OVERRIDE; | 90 RemoteChangeProcessor* processor) OVERRIDE; |
| 91 virtual LocalChangeProcessor* GetLocalChangeProcessor() OVERRIDE; | 91 virtual LocalChangeProcessor* GetLocalChangeProcessor() OVERRIDE; |
| 92 virtual bool IsConflicting(const fileapi::FileSystemURL& url) OVERRIDE; | |
| 93 virtual RemoteServiceState GetCurrentState() const OVERRIDE; | 92 virtual RemoteServiceState GetCurrentState() const OVERRIDE; |
| 94 virtual void GetOriginStatusMap(OriginStatusMap* status_map) OVERRIDE; | 93 virtual void GetOriginStatusMap(OriginStatusMap* status_map) OVERRIDE; |
| 95 virtual void DumpFiles(const GURL& origin, | 94 virtual void DumpFiles(const GURL& origin, |
| 96 const ListCallback& callback) OVERRIDE; | 95 const ListCallback& callback) OVERRIDE; |
| 97 virtual void DumpDatabase(const ListCallback& callback) OVERRIDE; | 96 virtual void DumpDatabase(const ListCallback& callback) OVERRIDE; |
| 98 virtual void SetSyncEnabled(bool enabled) OVERRIDE; | 97 virtual void SetSyncEnabled(bool enabled) OVERRIDE; |
| 99 virtual SyncStatusCode SetDefaultConflictResolutionPolicy( | |
| 100 ConflictResolutionPolicy policy) OVERRIDE; | |
| 101 virtual SyncStatusCode SetConflictResolutionPolicy( | |
| 102 const GURL& origin, | |
| 103 ConflictResolutionPolicy policy) OVERRIDE; | |
| 104 virtual ConflictResolutionPolicy GetDefaultConflictResolutionPolicy() | |
| 105 const OVERRIDE; | |
| 106 virtual ConflictResolutionPolicy GetConflictResolutionPolicy( | |
| 107 const GURL& origin) const OVERRIDE; | |
| 108 virtual void GetRemoteVersions( | |
| 109 const fileapi::FileSystemURL& url, | |
| 110 const RemoteVersionsCallback& callback) OVERRIDE; | |
| 111 virtual void DownloadRemoteVersion( | |
| 112 const fileapi::FileSystemURL& url, | |
| 113 const std::string& version_id, | |
| 114 const DownloadVersionCallback& callback) OVERRIDE; | |
| 115 virtual void PromoteDemotedChanges() OVERRIDE; | 98 virtual void PromoteDemotedChanges() OVERRIDE; |
| 116 | 99 |
| 117 // LocalChangeProcessor overrides. | 100 // LocalChangeProcessor overrides. |
| 118 virtual void ApplyLocalChange( | 101 virtual void ApplyLocalChange( |
| 119 const FileChange& local_change, | 102 const FileChange& local_change, |
| 120 const base::FilePath& local_path, | 103 const base::FilePath& local_path, |
| 121 const SyncFileMetadata& local_metadata, | 104 const SyncFileMetadata& local_metadata, |
| 122 const fileapi::FileSystemURL& url, | 105 const fileapi::FileSystemURL& url, |
| 123 const SyncStatusCallback& callback) OVERRIDE; | 106 const SyncStatusCallback& callback) OVERRIDE; |
| 124 | 107 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_; | 172 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_; |
| 190 | 173 |
| 191 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_; | 174 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_; |
| 192 DISALLOW_COPY_AND_ASSIGN(SyncEngine); | 175 DISALLOW_COPY_AND_ASSIGN(SyncEngine); |
| 193 }; | 176 }; |
| 194 | 177 |
| 195 } // namespace drive_backend | 178 } // namespace drive_backend |
| 196 } // namespace sync_file_system | 179 } // namespace sync_file_system |
| 197 | 180 |
| 198 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ | 181 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ |
| OLD | NEW |