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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 void Shutdown(bool sync_disabled); | 224 void Shutdown(bool sync_disabled); |
225 | 225 |
226 // Changes the set of data types that are currently being synced. | 226 // Changes the set of data types that are currently being synced. |
227 // The ready_task will be run when configuration is done with the | 227 // The ready_task will be run when configuration is done with the |
228 // set of all types that failed configuration (i.e., if its argument | 228 // set of all types that failed configuration (i.e., if its argument |
229 // is non-empty, then an error was encountered). | 229 // is non-empty, then an error was encountered). |
230 virtual void ConfigureDataTypes( | 230 virtual void ConfigureDataTypes( |
231 syncer::ConfigureReason reason, | 231 syncer::ConfigureReason reason, |
232 syncer::ModelTypeSet types_to_add, | 232 syncer::ModelTypeSet types_to_add, |
233 syncer::ModelTypeSet types_to_remove, | 233 syncer::ModelTypeSet types_to_remove, |
234 NigoriState nigori_state, | |
235 const base::Callback<void(syncer::ModelTypeSet)>& ready_task, | 234 const base::Callback<void(syncer::ModelTypeSet)>& ready_task, |
236 const base::Callback<void()>& retry_callback) OVERRIDE; | 235 const base::Callback<void()>& retry_callback) OVERRIDE; |
237 | 236 |
238 // Turns on encryption of all present and future sync data. | 237 // Turns on encryption of all present and future sync data. |
239 virtual void EnableEncryptEverything(); | 238 virtual void EnableEncryptEverything(); |
240 | 239 |
241 // Activates change processing for the given data type. This must | 240 // Activates change processing for the given data type. This must |
242 // be called synchronously with the data type's model association so | 241 // be called synchronously with the data type's model association so |
243 // no changes are dropped between model association and change | 242 // no changes are dropped between model association and change |
244 // processor activation. | 243 // processor activation. |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 | 529 |
531 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. | 530 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. |
532 syncer::sessions::SyncSessionSnapshot last_snapshot_; | 531 syncer::sessions::SyncSessionSnapshot last_snapshot_; |
533 | 532 |
534 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 533 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
535 }; | 534 }; |
536 | 535 |
537 } // namespace browser_sync | 536 } // namespace browser_sync |
538 | 537 |
539 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 538 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
OLD | NEW |