| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_INTERNAL_API_SYNC_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| 6 #define CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 6 #define CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 // Switches the mode of operation to CONFIGURATION_MODE and | 489 // Switches the mode of operation to CONFIGURATION_MODE and |
| 490 // schedules a config task to fetch updates for |types|. | 490 // schedules a config task to fetch updates for |types|. |
| 491 void RequestConfig(const syncable::ModelTypeBitSet& types, | 491 void RequestConfig(const syncable::ModelTypeBitSet& types, |
| 492 sync_api::ConfigureReason reason); | 492 sync_api::ConfigureReason reason); |
| 493 | 493 |
| 494 void RequestCleanupDisabledTypes(); | 494 void RequestCleanupDisabledTypes(); |
| 495 | 495 |
| 496 // Request a clearing of all data on the server | 496 // Request a clearing of all data on the server |
| 497 void RequestClearServerData(); | 497 void RequestClearServerData(); |
| 498 | 498 |
| 499 // Add/remove change observers. | |
| 500 void AddChangeObserver(ChangeObserver* observer); | |
| 501 void RemoveChangeObserver(ChangeObserver* observer); | |
| 502 | |
| 503 // Adds a listener to be notified of sync events. | 499 // Adds a listener to be notified of sync events. |
| 504 // NOTE: It is OK (in fact, it's probably a good idea) to call this before | 500 // NOTE: It is OK (in fact, it's probably a good idea) to call this before |
| 505 // having received OnInitializationCompleted. | 501 // having received OnInitializationCompleted. |
| 506 void AddObserver(Observer* observer); | 502 void AddObserver(Observer* observer); |
| 507 | 503 |
| 508 // Remove the given observer. Make sure to call this if the | 504 // Remove the given observer. Make sure to call this if the |
| 509 // Observer is being destroyed so the SyncManager doesn't | 505 // Observer is being destroyed so the SyncManager doesn't |
| 510 // potentially dereference garbage. | 506 // potentially dereference garbage. |
| 511 void RemoveObserver(Observer* observer); | 507 void RemoveObserver(Observer* observer); |
| 512 | 508 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 syncable::ModelTypeSet GetTypesWithEmptyProgressMarkerToken( | 597 syncable::ModelTypeSet GetTypesWithEmptyProgressMarkerToken( |
| 602 const syncable::ModelTypeSet types, | 598 const syncable::ModelTypeSet types, |
| 603 sync_api::UserShare* share); | 599 sync_api::UserShare* share); |
| 604 | 600 |
| 605 // Returns the string representation of a PassphraseRequiredReason value. | 601 // Returns the string representation of a PassphraseRequiredReason value. |
| 606 std::string PassphraseRequiredReasonToString(PassphraseRequiredReason reason); | 602 std::string PassphraseRequiredReasonToString(PassphraseRequiredReason reason); |
| 607 | 603 |
| 608 } // namespace sync_api | 604 } // namespace sync_api |
| 609 | 605 |
| 610 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 606 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| OLD | NEW |