| 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_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 ~ProfileSyncService() override; | 237 ~ProfileSyncService() override; |
| 238 | 238 |
| 239 // Initializes the object. This must be called at most once, and | 239 // Initializes the object. This must be called at most once, and |
| 240 // immediately after an object of this class is constructed. | 240 // immediately after an object of this class is constructed. |
| 241 void Initialize(); | 241 void Initialize(); |
| 242 | 242 |
| 243 // sync_driver::SyncService implementation | 243 // sync_driver::SyncService implementation |
| 244 bool HasSyncSetupCompleted() const override; | 244 bool HasSyncSetupCompleted() const override; |
| 245 bool IsSyncAllowed() const override; | 245 bool IsSyncAllowed() const override; |
| 246 bool IsSyncActive() const override; | 246 bool IsSyncActive() const override; |
| 247 void TriggerRefresh(const syncer::ModelTypeSet& types) override; |
| 247 void OnDataTypeRequestsSyncStartup(syncer::ModelType type) override; | 248 void OnDataTypeRequestsSyncStartup(syncer::ModelType type) override; |
| 248 bool CanSyncStart() const override; | 249 bool CanSyncStart() const override; |
| 249 void RequestStop(SyncStopDataFate data_fate) override; | 250 void RequestStop(SyncStopDataFate data_fate) override; |
| 250 void RequestStart() override; | 251 void RequestStart() override; |
| 251 syncer::ModelTypeSet GetActiveDataTypes() const override; | 252 syncer::ModelTypeSet GetActiveDataTypes() const override; |
| 252 sync_driver::SyncClient* GetSyncClient() const override; | 253 sync_driver::SyncClient* GetSyncClient() const override; |
| 253 syncer::ModelTypeSet GetPreferredDataTypes() const override; | 254 syncer::ModelTypeSet GetPreferredDataTypes() const override; |
| 254 void OnUserChoseDatatypes(bool sync_everything, | 255 void OnUserChoseDatatypes(bool sync_everything, |
| 255 syncer::ModelTypeSet chosen_types) override; | 256 syncer::ModelTypeSet chosen_types) override; |
| 256 void SetSyncSetupCompleted() override; | 257 void SetSyncSetupCompleted() override; |
| (...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 986 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; | 987 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; |
| 987 | 988 |
| 988 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 989 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 989 }; | 990 }; |
| 990 | 991 |
| 991 bool ShouldShowActionOnUI( | 992 bool ShouldShowActionOnUI( |
| 992 const syncer::SyncProtocolError& error); | 993 const syncer::SyncProtocolError& error); |
| 993 | 994 |
| 994 | 995 |
| 995 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 996 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |