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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "chrome/browser/sync_file_system/remote_file_sync_service.h" | 12 #include "chrome/browser/sync_file_system/remote_file_sync_service.h" |
13 #include "chrome/browser/sync_file_system/sync_action.h" | 13 #include "chrome/browser/sync_file_system/sync_action.h" |
14 #include "chrome/browser/sync_file_system/sync_callbacks.h" | 14 #include "chrome/browser/sync_file_system/sync_callbacks.h" |
15 #include "chrome/browser/sync_file_system/sync_direction.h" | 15 #include "chrome/browser/sync_file_system/sync_direction.h" |
16 #include "net/base/network_change_notifier.h" | 16 #include "net/base/network_change_notifier.h" |
17 | 17 |
18 class GURL; | 18 class GURL; |
19 | 19 |
20 namespace base { | 20 namespace base { |
21 class FilePath; | 21 class FilePath; |
22 class ListValue; | 22 class ListValue; |
23 } | 23 } |
24 | 24 |
25 namespace drive { | |
26 class DriveServiceInterface; | |
27 class DriveUploaderInterface; | |
28 } | |
29 | |
30 namespace storage { | 25 namespace storage { |
31 class FileSystemURL; | 26 class FileSystemURL; |
32 } | 27 } |
33 | 28 |
34 namespace sync_file_system { | 29 namespace sync_file_system { |
35 | 30 |
36 class FileChange; | 31 class FileChange; |
37 class SyncFileMetadata; | 32 class SyncFileMetadata; |
38 | 33 |
39 namespace drive_backend { | 34 namespace drive_backend { |
40 | 35 |
41 class MetadataDatabase; | |
42 class RemoteChangeProcessorOnWorker; | 36 class RemoteChangeProcessorOnWorker; |
43 class SyncEngineContext; | 37 class SyncEngineContext; |
44 class SyncTaskManager; | |
45 | 38 |
46 class SyncWorkerInterface { | 39 class SyncWorkerInterface { |
47 public: | 40 public: |
48 class Observer { | 41 class Observer { |
49 public: | 42 public: |
50 virtual void OnPendingFileListUpdated(int item_count) = 0; | 43 virtual void OnPendingFileListUpdated(int item_count) = 0; |
51 virtual void OnFileStatusChanged(const storage::FileSystemURL& url, | 44 virtual void OnFileStatusChanged(const storage::FileSystemURL& url, |
52 SyncFileType file_type, | 45 SyncFileType file_type, |
53 SyncFileStatus file_status, | 46 SyncFileStatus file_status, |
54 SyncAction sync_action, | 47 SyncAction sync_action, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 private: | 100 private: |
108 friend class SyncEngineTest; | 101 friend class SyncEngineTest; |
109 | 102 |
110 DISALLOW_COPY_AND_ASSIGN(SyncWorkerInterface); | 103 DISALLOW_COPY_AND_ASSIGN(SyncWorkerInterface); |
111 }; | 104 }; |
112 | 105 |
113 } // namespace drive_backend | 106 } // namespace drive_backend |
114 } // namespace sync_file_system | 107 } // namespace sync_file_system |
115 | 108 |
116 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_INTERFACE_H
_ | 109 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_WORKER_INTERFACE_H
_ |
OLD | NEW |