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_FAKE_SYNC_WORKER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_SYNC_WORKER_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_SYNC_WORKER_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_SYNC_WORKER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
15 #include "base/sequence_checker.h" | 15 #include "base/sequence_checker.h" |
16 #include "chrome/browser/sync_file_system/drive_backend/sync_worker_interface.h" | 16 #include "chrome/browser/sync_file_system/drive_backend/sync_worker_interface.h" |
17 #include "chrome/browser/sync_file_system/remote_file_sync_service.h" | 17 #include "chrome/browser/sync_file_system/remote_file_sync_service.h" |
18 #include "chrome/browser/sync_file_system/sync_callbacks.h" | 18 #include "chrome/browser/sync_file_system/sync_callbacks.h" |
19 #include "net/base/network_change_notifier.h" | 19 #include "net/base/network_change_notifier.h" |
20 | 20 |
21 class GURL; | 21 class GURL; |
22 | 22 |
23 namespace base { | 23 namespace base { |
24 class FilePath; | 24 class FilePath; |
25 class ListValue; | 25 class ListValue; |
26 } | 26 } |
27 | 27 |
28 namespace drive { | |
29 class DriveServiceInterface; | |
30 class DriveUploaderInterface; | |
31 } | |
32 | |
33 namespace storage { | 28 namespace storage { |
34 class FileSystemURL; | 29 class FileSystemURL; |
35 } | 30 } |
36 | 31 |
37 namespace sync_file_system { | 32 namespace sync_file_system { |
38 | 33 |
39 class FileChange; | 34 class FileChange; |
40 class SyncFileMetadata; | 35 class SyncFileMetadata; |
41 | 36 |
42 namespace drive_backend { | 37 namespace drive_backend { |
43 | 38 |
44 class MetadataDatabase; | |
45 class RemoteChangeProcessorOnWorker; | 39 class RemoteChangeProcessorOnWorker; |
46 class SyncEngineContext; | 40 class SyncEngineContext; |
47 class SyncTaskManager; | |
48 | 41 |
49 class FakeSyncWorker : public SyncWorkerInterface { | 42 class FakeSyncWorker : public SyncWorkerInterface { |
50 public: | 43 public: |
51 FakeSyncWorker(); | 44 FakeSyncWorker(); |
52 ~FakeSyncWorker() override; | 45 ~FakeSyncWorker() override; |
53 | 46 |
54 // SyncWorkerInterface overrides. | 47 // SyncWorkerInterface overrides. |
55 void Initialize( | 48 void Initialize( |
56 std::unique_ptr<SyncEngineContext> sync_engine_context) override; | 49 std::unique_ptr<SyncEngineContext> sync_engine_context) override; |
57 void RegisterOrigin(const GURL& origin, | 50 void RegisterOrigin(const GURL& origin, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 base::ObserverList<Observer> observers_; | 99 base::ObserverList<Observer> observers_; |
107 base::SequenceChecker sequence_checker_; | 100 base::SequenceChecker sequence_checker_; |
108 | 101 |
109 DISALLOW_COPY_AND_ASSIGN(FakeSyncWorker); | 102 DISALLOW_COPY_AND_ASSIGN(FakeSyncWorker); |
110 }; | 103 }; |
111 | 104 |
112 } // namespace drive_backend | 105 } // namespace drive_backend |
113 } // namespace sync_file_system | 106 } // namespace sync_file_system |
114 | 107 |
115 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_SYNC_WORKER_H_ | 108 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_FAKE_SYNC_WORKER_H_ |
OLD | NEW |