OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SYNC_FILE_SYSTEM_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 void OnPromotionCompleted(int* num_running_jobs); | 81 void OnPromotionCompleted(int* num_running_jobs); |
82 void CheckIfIdle(); | 82 void CheckIfIdle(); |
83 | 83 |
84 TaskLogger* task_logger() { return &task_logger_; } | 84 TaskLogger* task_logger() { return &task_logger_; } |
85 | 85 |
86 void CallOnIdleForTesting(const base::Closure& callback); | 86 void CallOnIdleForTesting(const base::Closure& callback); |
87 | 87 |
88 private: | 88 private: |
89 friend class SyncFileSystemServiceFactory; | 89 friend class SyncFileSystemServiceFactory; |
90 friend class SyncFileSystemServiceTest; | 90 friend class SyncFileSystemServiceTest; |
| 91 friend class SyncFileSystemTest; |
91 friend struct base::DefaultDeleter<SyncFileSystemService>; | 92 friend struct base::DefaultDeleter<SyncFileSystemService>; |
92 friend class LocalSyncRunner; | 93 friend class LocalSyncRunner; |
93 friend class RemoteSyncRunner; | 94 friend class RemoteSyncRunner; |
94 | 95 |
95 explicit SyncFileSystemService(Profile* profile); | 96 explicit SyncFileSystemService(Profile* profile); |
96 virtual ~SyncFileSystemService(); | 97 virtual ~SyncFileSystemService(); |
97 | 98 |
98 void Initialize(scoped_ptr<LocalFileSyncService> local_file_service, | 99 void Initialize(scoped_ptr<LocalFileSyncService> local_file_service, |
99 scoped_ptr<RemoteFileSyncService> remote_file_service); | 100 scoped_ptr<RemoteFileSyncService> remote_file_service); |
100 | 101 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 | 187 |
187 bool promoting_demoted_changes_; | 188 bool promoting_demoted_changes_; |
188 base::Closure idle_callback_; | 189 base::Closure idle_callback_; |
189 | 190 |
190 DISALLOW_COPY_AND_ASSIGN(SyncFileSystemService); | 191 DISALLOW_COPY_AND_ASSIGN(SyncFileSystemService); |
191 }; | 192 }; |
192 | 193 |
193 } // namespace sync_file_system | 194 } // namespace sync_file_system |
194 | 195 |
195 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ | 196 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ |
OLD | NEW |