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 COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 // | 724 // |
725 // SyncServiceCrypto::BeginConfigureCatchUpBeforeClear() and the following two | 725 // SyncServiceCrypto::BeginConfigureCatchUpBeforeClear() and the following two |
726 // functions perform these steps. | 726 // functions perform these steps. |
727 | 727 |
728 // Calls sync engine to send ClearServerDataMessage to server. | 728 // Calls sync engine to send ClearServerDataMessage to server. |
729 void ClearAndRestartSyncForPassphraseEncryption(); | 729 void ClearAndRestartSyncForPassphraseEncryption(); |
730 | 730 |
731 // Restarts sync clearing directory in the process. | 731 // Restarts sync clearing directory in the process. |
732 void OnClearServerDataDone(); | 732 void OnClearServerDataDone(); |
733 | 733 |
| 734 // Calls sync engine to send ClearServerDataMessage to server. This is used |
| 735 // to start accounts with a clean slate when performing end to end testing. |
| 736 void ClearServerDataForTest(const base::Closure& callback); |
| 737 |
734 // True if setup has been completed at least once and is not in progress. | 738 // True if setup has been completed at least once and is not in progress. |
735 bool CanConfigureDataTypes() const; | 739 bool CanConfigureDataTypes() const; |
736 | 740 |
737 // Called when a SetupInProgressHandle issued by this instance is destroyed. | 741 // Called when a SetupInProgressHandle issued by this instance is destroyed. |
738 virtual void OnSetupInProgressHandleDestroyed(); | 742 virtual void OnSetupInProgressHandleDestroyed(); |
739 | 743 |
740 // This is a cache of the last authentication response we received from the | 744 // This is a cache of the last authentication response we received from the |
741 // sync server. The UI queries this to display appropriate messaging to the | 745 // sync server. The UI queries this to display appropriate messaging to the |
742 // user. | 746 // user. |
743 GoogleServiceAuthError last_auth_error_; | 747 GoogleServiceAuthError last_auth_error_; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
892 base::WeakPtrFactory<ProfileSyncService> weak_factory_; | 896 base::WeakPtrFactory<ProfileSyncService> weak_factory_; |
893 | 897 |
894 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 898 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
895 }; | 899 }; |
896 | 900 |
897 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); | 901 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); |
898 | 902 |
899 } // namespace browser_sync | 903 } // namespace browser_sync |
900 | 904 |
901 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 905 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |