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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 ~ProfileSyncService() override; | 270 ~ProfileSyncService() override; |
271 | 271 |
272 // Initializes the object. This must be called at most once, and | 272 // Initializes the object. This must be called at most once, and |
273 // immediately after an object of this class is constructed. | 273 // immediately after an object of this class is constructed. |
274 void Initialize(); | 274 void Initialize(); |
275 | 275 |
276 // sync_driver::SyncService implementation | 276 // sync_driver::SyncService implementation |
277 bool HasSyncSetupCompleted() const override; | 277 bool HasSyncSetupCompleted() const override; |
278 bool IsSyncAllowed() const override; | 278 bool IsSyncAllowed() const override; |
279 bool IsSyncActive() const override; | 279 bool IsSyncActive() const override; |
280 bool IsSyncEnabledAndLoggedIn() override; | 280 bool CanSyncStart() const override; |
281 void DisableForUser() override; | 281 void DisableForUser() override; |
282 void RequestStop() override; | 282 void RequestStop() override; |
283 void RequestStart() override; | 283 void RequestStart() override; |
284 syncer::ModelTypeSet GetActiveDataTypes() const override; | 284 syncer::ModelTypeSet GetActiveDataTypes() const override; |
285 syncer::ModelTypeSet GetPreferredDataTypes() const override; | 285 syncer::ModelTypeSet GetPreferredDataTypes() const override; |
286 void OnUserChoseDatatypes(bool sync_everything, | 286 void OnUserChoseDatatypes(bool sync_everything, |
287 syncer::ModelTypeSet chosen_types) override; | 287 syncer::ModelTypeSet chosen_types) override; |
288 void SetSyncSetupCompleted() override; | 288 void SetSyncSetupCompleted() override; |
289 bool FirstSetupInProgress() const override; | 289 bool FirstSetupInProgress() const override; |
290 void SetSetupInProgress(bool setup_in_progress) override; | 290 void SetSetupInProgress(bool setup_in_progress) override; |
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1098 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; | 1098 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; |
1099 | 1099 |
1100 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1100 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
1101 }; | 1101 }; |
1102 | 1102 |
1103 bool ShouldShowActionOnUI( | 1103 bool ShouldShowActionOnUI( |
1104 const syncer::SyncProtocolError& error); | 1104 const syncer::SyncProtocolError& error); |
1105 | 1105 |
1106 | 1106 |
1107 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1107 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |