| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 public: | 47 public: |
| 48 // BrowserContextKeyedService overrides. | 48 // BrowserContextKeyedService overrides. |
| 49 virtual void Shutdown() OVERRIDE; | 49 virtual void Shutdown() OVERRIDE; |
| 50 | 50 |
| 51 void InitializeForApp( | 51 void InitializeForApp( |
| 52 fileapi::FileSystemContext* file_system_context, | 52 fileapi::FileSystemContext* file_system_context, |
| 53 const GURL& app_origin, | 53 const GURL& app_origin, |
| 54 const SyncStatusCallback& callback); | 54 const SyncStatusCallback& callback); |
| 55 | 55 |
| 56 SyncServiceState GetSyncServiceState(); | 56 SyncServiceState GetSyncServiceState(); |
| 57 void GetExtensionStatusMap(std::map<GURL, std::string>* status_map); |
| 57 | 58 |
| 58 // Returns the file |url|'s sync status. | 59 // Returns the file |url|'s sync status. |
| 59 void GetFileSyncStatus( | 60 void GetFileSyncStatus( |
| 60 const fileapi::FileSystemURL& url, | 61 const fileapi::FileSystemURL& url, |
| 61 const SyncFileStatusCallback& callback); | 62 const SyncFileStatusCallback& callback); |
| 62 | 63 |
| 63 void AddSyncEventObserver(SyncEventObserver* observer); | 64 void AddSyncEventObserver(SyncEventObserver* observer); |
| 64 void RemoveSyncEventObserver(SyncEventObserver* observer); | 65 void RemoveSyncEventObserver(SyncEventObserver* observer); |
| 65 | 66 |
| 66 ConflictResolutionPolicy GetConflictResolutionPolicy() const; | 67 ConflictResolutionPolicy GetConflictResolutionPolicy() const; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 base::OneShotTimer<SyncFileSystemService> sync_retry_timer_; | 170 base::OneShotTimer<SyncFileSystemService> sync_retry_timer_; |
| 170 | 171 |
| 171 ObserverList<SyncEventObserver> observers_; | 172 ObserverList<SyncEventObserver> observers_; |
| 172 | 173 |
| 173 DISALLOW_COPY_AND_ASSIGN(SyncFileSystemService); | 174 DISALLOW_COPY_AND_ASSIGN(SyncFileSystemService); |
| 174 }; | 175 }; |
| 175 | 176 |
| 176 } // namespace sync_file_system | 177 } // namespace sync_file_system |
| 177 | 178 |
| 178 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ | 179 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ |
| OLD | NEW |