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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // process when it detects changes in remote/local filesystem for | 70 // process when it detects changes in remote/local filesystem for |
71 // registered origins. | 71 // registered origins. |
72 // It is enabled by default but can be disabled for testing (or maybe | 72 // It is enabled by default but can be disabled for testing (or maybe |
73 // via an explicit API call). | 73 // via an explicit API call). |
74 void set_auto_sync_enabled(bool flag) { auto_sync_enabled_ = flag; } | 74 void set_auto_sync_enabled(bool flag) { auto_sync_enabled_ = flag; } |
75 bool auto_sync_enabled() const { return auto_sync_enabled_; } | 75 bool auto_sync_enabled() const { return auto_sync_enabled_; } |
76 | 76 |
77 private: | 77 private: |
78 friend class SyncFileSystemServiceFactory; | 78 friend class SyncFileSystemServiceFactory; |
79 friend class SyncFileSystemServiceTest; | 79 friend class SyncFileSystemServiceTest; |
80 friend class scoped_ptr<SyncFileSystemService>; | 80 friend struct base::DefaultDeleter<SyncFileSystemService>; |
81 | 81 |
82 explicit SyncFileSystemService(Profile* profile); | 82 explicit SyncFileSystemService(Profile* profile); |
83 virtual ~SyncFileSystemService(); | 83 virtual ~SyncFileSystemService(); |
84 | 84 |
85 void Initialize(scoped_ptr<LocalFileSyncService> local_file_service, | 85 void Initialize(scoped_ptr<LocalFileSyncService> local_file_service, |
86 scoped_ptr<RemoteFileSyncService> remote_file_service); | 86 scoped_ptr<RemoteFileSyncService> remote_file_service); |
87 | 87 |
88 void DidGetConflictFileInfo(const fileapi::ConflictFileInfoCallback& callback, | 88 void DidGetConflictFileInfo(const fileapi::ConflictFileInfoCallback& callback, |
89 const fileapi::FileSystemURL& url, | 89 const fileapi::FileSystemURL& url, |
90 const fileapi::SyncFileMetadata* local_metadata, | 90 const fileapi::SyncFileMetadata* local_metadata, |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // ProfileKeyedServiceFactory overrides. | 178 // ProfileKeyedServiceFactory overrides. |
179 virtual ProfileKeyedService* BuildServiceInstanceFor( | 179 virtual ProfileKeyedService* BuildServiceInstanceFor( |
180 Profile* profile) const OVERRIDE; | 180 Profile* profile) const OVERRIDE; |
181 | 181 |
182 mutable scoped_ptr<RemoteFileSyncService> mock_remote_file_service_; | 182 mutable scoped_ptr<RemoteFileSyncService> mock_remote_file_service_; |
183 }; | 183 }; |
184 | 184 |
185 } // namespace sync_file_system | 185 } // namespace sync_file_system |
186 | 186 |
187 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ | 187 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ |
OLD | NEW |