| 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 <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 content::BrowserContext* browser_context, | 141 content::BrowserContext* browser_context, |
| 142 const extensions::Extension* extension, | 142 const extensions::Extension* extension, |
| 143 extensions::UnloadedExtensionInfo::Reason reason) override; | 143 extensions::UnloadedExtensionInfo::Reason reason) override; |
| 144 void OnExtensionUninstalled(content::BrowserContext* browser_context, | 144 void OnExtensionUninstalled(content::BrowserContext* browser_context, |
| 145 const extensions::Extension* extension, | 145 const extensions::Extension* extension, |
| 146 extensions::UninstallReason reason) override; | 146 extensions::UninstallReason reason) override; |
| 147 void OnExtensionLoaded(content::BrowserContext* browser_context, | 147 void OnExtensionLoaded(content::BrowserContext* browser_context, |
| 148 const extensions::Extension* extension) override; | 148 const extensions::Extension* extension) override; |
| 149 | 149 |
| 150 // syncer::SyncServiceObserver implementation. | 150 // syncer::SyncServiceObserver implementation. |
| 151 void OnStateChanged() override; | 151 void OnStateChanged(syncer::SyncService* sync) override; |
| 152 | 152 |
| 153 // SyncFileStatusObserver implementation. | 153 // SyncFileStatusObserver implementation. |
| 154 void OnFileStatusChanged(const storage::FileSystemURL& url, | 154 void OnFileStatusChanged(const storage::FileSystemURL& url, |
| 155 SyncFileType file_type, | 155 SyncFileType file_type, |
| 156 SyncFileStatus sync_status, | 156 SyncFileStatus sync_status, |
| 157 SyncAction action_taken, | 157 SyncAction action_taken, |
| 158 SyncDirection direction) override; | 158 SyncDirection direction) override; |
| 159 | 159 |
| 160 // Check the profile's sync preference settings and call | 160 // Check the profile's sync preference settings and call |
| 161 // remote_file_service_->SetSyncEnabled() to update the status. | 161 // remote_file_service_->SetSyncEnabled() to update the status. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 183 | 183 |
| 184 bool promoting_demoted_changes_; | 184 bool promoting_demoted_changes_; |
| 185 base::Closure idle_callback_; | 185 base::Closure idle_callback_; |
| 186 | 186 |
| 187 DISALLOW_COPY_AND_ASSIGN(SyncFileSystemService); | 187 DISALLOW_COPY_AND_ASSIGN(SyncFileSystemService); |
| 188 }; | 188 }; |
| 189 | 189 |
| 190 } // namespace sync_file_system | 190 } // namespace sync_file_system |
| 191 | 191 |
| 192 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ | 192 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ |
| OLD | NEW |