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_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <string> | 10 #include <string> |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 private: | 556 private: |
557 friend class ProfileSyncServicePasswordTest; | 557 friend class ProfileSyncServicePasswordTest; |
558 friend class SyncTest; | 558 friend class SyncTest; |
559 friend class TestProfileSyncService; | 559 friend class TestProfileSyncService; |
560 FRIEND_TEST_ALL_PREFIXES(ProfileSyncServiceTest, InitialState); | 560 FRIEND_TEST_ALL_PREFIXES(ProfileSyncServiceTest, InitialState); |
561 | 561 |
562 // Starts up sync if it is not suppressed and preconditions are met. | 562 // Starts up sync if it is not suppressed and preconditions are met. |
563 // Called from Initialize() and UnsuppressAndStart(). | 563 // Called from Initialize() and UnsuppressAndStart(). |
564 void TryStart(); | 564 void TryStart(); |
565 | 565 |
| 566 // Puts the backend's sync scheduler into NORMAL mode. |
| 567 // Called when configuration is complete. |
| 568 void StartSyncingWithServer(); |
| 569 |
566 // Called when we've determined that we don't need a passphrase (either | 570 // Called when we've determined that we don't need a passphrase (either |
567 // because OnPassphraseAccepted() was called, or because we've gotten a | 571 // because OnPassphraseAccepted() was called, or because we've gotten a |
568 // OnPassphraseRequired() but no data types are enabled). | 572 // OnPassphraseRequired() but no data types are enabled). |
569 void ResolvePassphraseRequired(); | 573 void ResolvePassphraseRequired(); |
570 | 574 |
571 // During initial signin, ProfileSyncService caches the user's signin | 575 // During initial signin, ProfileSyncService caches the user's signin |
572 // passphrase so it can be used to encrypt/decrypt data after sync starts up. | 576 // passphrase so it can be used to encrypt/decrypt data after sync starts up. |
573 // This routine is invoked once the backend has started up to use the | 577 // This routine is invoked once the backend has started up to use the |
574 // cached passphrase and clear it out when it is done. | 578 // cached passphrase and clear it out when it is done. |
575 void ConsumeCachedPassphraseIfPossible(); | 579 void ConsumeCachedPassphraseIfPossible(); |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 bool setup_in_progress_; | 747 bool setup_in_progress_; |
744 | 748 |
745 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 749 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
746 }; | 750 }; |
747 | 751 |
748 bool ShouldShowActionOnUI( | 752 bool ShouldShowActionOnUI( |
749 const browser_sync::SyncProtocolError& error); | 753 const browser_sync::SyncProtocolError& error); |
750 | 754 |
751 | 755 |
752 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 756 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |