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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 void SetPassphrase(const std::string& passphrase, bool is_explicit); | 476 void SetPassphrase(const std::string& passphrase, bool is_explicit); |
477 | 477 |
478 // Puts the SyncScheduler into a mode where no normal nudge or poll traffic | 478 // Puts the SyncScheduler into a mode where no normal nudge or poll traffic |
479 // will occur, but calls to RequestConfig will be supported. If |callback| | 479 // will occur, but calls to RequestConfig will be supported. If |callback| |
480 // is provided, it will be invoked (from the internal SyncScheduler) when | 480 // is provided, it will be invoked (from the internal SyncScheduler) when |
481 // the thread has changed to configuration mode. | 481 // the thread has changed to configuration mode. |
482 void StartConfigurationMode(const base::Closure& callback); | 482 void StartConfigurationMode(const base::Closure& callback); |
483 | 483 |
484 // Switches the mode of operation to CONFIGURATION_MODE and | 484 // Switches the mode of operation to CONFIGURATION_MODE and |
485 // schedules a config task to fetch updates for |types|. | 485 // schedules a config task to fetch updates for |types|. |
486 void RequestConfig(const syncable::ModelTypeBitSet& types, | 486 void RequestConfig(syncable::ModelEnumSet types, |
487 sync_api::ConfigureReason reason); | 487 sync_api::ConfigureReason reason); |
488 | 488 |
489 void RequestCleanupDisabledTypes(); | 489 void RequestCleanupDisabledTypes(); |
490 | 490 |
491 // Request a clearing of all data on the server | 491 // Request a clearing of all data on the server |
492 void RequestClearServerData(); | 492 void RequestClearServerData(); |
493 | 493 |
494 // Adds a listener to be notified of sync events. | 494 // Adds a listener to be notified of sync events. |
495 // NOTE: It is OK (in fact, it's probably a good idea) to call this before | 495 // NOTE: It is OK (in fact, it's probably a good idea) to call this before |
496 // having received OnInitializationCompleted. | 496 // having received OnInitializationCompleted. |
497 void AddObserver(Observer* observer); | 497 void AddObserver(Observer* observer); |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 syncable::ModelTypeSet GetTypesWithEmptyProgressMarkerToken( | 592 syncable::ModelTypeSet GetTypesWithEmptyProgressMarkerToken( |
593 const syncable::ModelTypeSet types, | 593 const syncable::ModelTypeSet types, |
594 sync_api::UserShare* share); | 594 sync_api::UserShare* share); |
595 | 595 |
596 // Returns the string representation of a PassphraseRequiredReason value. | 596 // Returns the string representation of a PassphraseRequiredReason value. |
597 std::string PassphraseRequiredReasonToString(PassphraseRequiredReason reason); | 597 std::string PassphraseRequiredReasonToString(PassphraseRequiredReason reason); |
598 | 598 |
599 } // namespace sync_api | 599 } // namespace sync_api |
600 | 600 |
601 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 601 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
OLD | NEW |