| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SYNC_DRIVER_STARTUP_CONTROLLER_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_STARTUP_CONTROLLER_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_STARTUP_CONTROLLER_H_ | 6 #define COMPONENTS_SYNC_DRIVER_STARTUP_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "sync/internal_api/public/base/model_type.h" | 11 #include "components/sync/base/model_type.h" |
| 12 | 12 |
| 13 namespace sync_driver { | 13 namespace sync_driver { |
| 14 class SyncPrefs; | 14 class SyncPrefs; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace browser_sync { | 17 namespace browser_sync { |
| 18 | 18 |
| 19 // This class is used by ProfileSyncService to manage all logic and state | 19 // This class is used by ProfileSyncService to manage all logic and state |
| 20 // pertaining to initialization of the SyncBackendHost (colloquially referred | 20 // pertaining to initialization of the SyncBackendHost (colloquially referred |
| 21 // to as "the backend"). | 21 // to as "the backend"). |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 // Used to compute preferred_types from SyncPrefs as-needed. | 109 // Used to compute preferred_types from SyncPrefs as-needed. |
| 110 syncer::ModelTypeSet registered_types_; | 110 syncer::ModelTypeSet registered_types_; |
| 111 | 111 |
| 112 base::WeakPtrFactory<StartupController> weak_factory_; | 112 base::WeakPtrFactory<StartupController> weak_factory_; |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 } // namespace browser_sync | 115 } // namespace browser_sync |
| 116 | 116 |
| 117 #endif // COMPONENTS_SYNC_DRIVER_STARTUP_CONTROLLER_H_ | 117 #endif // COMPONENTS_SYNC_DRIVER_STARTUP_CONTROLLER_H_ |
| OLD | NEW |