| 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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 // refresh token. This happens when a new OAuth2 login token is loaded and | 648 // refresh token. This happens when a new OAuth2 login token is loaded and |
| 649 // when sync server returns AUTH_ERROR which indicates it is time to refresh | 649 // when sync server returns AUTH_ERROR which indicates it is time to refresh |
| 650 // token. | 650 // token. |
| 651 void RequestAccessToken(); | 651 void RequestAccessToken(); |
| 652 | 652 |
| 653 // Sets the last synced time to the current time. | 653 // Sets the last synced time to the current time. |
| 654 void UpdateLastSyncedTime(); | 654 void UpdateLastSyncedTime(); |
| 655 | 655 |
| 656 void NotifySyncCycleCompleted(); | 656 void NotifySyncCycleCompleted(); |
| 657 void NotifyForeignSessionUpdated(); | 657 void NotifyForeignSessionUpdated(); |
| 658 void NotifyShutdown(); |
| 658 | 659 |
| 659 void ClearStaleErrors(); | 660 void ClearStaleErrors(); |
| 660 | 661 |
| 661 void ClearUnrecoverableError(); | 662 void ClearUnrecoverableError(); |
| 662 | 663 |
| 663 // Starts up the engine sync components. | 664 // Starts up the engine sync components. |
| 664 virtual void StartUpSlowEngineComponents(); | 665 virtual void StartUpSlowEngineComponents(); |
| 665 | 666 |
| 666 // Collects preferred sync data types from |preference_providers_|. | 667 // Collects preferred sync data types from |preference_providers_|. |
| 667 syncer::ModelTypeSet GetDataTypesFromPreferenceProviders() const; | 668 syncer::ModelTypeSet GetDataTypesFromPreferenceProviders() const; |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 base::WeakPtrFactory<ProfileSyncService> weak_factory_; | 892 base::WeakPtrFactory<ProfileSyncService> weak_factory_; |
| 892 | 893 |
| 893 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 894 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 894 }; | 895 }; |
| 895 | 896 |
| 896 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); | 897 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); |
| 897 | 898 |
| 898 } // namespace browser_sync | 899 } // namespace browser_sync |
| 899 | 900 |
| 900 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 901 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |