| 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 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 } SyncServiceState; | 37 } SyncServiceState; |
| 38 | 38 |
| 39 // The set of user-selectable datatypes handled by Chrome for iOS. | 39 // The set of user-selectable datatypes handled by Chrome for iOS. |
| 40 typedef enum { | 40 typedef enum { |
| 41 kSyncBookmarks, | 41 kSyncBookmarks, |
| 42 kSyncOmniboxHistory, | 42 kSyncOmniboxHistory, |
| 43 kSyncPasswords, | 43 kSyncPasswords, |
| 44 kSyncOpenTabs, | 44 kSyncOpenTabs, |
| 45 kSyncAutofill, | 45 kSyncAutofill, |
| 46 kSyncPreferences, | 46 kSyncPreferences, |
| 47 kSyncReadingList, |
| 47 kNumberOfSyncableDatatypes | 48 kNumberOfSyncableDatatypes |
| 48 } SyncableDatatype; | 49 } SyncableDatatype; |
| 49 | 50 |
| 50 SyncSetupService(syncer::SyncService* sync_service, PrefService* prefs); | 51 SyncSetupService(syncer::SyncService* sync_service, PrefService* prefs); |
| 51 ~SyncSetupService() override; | 52 ~SyncSetupService() override; |
| 52 | 53 |
| 53 // Returns the |syncer::ModelType| associated to the given | 54 // Returns the |syncer::ModelType| associated to the given |
| 54 // |SyncableDatatypes|. | 55 // |SyncableDatatypes|. |
| 55 syncer::ModelType GetModelType(SyncableDatatype datatype); | 56 syncer::ModelType GetModelType(SyncableDatatype datatype); |
| 56 | 57 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 PrefService* const prefs_; | 109 PrefService* const prefs_; |
| 109 syncer::ModelTypeSet user_selectable_types_; | 110 syncer::ModelTypeSet user_selectable_types_; |
| 110 | 111 |
| 111 // Prevents Sync from running until configuration is complete. | 112 // Prevents Sync from running until configuration is complete. |
| 112 std::unique_ptr<syncer::SyncSetupInProgressHandle> sync_blocker_; | 113 std::unique_ptr<syncer::SyncSetupInProgressHandle> sync_blocker_; |
| 113 | 114 |
| 114 DISALLOW_COPY_AND_ASSIGN(SyncSetupService); | 115 DISALLOW_COPY_AND_ASSIGN(SyncSetupService); |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 #endif // IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_H_ | 118 #endif // IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_H_ |
| OLD | NEW |