Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: components/browser_sync/profile_sync_service.h

Issue 2657673004: Add shutdown notification and service refs to SyncServiceObserver. (Closed)
Patch Set: Use parameter Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698