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

Unified Diff: chrome/browser/sync/profile_sync_service_observer.h

Issue 15580002: Make use of InvalidationService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/profile_sync_service_observer.h
diff --git a/chrome/browser/sync/profile_sync_service_observer.h b/chrome/browser/sync/profile_sync_service_observer.h
index de8c997ed50c1ea53f713e98a47978a4dad1b093..9916c5dc3eaf09fa7c4628c53fc5ca16d79d338b 100644
--- a/chrome/browser/sync/profile_sync_service_observer.h
+++ b/chrome/browser/sync/profile_sync_service_observer.h
@@ -16,6 +16,11 @@ class ProfileSyncServiceObserver {
// - The sync servers are unavailable at this time.
// - Credentials are now in flight for authentication.
virtual void OnStateChanged() = 0;
+
+ // If a client wishes to handle sync cycle completed events in a special way,
+ // they can use this function. By default, it re-routes to OnStateChanged().
+ virtual void OnSyncCycleCompleted();
+
protected:
virtual ~ProfileSyncServiceObserver() { }
};
« no previous file with comments | « chrome/browser/sync/profile_sync_service_harness.cc ('k') | chrome/browser/sync/profile_sync_service_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698