| 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_GLUE_SYNC_BACKEND_HOST_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 virtual scoped_ptr<base::Thread> Shutdown(syncer::ShutdownReason reason) = 0; | 126 virtual scoped_ptr<base::Thread> Shutdown(syncer::ShutdownReason reason) = 0; |
| 127 | 127 |
| 128 // Removes all current registrations from the backend on the | 128 // Removes all current registrations from the backend on the |
| 129 // InvalidationService. | 129 // InvalidationService. |
| 130 virtual void UnregisterInvalidationIds() = 0; | 130 virtual void UnregisterInvalidationIds() = 0; |
| 131 | 131 |
| 132 // Changes the set of data types that are currently being synced. | 132 // Changes the set of data types that are currently being synced. |
| 133 // The ready_task will be run when configuration is done with the | 133 // The ready_task will be run when configuration is done with the |
| 134 // set of all types that failed configuration (i.e., if its argument | 134 // set of all types that failed configuration (i.e., if its argument |
| 135 // is non-empty, then an error was encountered). | 135 // is non-empty, then an error was encountered). |
| 136 void ConfigureDataTypes( | 136 // Returns the set of types that are ready to start without needing any |
| 137 // further sync activity. |
| 138 // BackendDataTypeConfigurer implementation. |
| 139 syncer::ModelTypeSet ConfigureDataTypes( |
| 137 syncer::ConfigureReason reason, | 140 syncer::ConfigureReason reason, |
| 138 const DataTypeConfigStateMap& config_state_map, | 141 const DataTypeConfigStateMap& config_state_map, |
| 139 const base::Callback<void(syncer::ModelTypeSet, syncer::ModelTypeSet)>& | 142 const base::Callback<void(syncer::ModelTypeSet, syncer::ModelTypeSet)>& |
| 140 ready_task, | 143 ready_task, |
| 141 const base::Callback<void()>& retry_callback) override = 0; | 144 const base::Callback<void()>& retry_callback) override = 0; |
| 142 | 145 |
| 143 // Turns on encryption of all present and future sync data. | 146 // Turns on encryption of all present and future sync data. |
| 144 virtual void EnableEncryptEverything() = 0; | 147 virtual void EnableEncryptEverything() = 0; |
| 145 | 148 |
| 146 // Called on |frontend_loop_| to obtain a handle to the UserShare needed for | 149 // Called on |frontend_loop_| to obtain a handle to the UserShare needed for |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0; | 216 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0; |
| 214 | 217 |
| 215 virtual base::MessageLoop* GetSyncLoopForTesting() = 0; | 218 virtual base::MessageLoop* GetSyncLoopForTesting() = 0; |
| 216 | 219 |
| 217 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 220 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 218 }; | 221 }; |
| 219 | 222 |
| 220 } // namespace browser_sync | 223 } // namespace browser_sync |
| 221 | 224 |
| 222 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 225 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |