| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 public RemoteFileSyncService::Observer, | 43 public RemoteFileSyncService::Observer, |
| 44 public FileStatusObserver, | 44 public FileStatusObserver, |
| 45 public content::NotificationObserver, | 45 public content::NotificationObserver, |
| 46 public base::SupportsWeakPtr<SyncFileSystemService> { | 46 public base::SupportsWeakPtr<SyncFileSystemService> { |
| 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 std::string& service_name, | |
| 54 const GURL& app_origin, | 53 const GURL& app_origin, |
| 55 const SyncStatusCallback& callback); | 54 const SyncStatusCallback& callback); |
| 56 | 55 |
| 57 SyncServiceState GetSyncServiceState(); | 56 SyncServiceState GetSyncServiceState(); |
| 58 | 57 |
| 59 // Returns the file |url|'s sync status. | 58 // Returns the file |url|'s sync status. |
| 60 void GetFileSyncStatus( | 59 void GetFileSyncStatus( |
| 61 const fileapi::FileSystemURL& url, | 60 const fileapi::FileSystemURL& url, |
| 62 const SyncFileStatusCallback& callback); | 61 const SyncFileStatusCallback& callback); |
| 63 | 62 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 base::OneShotTimer<SyncFileSystemService> sync_retry_timer_; | 169 base::OneShotTimer<SyncFileSystemService> sync_retry_timer_; |
| 171 | 170 |
| 172 ObserverList<SyncEventObserver> observers_; | 171 ObserverList<SyncEventObserver> observers_; |
| 173 | 172 |
| 174 DISALLOW_COPY_AND_ASSIGN(SyncFileSystemService); | 173 DISALLOW_COPY_AND_ASSIGN(SyncFileSystemService); |
| 175 }; | 174 }; |
| 176 | 175 |
| 177 } // namespace sync_file_system | 176 } // namespace sync_file_system |
| 178 | 177 |
| 179 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ | 178 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ |
| OLD | NEW |