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 SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 // untouched. The purged data is backed up in delete journal for recovery in | 379 // untouched. The purged data is backed up in delete journal for recovery in |
380 // next session if its type is in |to_journal|. If in |to_unapply| | 380 // next session if its type is in |to_journal|. If in |to_unapply| |
381 // only the local data is removed; the server data is preserved. | 381 // only the local data is removed; the server data is preserved. |
382 // |ready_task| is invoked when the configuration completes. | 382 // |ready_task| is invoked when the configuration completes. |
383 // |retry_task| is invoked if the configuration job could not immediately | 383 // |retry_task| is invoked if the configuration job could not immediately |
384 // execute. |ready_task| will still be called when it eventually | 384 // execute. |ready_task| will still be called when it eventually |
385 // does finish. | 385 // does finish. |
386 virtual void ConfigureSyncer( | 386 virtual void ConfigureSyncer( |
387 ConfigureReason reason, | 387 ConfigureReason reason, |
388 ModelTypeSet to_download, | 388 ModelTypeSet to_download, |
| 389 ModelTypeSet to_purge, |
389 ModelTypeSet to_journal, | 390 ModelTypeSet to_journal, |
390 ModelTypeSet to_unapply, | 391 ModelTypeSet to_unapply, |
391 ModelTypeSet to_ignore, | |
392 const ModelSafeRoutingInfo& new_routing_info, | 392 const ModelSafeRoutingInfo& new_routing_info, |
393 const base::Closure& ready_task, | 393 const base::Closure& ready_task, |
394 const base::Closure& retry_task) = 0; | 394 const base::Closure& retry_task) = 0; |
395 | 395 |
396 // Adds a listener to be notified of sync events. | 396 // Adds a listener to be notified of sync events. |
397 // NOTE: It is OK (in fact, it's probably a good idea) to call this before | 397 // NOTE: It is OK (in fact, it's probably a good idea) to call this before |
398 // having received OnInitializationCompleted. | 398 // having received OnInitializationCompleted. |
399 virtual void AddObserver(Observer* observer) = 0; | 399 virtual void AddObserver(Observer* observer) = 0; |
400 | 400 |
401 // Remove the given observer. Make sure to call this if the | 401 // Remove the given observer. Make sure to call this if the |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 // Returns the SyncManager's encryption handler. | 443 // Returns the SyncManager's encryption handler. |
444 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; | 444 virtual SyncEncryptionHandler* GetEncryptionHandler() = 0; |
445 | 445 |
446 // Ask the SyncManager to fetch updates for the given types. | 446 // Ask the SyncManager to fetch updates for the given types. |
447 virtual void RefreshTypes(ModelTypeSet types) = 0; | 447 virtual void RefreshTypes(ModelTypeSet types) = 0; |
448 }; | 448 }; |
449 | 449 |
450 } // namespace syncer | 450 } // namespace syncer |
451 | 451 |
452 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 452 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
OLD | NEW |