| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_H_ | 5 #ifndef IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_H_ |
| 6 #define IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_H_ | 6 #define IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 #include "components/keyed_service/core/keyed_service.h" | 12 #include "components/keyed_service/core/keyed_service.h" |
| 13 #include "sync/internal_api/public/base/model_type.h" | 13 #include "components/sync/base/model_type.h" |
| 14 #include "sync/internal_api/public/util/syncer_error.h" | 14 #include "components/sync/base/syncer_error.h" |
| 15 | 15 |
| 16 namespace sync_driver { | 16 namespace sync_driver { |
| 17 class SyncService; | 17 class SyncService; |
| 18 class SyncSetupInProgressHandle; | 18 class SyncSetupInProgressHandle; |
| 19 } | 19 } |
| 20 | 20 |
| 21 class PrefService; | 21 class PrefService; |
| 22 | 22 |
| 23 // Class that allows configuring sync. It handles enabling and disabling it, as | 23 // Class that allows configuring sync. It handles enabling and disabling it, as |
| 24 // well as choosing datatypes. Most actions are delayed until a commit is done, | 24 // well as choosing datatypes. Most actions are delayed until a commit is done, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 PrefService* const prefs_; | 106 PrefService* const prefs_; |
| 107 syncer::ModelTypeSet user_selectable_types_; | 107 syncer::ModelTypeSet user_selectable_types_; |
| 108 | 108 |
| 109 // Prevents Sync from running until configuration is complete. | 109 // Prevents Sync from running until configuration is complete. |
| 110 std::unique_ptr<sync_driver::SyncSetupInProgressHandle> sync_blocker_; | 110 std::unique_ptr<sync_driver::SyncSetupInProgressHandle> sync_blocker_; |
| 111 | 111 |
| 112 DISALLOW_COPY_AND_ASSIGN(SyncSetupService); | 112 DISALLOW_COPY_AND_ASSIGN(SyncSetupService); |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 #endif // IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_H_ | 115 #endif // IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_H_ |
| OLD | NEW |