| 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_INTERFACE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_INTERFACE_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_INTERFACE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_INTERFACE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 const SyncStatusCallback& callback) = 0; | 78 const SyncStatusCallback& callback) = 0; |
| 79 virtual void ProcessRemoteChange(const SyncFileCallback& callback) = 0; | 79 virtual void ProcessRemoteChange(const SyncFileCallback& callback) = 0; |
| 80 virtual void SetRemoteChangeProcessor( | 80 virtual void SetRemoteChangeProcessor( |
| 81 RemoteChangeProcessorOnWorker* remote_change_processor_on_worker) = 0; | 81 RemoteChangeProcessorOnWorker* remote_change_processor_on_worker) = 0; |
| 82 virtual RemoteServiceState GetCurrentState() const = 0; | 82 virtual RemoteServiceState GetCurrentState() const = 0; |
| 83 virtual void GetOriginStatusMap( | 83 virtual void GetOriginStatusMap( |
| 84 const RemoteFileSyncService::StatusMapCallback& callback) = 0; | 84 const RemoteFileSyncService::StatusMapCallback& callback) = 0; |
| 85 virtual scoped_ptr<base::ListValue> DumpFiles(const GURL& origin) = 0; | 85 virtual scoped_ptr<base::ListValue> DumpFiles(const GURL& origin) = 0; |
| 86 virtual scoped_ptr<base::ListValue> DumpDatabase() = 0; | 86 virtual scoped_ptr<base::ListValue> DumpDatabase() = 0; |
| 87 virtual void SetSyncEnabled(bool enabled) = 0; | 87 virtual void SetSyncEnabled(bool enabled) = 0; |
| 88 virtual void PromoteDemotedChanges() = 0; | 88 virtual void PromoteDemotedChanges(const base::Closure& callback) = 0; |
| 89 | 89 |
| 90 // See LocalChangeProcessor for the details. | 90 // See LocalChangeProcessor for the details. |
| 91 virtual void ApplyLocalChange( | 91 virtual void ApplyLocalChange( |
| 92 const FileChange& local_change, | 92 const FileChange& local_change, |
| 93 const base::FilePath& local_path, | 93 const base::FilePath& local_path, |
| 94 const SyncFileMetadata& local_metadata, | 94 const SyncFileMetadata& local_metadata, |
| 95 const fileapi::FileSystemURL& url, | 95 const fileapi::FileSystemURL& url, |
| 96 const SyncStatusCallback& callback) = 0; | 96 const SyncStatusCallback& callback) = 0; |
| 97 | 97 |
| 98 // See drive::DriveNotificationObserver for the details. | 98 // See drive::DriveNotificationObserver for the details. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 116 // TODO(peria): Remove this interface after making FakeSyncWorker class. | 116 // TODO(peria): Remove this interface after making FakeSyncWorker class. |
| 117 virtual void SetHasRefreshToken(bool has_refresh_token) = 0; | 117 virtual void SetHasRefreshToken(bool has_refresh_token) = 0; |
| 118 | 118 |
| 119 DISALLOW_COPY_AND_ASSIGN(SyncWorkerInterface); | 119 DISALLOW_COPY_AND_ASSIGN(SyncWorkerInterface); |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 } // namespace drive_backend | 122 } // namespace drive_backend |
| 123 } // namespace sync_file_system | 123 } // namespace sync_file_system |
| 124 | 124 |
| 125 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_INTERFACE_H
_ | 125 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_INTERFACE_H
_ |
| OLD | NEW |