| 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 COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ | 5 #ifndef COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ |
| 6 #define COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ | 6 #define COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 // Kick off shutdown procedure. Attempts to cut short any long-lived or | 125 // Kick off shutdown procedure. Attempts to cut short any long-lived or |
| 126 // blocking sync thread tasks so that the shutdown on sync thread task that | 126 // blocking sync thread tasks so that the shutdown on sync thread task that |
| 127 // we're about to post won't have to wait very long. | 127 // we're about to post won't have to wait very long. |
| 128 virtual void StopSyncingForShutdown() = 0; | 128 virtual void StopSyncingForShutdown() = 0; |
| 129 | 129 |
| 130 // See the implementation and Core::DoShutdown for details. | 130 // See the implementation and Core::DoShutdown for details. |
| 131 // Must be called *after* StopSyncingForShutdown. | 131 // Must be called *after* StopSyncingForShutdown. |
| 132 virtual void Shutdown(ShutdownReason reason) = 0; | 132 virtual void Shutdown(ShutdownReason reason) = 0; |
| 133 | 133 |
| 134 // Removes all current registrations from the backend on the | |
| 135 // InvalidationService. | |
| 136 virtual void UnregisterInvalidationIds() = 0; | |
| 137 | |
| 138 // Changes the set of data types that are currently being synced. | 134 // Changes the set of data types that are currently being synced. |
| 139 // The ready_task will be run when configuration is done with the | 135 // The ready_task will be run when configuration is done with the |
| 140 // set of all types that failed configuration (i.e., if its argument | 136 // set of all types that failed configuration (i.e., if its argument |
| 141 // is non-empty, then an error was encountered). | 137 // is non-empty, then an error was encountered). |
| 142 // Returns the set of types that are ready to start without needing any | 138 // Returns the set of types that are ready to start without needing any |
| 143 // further sync activity. | 139 // further sync activity. |
| 144 // ModelTypeConfigurer implementation. | 140 // ModelTypeConfigurer implementation. |
| 145 ModelTypeSet ConfigureDataTypes( | 141 ModelTypeSet ConfigureDataTypes( |
| 146 ConfigureReason reason, | 142 ConfigureReason reason, |
| 147 const DataTypeConfigStateMap& config_state_map, | 143 const DataTypeConfigStateMap& config_state_map, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 // See SyncManager::OnCookieJarChanged. | 211 // See SyncManager::OnCookieJarChanged. |
| 216 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; | 212 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; |
| 217 | 213 |
| 218 private: | 214 private: |
| 219 DISALLOW_COPY_AND_ASSIGN(SyncEngine); | 215 DISALLOW_COPY_AND_ASSIGN(SyncEngine); |
| 220 }; | 216 }; |
| 221 | 217 |
| 222 } // namespace syncer | 218 } // namespace syncer |
| 223 | 219 |
| 224 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ | 220 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ |
| OLD | NEW |