| 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 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 // Prerequisite for calling this is that OnInitializationComplete has been | 427 // Prerequisite for calling this is that OnInitializationComplete has been |
| 428 // called. | 428 // called. |
| 429 bool InitialSyncEndedForAllEnabledTypes(); | 429 bool InitialSyncEndedForAllEnabledTypes(); |
| 430 | 430 |
| 431 // Update tokens that we're using in Sync. Email must stay the same. | 431 // Update tokens that we're using in Sync. Email must stay the same. |
| 432 void UpdateCredentials(const SyncCredentials& credentials); | 432 void UpdateCredentials(const SyncCredentials& credentials); |
| 433 | 433 |
| 434 // Called when the user disables or enables a sync type. | 434 // Called when the user disables or enables a sync type. |
| 435 void UpdateEnabledTypes(); | 435 void UpdateEnabledTypes(); |
| 436 | 436 |
| 437 // Conditionally sets the flag in the Nigori node which instructs other |
| 438 // clients to start syncing tabs. |
| 439 void MaybeSetSyncTabsInNigoriNode(const syncable::ModelTypeSet enabled_types); |
| 440 |
| 437 // Put the syncer in normal mode ready to perform nudges and polls. | 441 // Put the syncer in normal mode ready to perform nudges and polls. |
| 438 void StartSyncingNormally(); | 442 void StartSyncingNormally(); |
| 439 | 443 |
| 440 // Attempt to set the passphrase. If the passphrase is valid, | 444 // Attempt to set the passphrase. If the passphrase is valid, |
| 441 // OnPassphraseAccepted will be fired to notify the ProfileSyncService and the | 445 // OnPassphraseAccepted will be fired to notify the ProfileSyncService and the |
| 442 // syncer will be nudged so that any update that was waiting for this | 446 // syncer will be nudged so that any update that was waiting for this |
| 443 // passphrase gets applied as soon as possible. | 447 // passphrase gets applied as soon as possible. |
| 444 // If the passphrase in invalid, OnPassphraseRequired will be fired. | 448 // If the passphrase in invalid, OnPassphraseRequired will be fired. |
| 445 // Calling this metdod again is the appropriate course of action to "retry" | 449 // Calling this metdod again is the appropriate course of action to "retry" |
| 446 // with a new passphrase. | 450 // with a new passphrase. |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 }; | 548 }; |
| 545 | 549 |
| 546 bool InitialSyncEndedForTypes(syncable::ModelTypeSet types, UserShare* share); | 550 bool InitialSyncEndedForTypes(syncable::ModelTypeSet types, UserShare* share); |
| 547 | 551 |
| 548 // Returns the string representation of a PassphraseRequiredReason value. | 552 // Returns the string representation of a PassphraseRequiredReason value. |
| 549 std::string PassphraseRequiredReasonToString(PassphraseRequiredReason reason); | 553 std::string PassphraseRequiredReasonToString(PassphraseRequiredReason reason); |
| 550 | 554 |
| 551 } // namespace sync_api | 555 } // namespace sync_api |
| 552 | 556 |
| 553 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 557 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
| OLD | NEW |