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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 // when sync server returns AUTH_ERROR which indicates it is time to refresh | 677 // when sync server returns AUTH_ERROR which indicates it is time to refresh |
678 // token. | 678 // token. |
679 void RequestAccessToken(); | 679 void RequestAccessToken(); |
680 | 680 |
681 // Sets the last synced time to the current time. | 681 // Sets the last synced time to the current time. |
682 void UpdateLastSyncedTime(); | 682 void UpdateLastSyncedTime(); |
683 | 683 |
684 void NotifyObservers(); | 684 void NotifyObservers(); |
685 void NotifySyncCycleCompleted(); | 685 void NotifySyncCycleCompleted(); |
686 void NotifyForeignSessionUpdated(); | 686 void NotifyForeignSessionUpdated(); |
| 687 void NotifyShutdown(); |
687 | 688 |
688 void ClearStaleErrors(); | 689 void ClearStaleErrors(); |
689 | 690 |
690 void ClearUnrecoverableError(); | 691 void ClearUnrecoverableError(); |
691 | 692 |
692 // Starts up the engine sync components. | 693 // Starts up the engine sync components. |
693 virtual void StartUpSlowEngineComponents(); | 694 virtual void StartUpSlowEngineComponents(); |
694 | 695 |
695 // Collects preferred sync data types from |preference_providers_|. | 696 // Collects preferred sync data types from |preference_providers_|. |
696 syncer::ModelTypeSet GetDataTypesFromPreferenceProviders() const; | 697 syncer::ModelTypeSet GetDataTypesFromPreferenceProviders() const; |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 base::WeakPtrFactory<ProfileSyncService> weak_factory_; | 964 base::WeakPtrFactory<ProfileSyncService> weak_factory_; |
964 | 965 |
965 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 966 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
966 }; | 967 }; |
967 | 968 |
968 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); | 969 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); |
969 | 970 |
970 } // namespace browser_sync | 971 } // namespace browser_sync |
971 | 972 |
972 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 973 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |