| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 virtual void Observe(int type, | 124 virtual void Observe(int type, |
| 125 const content::NotificationSource& source, | 125 const content::NotificationSource& source, |
| 126 const content::NotificationDetails& details) OVERRIDE; | 126 const content::NotificationDetails& details) OVERRIDE; |
| 127 | 127 |
| 128 // ProfileSyncServiceObserver: | 128 // ProfileSyncServiceObserver: |
| 129 virtual void OnStateChanged() OVERRIDE; | 129 virtual void OnStateChanged() OVERRIDE; |
| 130 | 130 |
| 131 // SyncFileStatusObserver: | 131 // SyncFileStatusObserver: |
| 132 virtual void OnFileStatusChanged( | 132 virtual void OnFileStatusChanged( |
| 133 const fileapi::FileSystemURL& url, | 133 const fileapi::FileSystemURL& url, |
| 134 fileapi::SyncFileStatus sync_status, | 134 SyncFileStatus sync_status, |
| 135 fileapi::SyncAction action_taken, | 135 SyncAction action_taken, |
| 136 fileapi::SyncDirection direction) OVERRIDE; | 136 SyncDirection direction) OVERRIDE; |
| 137 | 137 |
| 138 // Check the profile's sync preference settings and call | 138 // Check the profile's sync preference settings and call |
| 139 // remote_file_service_->SetSyncEnabled() to update the status. | 139 // remote_file_service_->SetSyncEnabled() to update the status. |
| 140 // |profile_sync_service| must be non-null. | 140 // |profile_sync_service| must be non-null. |
| 141 void UpdateSyncEnabledStatus(ProfileSyncServiceBase* profile_sync_service); | 141 void UpdateSyncEnabledStatus(ProfileSyncServiceBase* profile_sync_service); |
| 142 | 142 |
| 143 Profile* profile_; | 143 Profile* profile_; |
| 144 content::NotificationRegistrar registrar_; | 144 content::NotificationRegistrar registrar_; |
| 145 | 145 |
| 146 int64 pending_local_changes_; | 146 int64 pending_local_changes_; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 // ProfileKeyedServiceFactory overrides. | 188 // ProfileKeyedServiceFactory overrides. |
| 189 virtual ProfileKeyedService* BuildServiceInstanceFor( | 189 virtual ProfileKeyedService* BuildServiceInstanceFor( |
| 190 Profile* profile) const OVERRIDE; | 190 Profile* profile) const OVERRIDE; |
| 191 | 191 |
| 192 mutable scoped_ptr<RemoteFileSyncService> mock_remote_file_service_; | 192 mutable scoped_ptr<RemoteFileSyncService> mock_remote_file_service_; |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 } // namespace sync_file_system | 195 } // namespace sync_file_system |
| 196 | 196 |
| 197 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ | 197 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_SERVICE_H_ |
| OLD | NEW |