| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 virtual void ConfigureDataTypes( | 136 virtual void ConfigureDataTypes( |
| 137 syncer::ConfigureReason reason, | 137 syncer::ConfigureReason reason, |
| 138 const DataTypeConfigStateMap& config_state_map, | 138 const DataTypeConfigStateMap& config_state_map, |
| 139 const base::Callback<void(syncer::ModelTypeSet, | 139 const base::Callback<void(syncer::ModelTypeSet, |
| 140 syncer::ModelTypeSet)>& ready_task, | 140 syncer::ModelTypeSet)>& ready_task, |
| 141 const base::Callback<void()>& retry_callback) OVERRIDE = 0; | 141 const base::Callback<void()>& retry_callback) override = 0; |
| 142 | 142 |
| 143 // Turns on encryption of all present and future sync data. | 143 // Turns on encryption of all present and future sync data. |
| 144 virtual void EnableEncryptEverything() = 0; | 144 virtual void EnableEncryptEverything() = 0; |
| 145 | 145 |
| 146 // Called on |frontend_loop_| to obtain a handle to the UserShare needed for | 146 // Called on |frontend_loop_| to obtain a handle to the UserShare needed for |
| 147 // creating transactions. Should not be called before we signal | 147 // creating transactions. Should not be called before we signal |
| 148 // initialization is complete with OnBackendInitialized(). | 148 // initialization is complete with OnBackendInitialized(). |
| 149 virtual syncer::UserShare* GetUserShare() const = 0; | 149 virtual syncer::UserShare* GetUserShare() const = 0; |
| 150 | 150 |
| 151 // Called on |frontend_loop_| to obtain a handle to the SyncContext needed by | 151 // Called on |frontend_loop_| to obtain a handle to the SyncContext needed by |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0; | 213 virtual void DisableDirectoryTypeDebugInfoForwarding() = 0; |
| 214 | 214 |
| 215 virtual base::MessageLoop* GetSyncLoopForTesting() = 0; | 215 virtual base::MessageLoop* GetSyncLoopForTesting() = 0; |
| 216 | 216 |
| 217 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 217 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 218 }; | 218 }; |
| 219 | 219 |
| 220 } // namespace browser_sync | 220 } // namespace browser_sync |
| 221 | 221 |
| 222 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 222 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |